|
ReadFramework
|
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>
Public Member Functions | |
| FeatureCollectionManager (const cv::Mat &descriptors=cv::Mat(), const PixelSet &set=PixelSet()) | |
| bool | isEmpty () const |
| void | write (const QString &filePath) const |
| void | add (const FeatureCollection &collection) |
| void | merge (const FeatureCollectionManager &other) |
| Merges two collection managers (e.g. from two images). If the same labels exist, features will be appended. More... | |
| void | normalize (int minFeaturesPerClass, int maxFeaturesPerClass) |
| QVector< FeatureCollection > | collection () const |
| int | numFeatures () const |
| QString | toString () const |
| cv::Ptr< cv::ml::TrainData > | toCvTrainData (int maxSamples=-1) const |
| LabelManager | toLabelManager () const |
Static Public Member Functions | |
| static FeatureCollectionManager | read (const QString &filePath) |
Protected Member Functions | |
| cv::Mat | allFeatures () const |
| Merges all features for training. More... | |
| cv::Mat | allLabels () const |
| Returns the labels in a OpenCV compilant format. More... | |
Protected Attributes | |
| QVector< FeatureCollection > | mCollection |
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() |
||
| ) |
| void rdf::FeatureCollectionManager::add | ( | const FeatureCollection & | collection | ) |

|
protected |
Merges all features for training.
|
protected |
Returns the labels in a OpenCV compilant format.
| QVector< FeatureCollection > rdf::FeatureCollectionManager::collection | ( | ) | const |

| bool rdf::FeatureCollectionManager::isEmpty | ( | ) | const |
| void rdf::FeatureCollectionManager::merge | ( | const FeatureCollectionManager & | other | ) |
Merges two collection managers (e.g. from two images). If the same labels exist, features will be appended.
| other | The other manager. |

| void rdf::FeatureCollectionManager::normalize | ( | int | minFeaturesPerClass, |
| int | maxFeaturesPerClass | ||
| ) |
| int rdf::FeatureCollectionManager::numFeatures | ( | ) | const |
|
static |

| 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 |

|
protected |