Converts GT information to label images. This class is used to assign a GT label to each SuperPixel computed in an image.
More...
#include <SuperPixelTrainer.h>
Converts GT information to label images. This class is used to assign a GT label to each SuperPixel computed in an image.
- See also
- Module
rdf::SuperPixelLabeler::SuperPixelLabeler |
( |
const QVector< QSharedPointer< MserBlob > > & |
blobs, |
|
|
const Rect & |
imgRect |
|
) |
| |
rdf::SuperPixelLabeler::SuperPixelLabeler |
( |
const PixelSet & |
set, |
|
|
const Rect & |
imgRect |
|
) |
| |
bool rdf::SuperPixelLabeler::compute |
( |
| ) |
|
|
overridevirtual |
Runs the algorithm implemented by the module.
- Returns
- True on success.
Implements rdf::Module.
QImage rdf::SuperPixelLabeler::createLabelImage |
( |
const Rect & |
imgRect, |
|
|
bool |
visualize = false |
|
) |
| const |
cv::Mat rdf::SuperPixelLabeler::draw |
( |
const cv::Mat & |
img, |
|
|
bool |
drawPixels = true |
|
) |
| const |
bool rdf::SuperPixelLabeler::isEmpty |
( |
| ) |
const |
|
overridevirtual |
Returns true if the module was initialized with the default constructor. Note, if empty is true, nothing can be computed.
- Returns
- Returns true if the module was initialized.
Implements rdf::Module.
PixelSet rdf::SuperPixelLabeler::set |
( |
| ) |
const |
void rdf::SuperPixelLabeler::setFilePath |
( |
const QString & |
filePath | ) |
|
Parses the filePath for GT labels. If a label is found, the background of label image is set to the GT label.
- Parameters
-
void rdf::SuperPixelLabeler::setLabelManager |
( |
const LabelManager & |
manager | ) |
|
void rdf::SuperPixelLabeler::setPage |
( |
const QSharedPointer< PageElement > & |
page | ) |
|
void rdf::SuperPixelLabeler::setRootRegion |
( |
const QSharedPointer< RootRegion > & |
region | ) |
|
QString rdf::SuperPixelLabeler::toString |
( |
| ) |
const |
|
overridevirtual |
Converts the module's parameters and results to a string.
- Returns
- The string containing all parameters and results of the module.
Reimplemented from rdf::Module.
The documentation for this class was generated from the following files: