The base class for all graphcuts operating on pixels.
More...
#include <GraphCut.h>
|
| QSharedPointer< GCoptimizationGeneralGraph > | graphCut (const PixelGraph &graph) const |
| | Performs the graphcut. The graphcut globally optimizes the pixel states w.r.t. the costs given More...
|
| |
| virtual cv::Mat | costs (int numLabels) const =0 |
| | Returns a matrix with the costs for each state. The matrix must be mSet.size() x numLabels 32SC1. It contains cost values for each element given a state. Normalized costs are usually multiplied by mScaleFactor to fit the data format. More...
|
| |
| virtual cv::Mat | labelDistMatrix (int numLabels) const =0 |
| | Indicates the costs to move from one label to another. High values indicate high costs. Usually this matrix is symmetric. More...
|
| |
| virtual int | numLabels () const =0 |
| |
| virtual bool | checkInput () const =0 |
| |
| QString | debugName () const |
| |
The base class for all graphcuts operating on pixels.
- See also
- Module
| rdf::GraphCutPixel::GraphCutPixel |
( |
const PixelSet & |
set | ) |
|
| virtual cv::Mat rdf::GraphCutPixel::costs |
( |
int |
numLabels | ) |
const |
|
protectedpure virtual |
Returns a matrix with the costs for each state. The matrix must be mSet.size() x numLabels 32SC1. It contains cost values for each element given a state. Normalized costs are usually multiplied by mScaleFactor to fit the data format.
- Parameters
-
| numLabels | The number labels. |
- Returns
Performs the graphcut. The graphcut globally optimizes the pixel states w.r.t. the costs given
- Parameters
-
- Returns
| bool rdf::GraphCutPixel::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.
| virtual cv::Mat rdf::GraphCutPixel::labelDistMatrix |
( |
int |
numLabels | ) |
const |
|
protectedpure virtual |
Indicates the costs to move from one label to another. High values indicate high costs. Usually this matrix is symmetric.
- Parameters
-
| numLabels | The number labels. |
- Returns
- A numLabels x numLabels 32SC1 matrix.
| int rdf::GraphCutPixel::numLabels |
( |
| ) |
const |
|
protectedpure virtual |
| PixelSet rdf::GraphCutPixel::set |
( |
| ) |
const |
The documentation for this class was generated from the following files: