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,
143 Size2D _detection_window_size;
147 float _l2_hyst_threshold;
149 size_t _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.
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.
HOGInfo()
Default constructor.
Size2D num_cells_per_block() const
Calculates the number of cells for each block.
const Size2D & block_size() const
The block size in pixels.
float l2_hyst_threshold() const
Threshold used for L2HYS_NORM normalization type.
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.
HOGInfo & operator=(const HOGInfo &)=default
Allow instances of this class to be copied.
virtual ~HOGInfo()=default
Default destructor.
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.