Read@CVL
rdf::SuperPixelTrainer Class Reference

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>

Inheritance diagram for rdf::SuperPixelTrainer:
Collaboration diagram for rdf::SuperPixelTrainer:

Public Member Functions

 SuperPixelTrainer (const FeatureCollectionManager &fcm)
 
bool isEmpty () const override
 Returns true if the module was initialized with the default constructor. Note, if empty is true, nothing can be computed. More...
 
bool compute () override
 Runs the algorithm implemented by the module. More...
 
QSharedPointer< SuperPixelTrainerConfigconfig () const
 
cv::Mat draw (const cv::Mat &img) const
 
QString toString () const override
 Converts the module's parameters and results to a string. More...
 
bool write (const QString &filePath) const
 
QSharedPointer< SuperPixelModelmodel () const
 
- Public Member Functions inherited from rdf::Module
 Module ()
 Default constructor Initializes a new instance of the Module class. More...
 
virtual QString name () const
 Returns the module's name. More...
 
virtual void setConfig (QSharedPointer< ModuleConfig > config)
 
QSharedPointer< ModuleConfigconfig () const
 

Additional Inherited Members

- Protected Member Functions inherited from rdf::Module
QString debugName () const
 
- Protected Attributes inherited from rdf::Module
QSharedPointer< ModuleConfigmConfig
 

Detailed Description

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

Constructor & Destructor Documentation

rdf::SuperPixelTrainer::SuperPixelTrainer ( const FeatureCollectionManager fcm)

Member Function Documentation

bool rdf::SuperPixelTrainer::compute ( )
overridevirtual

Runs the algorithm implemented by the module.

Returns
True on success.

Implements rdf::Module.

QSharedPointer< SuperPixelTrainerConfig > rdf::SuperPixelTrainer::config ( ) const
cv::Mat rdf::SuperPixelTrainer::draw ( const cv::Mat &  img) const
bool rdf::SuperPixelTrainer::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.

QSharedPointer< SuperPixelModel > rdf::SuperPixelTrainer::model ( ) const
QString rdf::SuperPixelTrainer::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.

bool rdf::SuperPixelTrainer::write ( const QString &  filePath) const

The documentation for this class was generated from the following files: