[−][src]Struct cv::objdetect::HogParams
Parameters that controls the behavior of HOG.
Fields
win_size: Size2iDetection window size. Align to block size and block stride. The default is 64x128, trained the same as original paper.
block_size: Size2iBlock size in pixels. Align to cell size. Only (16,16) is supported for now (at least for GPU).
block_stride: Size2iBlock stride. It must be a multiple of cell size.
cell_size: Size2iCell size. Only (8, 8) is supported for now.
nbins: i32Number of bins. Only 9 bins per cell are supported for now.
win_sigma: f64Gaussian smoothing window parameter. Default -1 for CPU and 4.0 for GPU.
l2hys_threshold: f64L2-Hys normalization method shrinkage. Default 0.2.
gamma_correction: boolFlag to specify whether the gamma correction preprocessing is required or not. Default false.
nlevels: usizeMaximum number of detection window increases (HOG scales). Default: 64.
hit_threshold: f64Threshold for the distance between features and SVM classifying plane. Usually it is 0 and should be specfied in the detector coefficients (as the last free coefficient). But if the free coefficient is omitted (which is allowed), you can specify it manually here.
win_stride: Size2iWindow stride. It must be a multiple of block stride.
padding: Size2iPadding
scale: f64Coefficient of the detection window increase.
group_threshold: i32Coefficient to regulate the similarity threshold. When detected, some objects can be covered by many rectangles. 0 means not to perform grouping.
use_meanshift_grouping: boolThe useMeanShiftGrouping parameter is a boolean indicating whether or not mean-shift grouping should be performed to handle potential overlapping bounding boxes. While this value should not be set and users should employ non-maxima suppression instead, we support setting it as a library function.
final_threshold: f64The finalThreshold parameter is mainly used to select the clusters
that have at least finalThreshold + 1 rectangles. This parameter is
passed when meanShift is enabled; the function rejects the small
clusters containing less than or equal to finalThreshold rectangles,
computes the average rectangle size for the rest of the accepted
clusters and adds those to the output rectangle list.
Trait Implementations
impl Default for HogParams[src]
impl Clone for HogParams[src]
fn clone(&self) -> HogParams[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for HogParams[src]
impl Debug for HogParams[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,