ReadFramework
rdf::SuperPixelModel Class Reference

#include <PixelLabel.h>

Collaboration diagram for rdf::SuperPixelModel:

Public Member Functions

 SuperPixelModel (const LabelManager &labelManager=LabelManager(), const cv::Ptr< cv::ml::StatModel > &model=cv::Ptr< cv::ml::StatModel >())
 
bool isEmpty () const
 
cv::Ptr< cv::ml::StatModel > model () const
 
cv::Ptr< cv::ml::RTrees > randomTrees () const
 
LabelManager manager () const
 
QVector< PixelLabelclassify (const cv::Mat &features) const
 
bool write (const QString &filePath) const
 

Static Public Member Functions

static QSharedPointer< SuperPixelModelread (const QString &filePath)
 

Protected Member Functions

void toJson (QJsonObject &jo) const
 

Static Protected Member Functions

static cv::Ptr< cv::ml::RTrees > readRTreesModel (QJsonObject &jo)
 

Protected Attributes

cv::Ptr< cv::ml::StatModel > mModel
 
LabelManager mManager
 

Constructor & Destructor Documentation

rdf::SuperPixelModel::SuperPixelModel ( const LabelManager labelManager = LabelManager(),
const cv::Ptr< cv::ml::StatModel > &  model = cv::Ptr<cv::ml::StatModel>() 
)

Member Function Documentation

QVector< PixelLabel > rdf::SuperPixelModel::classify ( const cv::Mat &  features) const
bool rdf::SuperPixelModel::isEmpty ( ) const
LabelManager rdf::SuperPixelModel::manager ( ) const
cv::Ptr< cv::ml::StatModel > rdf::SuperPixelModel::model ( ) const
cv::Ptr< cv::ml::RTrees > rdf::SuperPixelModel::randomTrees ( ) const
QSharedPointer< SuperPixelModel > rdf::SuperPixelModel::read ( const QString &  filePath)
static

Here is the caller graph for this function:

cv::Ptr< cv::ml::RTrees > rdf::SuperPixelModel::readRTreesModel ( QJsonObject &  jo)
staticprotected

Here is the caller graph for this function:

void rdf::SuperPixelModel::toJson ( QJsonObject &  jo) const
protected
bool rdf::SuperPixelModel::write ( const QString &  filePath) const

Member Data Documentation

LabelManager rdf::SuperPixelModel::mManager
protected
cv::Ptr<cv::ml::StatModel> rdf::SuperPixelModel::mModel
protected

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