HOG represents a class for computing the HOG descriptor described in Dalal, N.
More...
#include <pcl/people/hog.h>
|
| HOG () |
| Constructor. More...
|
|
virtual | ~HOG () |
| Destructor. More...
|
|
void | gradMag (float *I, int h, int w, int d, float *M, float *O) const |
| Compute gradient magnitude and orientation at each location (uses sse). More...
|
|
void | gradHist (float *M, float *O, int h, int w, int bin_size, int n_orients, bool soft_bin, float *H) const |
| Compute n_orients gradient histograms per bin_size x bin_size block of pixels. More...
|
|
void | normalization (float *H, int h, int w, int bin_size, int n_orients, float clip, float *G) const |
| Normalize histogram of gradients. More...
|
|
void | compute (float *I, int h, int w, int n_channels, int bin_size, int n_orients, bool soft_bin, float *descriptor) |
| Compute HOG descriptor. More...
|
|
void | compute (float *I, float *descriptor) const |
| Compute HOG descriptor with default parameters. More...
|
|
HOG represents a class for computing the HOG descriptor described in Dalal, N.
and Triggs, B., "Histograms of oriented gradients for human detection", CVPR 2005.
- Author
- Matteo Munaro, Stefano Ghidoni, Stefano Michieletto
Definition at line 55 of file hog.h.
pcl::people::HOG::HOG |
( |
| ) |
|
virtual pcl::people::HOG::~HOG |
( |
| ) |
|
|
virtual |
void pcl::people::HOG::compute |
( |
float * |
I, |
|
|
int |
h, |
|
|
int |
w, |
|
|
int |
n_channels, |
|
|
int |
bin_size, |
|
|
int |
n_orients, |
|
|
bool |
soft_bin, |
|
|
float * |
descriptor |
|
) |
| |
Compute HOG descriptor.
- Parameters
-
[in] | I | Image as array of float between 0 and 1. |
[in] | h | Image height. |
[in] | w | Image width. |
[in] | n_channels | Image number of channels. |
[in] | bin_size | Spatial bin size. |
[in] | n_orients | Number of orientation bins. |
[in] | soft_bin | If true, each pixel can contribute to multiple spatial bins (using bilinear interpolation). |
[out] | descriptor | HOG descriptor. |
Referenced by pcl::people::PersonClassifier< PointT >::evaluate().
void pcl::people::HOG::compute |
( |
float * |
I, |
|
|
float * |
descriptor |
|
) |
| const |
Compute HOG descriptor with default parameters.
- Parameters
-
[in] | I | Image as array of float between 0 and 1. |
[out] | descriptor | HOG descriptor. |
void pcl::people::HOG::gradHist |
( |
float * |
M, |
|
|
float * |
O, |
|
|
int |
h, |
|
|
int |
w, |
|
|
int |
bin_size, |
|
|
int |
n_orients, |
|
|
bool |
soft_bin, |
|
|
float * |
H |
|
) |
| const |
Compute n_orients gradient histograms per bin_size x bin_size block of pixels.
- Parameters
-
[in] | M | Gradient magnitude for each image point. |
[in] | O | Gradient orientation for each image point. |
[in] | h | Image height. |
[in] | w | Image width. |
[in] | bin_size | Spatial bin size. |
[in] | n_orients | Number of orientation bins. |
[in] | soft_bin | If true, each pixel can contribute to multiple spatial bins (using bilinear interpolation). |
[out] | H | Gradient histograms. |
void pcl::people::HOG::gradMag |
( |
float * |
I, |
|
|
int |
h, |
|
|
int |
w, |
|
|
int |
d, |
|
|
float * |
M, |
|
|
float * |
O |
|
) |
| const |
Compute gradient magnitude and orientation at each location (uses sse).
- Parameters
-
[in] | I | Image as array of float. |
[in] | h | Image height. |
[in] | w | Image width. |
[in] | d | Image number of channels. |
[out] | M | Gradient magnitude for each image point. |
[out] | O | Gradient orientation for each image point. |
void pcl::people::HOG::normalization |
( |
float * |
H, |
|
|
int |
h, |
|
|
int |
w, |
|
|
int |
bin_size, |
|
|
int |
n_orients, |
|
|
float |
clip, |
|
|
float * |
G |
|
) |
| const |
Normalize histogram of gradients.
- Parameters
-
[in] | H | Gradient histograms. |
[in] | h | Image height. |
[in] | w | Image width. |
[in] | bin_size | Spatial bin size. |
[in] | n_orients | Number of orientation bins. |
[in] | clip | Value at which to clip histogram bins. |
[out] | G | Normalized gradient histograms. |
int pcl::people::HOG::bin_size_ |
|
protected |
spatial bin size (default = 8)
Definition at line 175 of file hog.h.
float pcl::people::HOG::clip_ |
|
protected |
value at which to clip histogram bins (default = 0.2)
Definition at line 184 of file hog.h.
image height (default = 128)
Definition at line 166 of file hog.h.
int pcl::people::HOG::n_channels_ |
|
protected |
image number of channels (default = 3)
Definition at line 172 of file hog.h.
int pcl::people::HOG::n_orients_ |
|
protected |
number of orientation bins (default = 9)
Definition at line 178 of file hog.h.
bool pcl::people::HOG::soft_bin_ |
|
protected |
if true, each pixel can contribute to multiple spatial bins (using bilinear interpolation) (default = true)
Definition at line 181 of file hog.h.
image width (default = 64)
Definition at line 169 of file hog.h.
The documentation for this class was generated from the following file:
- /builddir/build/BUILD/pcl-pcl-1.7.1/people/include/pcl/people/hog.h