Store the HOG's metadata.
More...
#include <HOGInfo.h>
|
| HOGInfo () |
| Default constructor. More...
|
|
virtual | ~HOGInfo ()=default |
| Default destructor. More...
|
|
| HOGInfo (const HOGInfo &)=default |
| Allow instances of this class to be copy constructed. More...
|
|
HOGInfo & | operator= (const HOGInfo &)=default |
| Allow instances of this class to be copied. More...
|
|
| HOGInfo (HOGInfo &&)=default |
| Allow instances of this class to be move constructed. More...
|
|
HOGInfo & | operator= (HOGInfo &&)=default |
| Allow instances of this class to be moved. More...
|
|
| HOGInfo (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) |
| Constructor. More...
|
|
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. More...
|
|
const Size2D & | cell_size () const |
| The cell size in pixels. More...
|
|
const Size2D & | block_size () const |
| The block size in pixels. More...
|
|
const Size2D & | detection_window_size () const |
| The detection window size in pixels. More...
|
|
const Size2D & | block_stride () const |
| The block stride in pixels. More...
|
|
size_t | num_bins () const |
| The number of histogram bins for each cell. More...
|
|
HOGNormType | normalization_type () const |
| The normalization type. More...
|
|
float | l2_hyst_threshold () const |
| Threshold used for L2HYS_NORM normalization type. More...
|
|
PhaseType | phase_type () const |
| The type of PhaseType. More...
|
|
size_t | descriptor_size () const |
| The size of HOG descriptor. More...
|
|
Size2D | num_cells_per_block () const |
| Calculates the number of cells for each block. More...
|
|
Size2D | num_blocks_per_image (const Size2D &image_size) const |
| Calculates the number of blocks for the given image size. More...
|
|
Store the HOG's metadata.
Definition at line 35 of file HOGInfo.h.
Allow instances of this class to be copy constructed.
Allow instances of this class to be move constructed.
Constructor.
- Parameters
-
[in] | cell_size | Cell size in pixels |
[in] | block_size | Block size in pixels. Must be a multiple of cell_size. |
[in] | detection_window_size | Detection window size in pixels. Must be a multiple of block_size and block_stride. |
[in] | block_stride | Distance in pixels between 2 consecutive blocks along the x and y direction. Must be a multiple of cell size |
[in] | num_bins | Number of histogram bins for each cell |
[in] | normalization_type | (Optional) Normalization type to use for each block |
[in] | l2_hyst_threshold | (Optional) Threshold used for L2HYS_NORM normalization method |
[in] | phase_type | (Optional) Type of PhaseType |
const Size2D& block_size |
( |
| ) |
const |
The block size in pixels.
- Returns
- The block size in pixels
const Size2D& block_stride |
( |
| ) |
const |
The block stride in pixels.
The block stride is the distance between 2 consecutive blocks
- Returns
- The block stride in pixels
const Size2D& cell_size |
( |
| ) |
const |
The cell size in pixels.
- Returns
- The cell size in pixels
size_t descriptor_size |
( |
| ) |
const |
The size of HOG descriptor.
- Returns
- The size of HOG descriptor
const Size2D& detection_window_size |
( |
| ) |
const |
The detection window size in pixels.
- Returns
- The detection window size in pixels
Initialize the metadata structure with the given parameters.
- Parameters
-
[in] | cell_size | Cell size in pixels |
[in] | block_size | Block size in pixels. Must be a multiple of cell_size. |
[in] | detection_window_size | Detection window size in pixels. Must be a multiple of block_size and block_stride. |
[in] | block_stride | Distance in pixels between 2 consecutive blocks along the x and y direction. Must be a multiple of cell size |
[in] | num_bins | Number of histogram bins for each cell |
[in] | normalization_type | (Optional) Normalization type to use for each block |
[in] | l2_hyst_threshold | (Optional) Threshold used for L2HYS_NORM normalization method |
[in] | phase_type | (Optional) Type of PhaseType |
float l2_hyst_threshold |
( |
| ) |
const |
Threshold used for L2HYS_NORM normalization type.
- Returns
- Threshold used for L2HYS_NORM normalization type
The normalization type.
- Returns
- The normalization type
size_t num_bins |
( |
| ) |
const |
The number of histogram bins for each cell.
- Returns
- The number of histogram bins for each cell
Size2D num_blocks_per_image |
( |
const Size2D & |
image_size | ) |
const |
Calculates the number of blocks for the given image size.
- Parameters
-
[in] | image_size | The input image size data object |
- Returns
- The Size2D data object which stores the number of blocks along the x and y directions
Size2D num_cells_per_block |
( |
| ) |
const |
Calculates the number of cells for each block.
- Returns
- The Size2D data object which stores the number of cells along the x and y directions
Allow instances of this class to be copied.
Allow instances of this class to be moved.
The documentation for this class was generated from the following file: