24 #ifndef __ARM_COMPUTE_HOGINFO_H__ 25 #define __ARM_COMPUTE_HOGINFO_H__ 74 void init(
const Size2D &cell_size,
const Size2D &block_size,
const Size2D &detection_window_size,
const Size2D &block_stride,
size_t num_bins,
137 Size2D _detection_window_size;
141 float _l2_hyst_threshold;
143 size_t _descriptor_size;
L2-norm followed by clipping.
PhaseType phase_type() const
The type of PhaseType.
PhaseType
Phase calculation type.
Size2D num_cells_per_block() const
Calculates the number of cells for each block.
Store the HOG's metadata.
const Size2D & cell_size() const
The cell size in pixels.
HOGNormType normalization_type() const
The normalization type.
const Size2D & block_stride() const
The block stride in pixels.
Size2D num_blocks_per_image(const Size2D &image_size) const
Calculates the number of blocks for the given image size.
float l2_hyst_threshold() const
Threshold used for L2HYS_NORM normalization type.
HOGInfo()
Default constructor.
size_t descriptor_size() const
The size of HOG descriptor.
HOGNormType
Normalization type for Histogram of Oriented Gradients (HOG)
Class for specifying the size of an image or rectangle.
HOGInfo & operator=(const HOGInfo &)=default
Allow instances of this class to be copied.
virtual ~HOGInfo()=default
Default destructor.
size_t num_bins() const
The number of histogram bins for each cell.
const Size2D & block_size() const
The block size in pixels.
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.
const Size2D & detection_window_size() const
The detection window size in pixels.