32 : _cell_size(), _block_size(), _detection_window_size(), _block_stride(), _num_bins(0), _normalization_type(
HOGNormType::
L2HYS_NORM), _l2_hyst_threshold(0.0f), _phase_type(
PhaseType::
UNSIGNED),
41 init(cell_size, block_size, detection_window_size, block_stride, num_bins, normalization_type, l2_hyst_threshold, phase_type);
103 return _detection_window_size;
108 return _block_stride;
118 return _normalization_type;
123 return _l2_hyst_threshold;
133 return _descriptor_size;
L2-norm followed by clipping.
size_t num_bins() const
The number of histogram bins for each cell.
const Size2D & detection_window_size() const
The detection window size in pixels.
const Size2D & cell_size() const
The cell size in pixels.
PhaseType
Phase calculation type.
Size2D num_cells_per_block_stride() const
Calculates the number of cells per block stride.
Store the HOG's metadata.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
PhaseType phase_type() const
The type of PhaseType.
const Size2D & block_stride() const
The block stride in pixels.
HOGNormType normalization_type() const
The normalization type.
Copyright (c) 2017-2021 Arm Limited.
size_t height
Height of the image region or rectangle.
HOGInfo()
Default constructor.
Size2D num_cells_per_block() const
Calculates the number of cells for each block.
#define ARM_COMPUTE_ERROR_ON_MSG(cond, msg)
const Size2D & block_size() const
The block size in pixels.
float l2_hyst_threshold() const
Threshold used for L2HYS_NORM normalization type.
size_t width
Width of the image region or rectangle.
HOGNormType
Normalization type for Histogram of Oriented Gradients (HOG)
Size2D num_block_positions_per_image(const Size2D &image_size) const
Calculates the number of block positions for the given image size.
Class for specifying the size of an image or rectangle.
size_t descriptor_size() const
The size of HOG descriptor.
void init(const Size2D &cell_size, const Size2D &block_size, const Size2D &detection_window_size, const Size2D &block_stride, size_t num_bins, HOGNormType normalization_type=HOGNormType::L2HYS_NORM, float l2_hyst_threshold=0.2f, PhaseType phase_type=PhaseType::UNSIGNED)
Initialize the metadata structure with the given parameters.
size_t area() const
The area of the image or rectangle calculated as (width * height)