38 #include <opencv2/ml.hpp>
56 QString& errorMessage,
59 QWidget* parentWidget =
nullptr);
72 QString& errorMessage,
75 QString outputSFName = QString(),
76 QWidget* parentWidget =
nullptr,
82 QString& errorMessage,
83 QWidget* parentWidget =
nullptr,
90 bool toFile(QString
filename, QWidget* parentWidget =
nullptr)
const;
cmdLineReadable * params[]
3DMASC plugin 'train' dialog
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
A very simple point cloud (no point duplication)
Main application interface (for plugins)
bool toFile(QString filename, QWidget *parentWidget=nullptr) const
Saves the classifier to file.
bool isValid() const
Returns whether the classifier is valid or not.
bool evaluate(const Feature::Source::Set &featureSources, ccPointCloud *testCloud, AccuracyMetrics &metrics, QString &errorMessage, Train3DMASCDialog &train3DMASCDialog, cloudViewer::ReferenceCloud *testSubset=nullptr, QString outputSFName=QString(), QWidget *parentWidget=nullptr, ecvMainAppInterface *app=nullptr)
Evaluates the classifier.
bool classify(const Feature::Source::Set &featureSources, ccPointCloud *cloud, QString &errorMessage, QWidget *parentWidget=nullptr, ecvMainAppInterface *app=nullptr)
Applies the classifier.
cv::Mat getVarImportance() const
bool train(const ccPointCloud *cloud, const RandomTreesParams ¶ms, const Feature::Source::Set &featureSources, QString &errorMessage, cloudViewer::ReferenceCloud *trainSubset=nullptr, ecvMainAppInterface *app=nullptr, QWidget *parentWidget=nullptr)
Train the classifier.
bool fromFile(QString filename, QWidget *parentWidget=nullptr)
Loads the classifier from file.
cv::Ptr< cv::ml::RTrees > m_rtrees
Random trees (OpenCV)
Classifier()
Default constructor.
Classifier accuracy metrics.
std::vector< Source > Set