ReadFramework
rdf::GraphCutPixelLabel Class Reference

Graph cut for pixel labeling. More...

#include <GraphCut.h>

Inheritance diagram for rdf::GraphCutPixelLabel:
Collaboration diagram for rdf::GraphCutPixelLabel:

Public Member Functions

 GraphCutPixelLabel (const PixelSet &set)
 
virtual bool compute () override
 Runs the algorithm implemented by the module. More...
 
cv::Mat draw (const cv::Mat &img, const QColor &col=QColor()) const
 
void setLabelManager (const LabelManager &m)
 
- Public Member Functions inherited from rdf::GraphCutPixel
 GraphCutPixel (const PixelSet &set)
 
virtual 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...
 
QSharedPointer< GraphCutConfigconfig () const
 
PixelSet set () 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 QString toString () const
 Converts the module's parameters and results to a string. More...
 
virtual void setConfig (QSharedPointer< ModuleConfig > config)
 
QSharedPointer< ModuleConfigconfig () const
 

Additional Inherited Members

- Protected Member Functions inherited from rdf::GraphCutPixel
QSharedPointer< GCoptimizationGeneralGraphgraphCut (const PixelGraph &graph) const
 Performs the graphcut. The graphcut globally optimizes the pixel states w.r.t. the costs given More...
 
- Protected Member Functions inherited from rdf::Module
QString debugName () const
 
- Protected Attributes inherited from rdf::GraphCutPixel
PixelSet mSet
 
PixelDistance::EdgeWeightFunction mWeightFnc
 
QSharedPointer< PixelConnectormConnector
 
- Protected Attributes inherited from rdf::Module
QSharedPointer< ModuleConfigmConfig
 

Detailed Description

Graph cut for pixel labeling.

See also
GraphCutPixel

Constructor & Destructor Documentation

rdf::GraphCutPixelLabel::GraphCutPixelLabel ( const PixelSet set)

Member Function Documentation

bool rdf::GraphCutPixelLabel::compute ( )
overridevirtual

Runs the algorithm implemented by the module.

Returns
True on success.

Implements rdf::Module.

cv::Mat rdf::GraphCutPixelLabel::draw ( const cv::Mat &  img,
const QColor &  col = QColor() 
) const
void rdf::GraphCutPixelLabel::setLabelManager ( const LabelManager m)

Here is the caller graph for this function:


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