Manages FeatureCollections. Hence, each label (e.g. printed text) is stored here along with it's features retrieved from groundtruthed images.
More...
#include <SuperPixelTrainer.h>
Manages FeatureCollections. Hence, each label (e.g. printed text) is stored here along with it's features retrieved from groundtruthed images.
rdf::FeatureCollectionManager::FeatureCollectionManager |
( |
const cv::Mat & |
descriptors = cv::Mat() , |
|
|
const PixelSet & |
set = PixelSet() |
|
) |
| |
cv::Mat rdf::FeatureCollectionManager::allFeatures |
( |
| ) |
const |
|
protected |
Merges all features for training.
- Returns
cv::Mat rdf::FeatureCollectionManager::allLabels |
( |
| ) |
const |
|
protected |
Returns the labels in a OpenCV compilant format.
- Returns
bool rdf::FeatureCollectionManager::isEmpty |
( |
| ) |
const |
Merges two collection managers (e.g. from two images). If the same labels exist, features will be appended.
- Parameters
-
void rdf::FeatureCollectionManager::normalize |
( |
int |
minFeaturesPerClass, |
|
|
int |
maxFeaturesPerClass |
|
) |
| |
int rdf::FeatureCollectionManager::numFeatures |
( |
| ) |
const |
cv::Ptr< cv::ml::TrainData > rdf::FeatureCollectionManager::toCvTrainData |
( |
int |
maxSamples = -1 | ) |
const |
LabelManager rdf::FeatureCollectionManager::toLabelManager |
( |
| ) |
const |
QString rdf::FeatureCollectionManager::toString |
( |
| ) |
const |
void rdf::FeatureCollectionManager::write |
( |
const QString & |
filePath | ) |
const |
The documentation for this class was generated from the following files: