Direct Graphical Models
v.1.7.0
|
Intensity feature extraction class. More...
#include <Intensity.h>
Public Member Functions | |
CIntensity (const Mat &img) | |
Constructor. More... | |
virtual | ~CIntensity (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, cv::Scalar weight=CV_RGB(0.333, 0.333, 0.333)) |
Extracts the intesity 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... | |
Intensity feature extraction class.
Definition at line 14 of file Intensity.h.
|
inline |
|
inlinevirtual |
Definition at line 22 of file Intensity.h.
|
inlinevirtual |
Extracts and returns the required feature.
Implements DirectGraphicalModels::fex::ILocalFeatureExtractor.
Definition at line 24 of file Intensity.h.
|
static |
Extracts the intesity feature.
This function calculates the intesity of the input image as follows:
\[ intensity=weight_0\cdot img.RED+weight_1\cdot img.GREEN+weight_2\cdot img.BLUE \]
img | Input image of type CV_8UC3. |
weight | The weight coefficients, which determine the contribution of each color channel to the resulting intensity. |
Definition at line 6 of file Intensity.cpp.