75 gradMag (
float *I,
int h,
int w,
int d,
float *
M,
float *
O )
const;
136 grad1 (
float *I,
float *
Gx,
float *
Gy,
int h,
int w,
int x )
const;
148 gradQuantize (
float *
O,
float *
M,
int *
O0,
int *
O1,
float *
M0,
float *
M1,
int n_orients,
int nb,
int n,
float norm )
const;
154 alMalloc ( std::size_t size,
int alignment )
const;
Iterator class for point clouds with or without given indices.
HOG represents a class for computing the HOG descriptor described in Dalal, N.
int bin_size_
spatial bin size (default = 8)
int n_orients_
number of orientation bins (default = 9)
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).
int w_
image width (default = 64)
void compute(float *I, float *descriptor) const
Compute HOG descriptor with default parameters.
float clip_
value at which to clip histogram bins (default = 0.2)
int n_channels_
image number of channels (default = 3)
virtual ~HOG()
Destructor.
void normalization(float *H, int h, int w, int bin_size, int n_orients, float clip, float *G) const
Normalize histogram of gradients.
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.
bool soft_bin_
if true, each pixel can contribute to multiple spatial bins (using bilinear interpolation) (default =...
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.
int h_
image height (default = 128)
Defines all the PCL and non-PCL macros used.