Direct Graphical Models
v.1.7.0
|
Variance feature extraction class. More...
#include <Variance.h>
Public Member Functions | |
CVariance (const Mat &img) | |
Constructor. More... | |
virtual | ~CVariance (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, SqNeighbourhood nbhd=sqNeighbourhood(5)) |
Extracts the variance 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... | |
Variance feature extraction class.
Definition at line 15 of file Variance.h.
|
inline |
Constructor.
img | Input image of type CV_8UC1 or CV_8UC3. |
Definition at line 22 of file Variance.h.
|
inlinevirtual |
Definition at line 23 of file Variance.h.
|
inlinevirtual |
Extracts and returns the required feature.
Implements DirectGraphicalModels::fex::ILocalFeatureExtractor.
Definition at line 25 of file Variance.h.
|
static |
Extracts the variance feature.
For each pixel of the source image this function calculates the variance within the pixel's neighbourhood nbhd.
img | Input image of type CV_8UC1 or CV_8UC3. |
nbhd | Neighborhood around the pixel, where the variance is estimated. (Ref. SqNeighbourhood). |
Definition at line 6 of file Variance.cpp.