Defines |
#define | at(x, y, k) (self->hog[(x) + (y) * self->hogWidth + (k) * hogStride]) |
#define | at(x, y, k) (self->hog[(x) + (y) * self->hogWidth + (k) * hogStride]) |
#define | at(x, y, k) (self->hog[(x) + (y) * self->hogWidth + (k) * hogStride]) |
#define | atglyph(x, y, k) self->glyphs[(x) + self->glyphSize * (y) + self->glyphSize * self->glyphSize * (k)] |
#define | atNorm(x, y) (self->hogNorm[(x) + (y) * self->hogWidth]) |
#define | atNorm(x, y) (self->hogNorm[(x) + (y) * self->hogWidth]) |
Functions |
void | vl_hog_delete (VlHog *self) |
| Delete a HOG object.
|
void | vl_hog_extract (VlHog *self, float *features) |
| Extract HOG features.
|
vl_size | vl_hog_get_dimension (VlHog const *self) |
| Get the dimension of the HOG features.
|
vl_size | vl_hog_get_glyph_size (VlHog const *self) |
| Get HOG glyph size.
|
vl_size | vl_hog_get_height (VlHog *self) |
| Get the height of the HOG cell array.
|
vl_index const * | vl_hog_get_permutation (VlHog const *self) |
| Get HOG left-right flip permutation.
|
vl_bool | vl_hog_get_use_bilinear_orientation_assignments (VlHog const *self) |
| Tell whether assignments use bilinear interpolation or not.
|
vl_size | vl_hog_get_width (VlHog *self) |
| Get the width of the HOG cell array.
|
VlHog * | vl_hog_new (VlHogVariant variant, vl_size numOrientations, vl_bool transposed) |
| Create a new HOG object.
|
static void | vl_hog_prepare_buffers (VlHog *self, vl_size width, vl_size height, vl_size cellSize) |
void | vl_hog_put_image (VlHog *self, float const *image, vl_size width, vl_size height, vl_size numChannels, vl_size cellSize) |
| Process features starting from an image.
|
void | vl_hog_put_polar_field (VlHog *self, float const *modulus, float const *angle, vl_bool directed, vl_size width, vl_size height, vl_size cellSize) |
| Process features starting from a field in polar notation.
|
void | vl_hog_render (VlHog const *self, float *image, float const *descriptor, vl_size width, vl_size height) |
| Render a HOG descriptor to a glyph image.
|
void | vl_hog_set_use_bilinear_orientation_assignments (VlHog *self, vl_bool x) |
| Turn bilinear interpolation of assignments on or off.
|
Histogram of Oriented Gradients (HOG) - Definition.
- Author:
- Andrea Vedaldi
Definition in file hog.c.
Process features starting from an image.
- Parameters:
-
self | HOG object. |
image | image to process. |
width | image width. |
height | image height. |
numChannels | number of image channles. |
cellSize | size of a HOG cell. |
The buffer hog
must be a three-dimensional array. The first two dimensions are
(width + cellSize/2)/cellSize and
(height + cellSize/2)/cellSize, where divisions are integer. This is approximately width/cellSize
and height/cellSize
, adjusted so that the last cell is at least half contained in the image.
The image width
and height
must be not smaller than three pixels and not smaller than cellSize
.
Definition at line 596 of file hog.c.
Process features starting from a field in polar notation.
- Parameters:
-
self | HOG object. |
modulus | image gradient modulus. |
angle | image gradient angle. |
directed | wrap the gradient angles at 2pi (directed) or pi (undirected). |
width | image width. |
height | image height. |
cellSize | size of a HOG cell. |
The function behaves like vl_hog_put_image, but foregoes the internal computation of the gradient field, allowing the user to specify their own. Angles are measure clockwise, the y axis pointing downwards, starting from the x axis (pointing to the right).
Definition at line 742 of file hog.c.