HOG (histogram of oriented gradients) feature extraction class.
More...
#include <HOG.h>
|
const Mat | m_img |
| Container for the image, from which the features are to be extracted. More...
|
|
◆ CHOG()
DirectGraphicalModels::fex::CHOG::CHOG |
( |
const Mat & |
img | ) |
|
|
inline |
Constructor.
- Parameters
-
img | Input image of type CV_8UC1 or CV_8UC3. |
Definition at line 22 of file HOG.h.
◆ ~CHOG()
virtual DirectGraphicalModels::fex::CHOG::~CHOG |
( |
void |
| ) |
|
|
inlinevirtual |
Definition at line 23 of file HOG.h.
◆ get() [1/2]
virtual Mat DirectGraphicalModels::fex::CHOG::get |
( |
void |
| ) |
const |
|
inlinevirtual |
◆ get() [2/2]
Extracts the HOG feature.
For each pixel of the source image this function calculates the histogram of oriented gradients inside the pixel's neighbourhood nbhd. The histogram consists of nBins values, it is normalized, and stored as nBins channel image, thus, the channel index corresponds to the histogram index.
- Parameters
-
img | Input image of type CV_8UC1 or CV_8UC3. |
nBins | Number of bins. Hence a single bin covers an angle of \(\frac{180^\circ}{nBins}\). |
nbhd | Neighborhood around the pixel, where its histogram is estimated. (Ref. SqNeighbourhood). |
- Returns
- The HOG feature image of type CV_8UC{n}, where \(n=nBins\).
Definition at line 7 of file HOG.cpp.
The documentation for this class was generated from the following files:
- D:/Projects/DGM/modules/FEX/HOG.h
- D:/Projects/DGM/modules/FEX/HOG.cpp