
Public Member Functions | |
| HOG () | |
| Constructor. | |
| virtual | ~HOG () |
| Destructor. | |
| ImageSet< float > | getFeatures (const Image< PixRGB< byte > > &img, int numBins) |
| Compute HOG features on an RGB image. | |
| void | getMaxGradient (const Image< PixRGB< byte > > &img, Image< float > &mag, Image< float > &ori, int numOrientations=-1) |
| ImageSet< float > | getOriHistogram (const Image< float > &mag, const Image< float > &ori, int numOrientations, int numBins) |
| ImageSet< double > | computeFeatures (const ImageSet< float > &hist) |
| Image< double > | getHistogramEnergy (const ImageSet< float > &hist) |
| Image< PixRGB< byte > > | getHistogramImage (const ImageSet< float > &hist, const int binSize=20) |
Definition at line 74 of file HOG.H.
Compute HOG features on an RGB image.
Definition at line 60 of file HOG.C.
References getMaxGradient().
| void HOG::getMaxGradient | ( | const Image< PixRGB< byte > > & | img, | |
| Image< float > & | mag, | |||
| Image< float > & | ori, | |||
| int | numOrientations = -1 | |||
| ) |
Compute the gradient on a color img by taking the max gradient If numOrientations > 0 then snap to the best orientation
Definition at line 307 of file HOG.C.
References Image< T >::beginw(), PixRGB< T >::blue(), Image< T >::getHeight(), Image< T >::getWidth(), PixRGB< T >::green(), PixRGB< T >::red(), Image< T >::resize(), and sqrt().
Referenced by getFeatures().
1.6.3