Read@CVL
rdf::FeatureCollection Class Reference

FeatureCollection maps one LabelInfo to its features. In addition it handles the I/O using Json. More...

#include <SuperPixelTrainer.h>

Collaboration diagram for rdf::FeatureCollection:

Public Member Functions

 FeatureCollection (const cv::Mat &descriptors=cv::Mat(), const LabelInfo &label=LabelInfo())
 
QJsonObject toJson (const QString &filePath="") const
 
void append (const cv::Mat &descriptor)
 
LabelInfo label () const
 
void setDescriptors (const cv::Mat &desc)
 
cv::Mat descriptors () const
 
int numDescriptors () const
 

Static Public Member Functions

static FeatureCollection read (QJsonObject &jo, const QString &filePath="")
 
static QVector< FeatureCollectionsplit (const cv::Mat &descriptors, const PixelSet &set)
 Splits the descriptors according to their trueLabels. More...
 
static QString jsonKey ()
 

Protected Attributes

cv::Mat mDesc
 
LabelInfo mLabel
 

Friends

DllCoreExport bool operator== (const FeatureCollection &fcl, const FeatureCollection &fcr)
 

Detailed Description

FeatureCollection maps one LabelInfo to its features. In addition it handles the I/O using Json.

Constructor & Destructor Documentation

rdf::FeatureCollection::FeatureCollection ( const cv::Mat &  descriptors = cv::Mat(),
const LabelInfo label = LabelInfo() 
)

Member Function Documentation

void rdf::FeatureCollection::append ( const cv::Mat &  descriptor)
cv::Mat rdf::FeatureCollection::descriptors ( ) const
QString rdf::FeatureCollection::jsonKey ( )
static
LabelInfo rdf::FeatureCollection::label ( ) const
int rdf::FeatureCollection::numDescriptors ( ) const
FeatureCollection rdf::FeatureCollection::read ( QJsonObject &  jo,
const QString &  filePath = "" 
)
static
void rdf::FeatureCollection::setDescriptors ( const cv::Mat &  desc)
QVector< FeatureCollection > rdf::FeatureCollection::split ( const cv::Mat &  descriptors,
const PixelSet set 
)
static

Splits the descriptors according to their trueLabels.

Parameters
descriptorsThe descriptors.
setThe pixel set. NOTE: set & descriptors must be synced descriptors.rows == set.size()
Returns
QJsonObject rdf::FeatureCollection::toJson ( const QString &  filePath = "") const

Friends And Related Function Documentation

DllCoreExport bool operator== ( const FeatureCollection fcl,
const FeatureCollection fcr 
)
friend

Member Data Documentation

cv::Mat rdf::FeatureCollection::mDesc
protected
LabelInfo rdf::FeatureCollection::mLabel
protected

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