Direct Graphical Models
v.1.7.0
|
Distance feature extraction class. More...
#include <Distance.h>
Public Member Functions | |
CDistance (const Mat &img) | |
Constructor. More... | |
virtual | ~CDistance (void) |
virtual Mat | get (void) const |
Extracts and returns the required feature. More... | |
Public Member Functions inherited from DirectGraphicalModels::fex::ILocalFeatureExtractor | |
ILocalFeatureExtractor (const Mat &img) | |
Constructor. More... | |
virtual | ~ILocalFeatureExtractor (void) |
Public Member Functions inherited from DirectGraphicalModels::fex::IFeatureExtractor | |
IFeatureExtractor (const Mat &img) | |
Constructor. More... | |
virtual | ~IFeatureExtractor (void) |
Static Public Member Functions | |
static Mat | get (const Mat &img, byte threshold=16, double multiplier=4.0) |
Extracts the distance feature. More... | |
Additional Inherited Members | |
Protected Attributes inherited from DirectGraphicalModels::fex::IFeatureExtractor | |
const Mat | m_img |
Container for the image, from which the features are to be extracted. More... | |
Distance feature extraction class.
This class is applied to perform the distance transformation.
Definition at line 15 of file Distance.h.
|
inline |
Constructor.
img | Input image of type CV_8UC1 or CV_8UC3. |
Definition at line 22 of file Distance.h.
|
inlinevirtual |
Definition at line 23 of file Distance.h.
|
inlinevirtual |
Extracts and returns the required feature.
Implements DirectGraphicalModels::fex::ILocalFeatureExtractor.
Definition at line 25 of file Distance.h.
|
static |
Extracts the distance feature.
For each pixel of the source image this function calculates the distance to the closest pixel, which value is larger or equal to threshold. Resulting feature image is multiplied by multiplier
img | Input image of type CV_8UC1 or CV_8UC3. |
threshold | Threshold value. |
multiplier | Amplification coefficient for the resulting feature image. |
Definition at line 5 of file Distance.cpp.