Read@CVL
rdf::PixelLabel Class Reference

#include <PixelLabel.h>

Inheritance diagram for rdf::PixelLabel:
Collaboration diagram for rdf::PixelLabel:

Public Member Functions

 PixelLabel (const QString &id=QString())
 
bool isEvaluated () const
 Checks if GT and prediction are present More...
 
void setLabel (const LabelInfo &label)
 
LabelInfo predicted () const
 
void setTrueLabel (const LabelInfo &label)
 
LabelInfo trueLabel () const
 
void setVotes (const PixelVotes &votes)
 
PixelVotes votes () const
 
- Public Member Functions inherited from rdf::BaseElement
 BaseElement (const QString &id=QString())
 This class keeps an ID to keep track of transformed elements during a processing chain. You can e.g. generate Pixel elements from MserBlobs. After filtering, processing etc. you can map back to the (pixel accurate) MserBlob using this ID. More...
 
void setId (const QString &id)
 Sets the (preferably unique) ID. If no ID is set, a unqiue ID is generated and assigned. More...
 
QString id () const
 Returns the elment's id. More...
 
virtual QString toString () const
 
virtual void scale (double factor)
 

Protected Attributes

LabelInfo mTrueLabel = LabelInfo::label_unknown
 
LabelInfo mLabel = LabelInfo::label_unknown
 
PixelVotes mVotes
 
- Protected Attributes inherited from rdf::BaseElement
QString mId
 

Constructor & Destructor Documentation

rdf::PixelLabel::PixelLabel ( const QString &  id = QString())

Member Function Documentation

bool rdf::PixelLabel::isEvaluated ( ) const

Checks if GT and prediction are present

Returns
true if trueLabel() and label() are set; otherwise, false.
LabelInfo rdf::PixelLabel::predicted ( ) const
void rdf::PixelLabel::setLabel ( const LabelInfo label)
void rdf::PixelLabel::setTrueLabel ( const LabelInfo label)
void rdf::PixelLabel::setVotes ( const PixelVotes votes)
LabelInfo rdf::PixelLabel::trueLabel ( ) const
PixelVotes rdf::PixelLabel::votes ( ) const

Member Data Documentation

LabelInfo rdf::PixelLabel::mLabel = LabelInfo::label_unknown
protected
LabelInfo rdf::PixelLabel::mTrueLabel = LabelInfo::label_unknown
protected
PixelVotes rdf::PixelLabel::mVotes
protected

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