Classes |
struct | VlHog_ |
Typedefs |
typedef struct VlHog_ | VlHog |
typedef enum VlHogVariant_ | VlHogVariant |
Enumerations |
enum | VlHogVariant_ { VlHogVariantDalalTriggs,
VlHogVariantUoctti
} |
Functions |
VL_EXPORT void | vl_hog_delete (VlHog *self) |
| Delete a HOG object.
|
VL_EXPORT void | vl_hog_extract (VlHog *self, float *features) |
| Extract HOG features.
|
VL_EXPORT vl_size | vl_hog_get_dimension (VlHog const *self) |
| Get the dimension of the HOG features.
|
VL_EXPORT vl_size | vl_hog_get_glyph_size (VlHog const *self) |
| Get HOG glyph size.
|
VL_EXPORT vl_size | vl_hog_get_height (VlHog *self) |
| Get the height of the HOG cell array.
|
VL_EXPORT vl_index const * | vl_hog_get_permutation (VlHog const *self) |
| Get HOG left-right flip permutation.
|
VL_EXPORT vl_bool | vl_hog_get_use_bilinear_orientation_assignments (VlHog const *self) |
| Tell whether assignments use bilinear interpolation or not.
|
VL_EXPORT vl_size | vl_hog_get_width (VlHog *self) |
| Get the width of the HOG cell array.
|
VL_EXPORT VlHog * | vl_hog_new (VlHogVariant variant, vl_size numOrientations, vl_bool transposed) |
| Create a new HOG object.
|
VL_EXPORT void | vl_hog_process (VlHog *self, float *features, float const *image, vl_size width, vl_size height, vl_size numChannels, vl_size cellSize) |
VL_EXPORT 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.
|
VL_EXPORT 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.
|
VL_EXPORT void | vl_hog_render (VlHog const *self, float *image, float const *features, vl_size width, vl_size height) |
| Render a HOG descriptor to a glyph image.
|
VL_EXPORT 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 (Histogram of Oriented Gradients (HOG) features)
- Author:
- Andrea Vedaldi
Definition in file hog.h.
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.