Trait opencv::prelude::HOGDescriptorTrait[][src]

pub trait HOGDescriptorTrait: HOGDescriptorTraitConst {
Show 19 methods fn as_raw_mut_HOGDescriptor(&mut self) -> *mut c_void; fn set_win_size(&mut self, val: Size) { ... }
fn set_block_size(&mut self, val: Size) { ... }
fn set_block_stride(&mut self, val: Size) { ... }
fn set_cell_size(&mut self, val: Size) { ... }
fn set_nbins(&mut self, val: i32) { ... }
fn set_deriv_aperture(&mut self, val: i32) { ... }
fn set_win_sigma(&mut self, val: f64) { ... }
fn set_histogram_norm_type(&mut self, val: HOGDescriptor_HistogramNormType) { ... }
fn set_l2_hys_threshold(&mut self, val: f64) { ... }
fn set_gamma_correction(&mut self, val: bool) { ... }
fn set_svm_detector_vec(&mut self, val: Vector<f32>) { ... }
fn set_ocl_svm_detector(&mut self, val: UMat) { ... }
fn set_free_coef(&mut self, val: f32) { ... }
fn set_nlevels(&mut self, val: i32) { ... }
fn set_signed_gradient(&mut self, val: bool) { ... }
fn set_svm_detector(&mut self, svmdetector: &dyn ToInputArray) -> Result<()> { ... }
fn read(&mut self, fn_: &mut FileNode) -> Result<bool> { ... }
fn load(&mut self, filename: &str, objname: &str) -> Result<bool> { ... }
}

Required methods

Provided methods

Detection window size. Align to block size and block stride. Default value is Size(64,128).

Block size in pixels. Align to cell size. Default value is Size(16,16).

Block stride. It must be a multiple of cell size. Default value is Size(8,8).

Cell size. Default value is Size(8,8).

Number of bins used in the calculation of histogram of gradients. Default value is 9.

not documented

Gaussian smoothing window parameter.

histogramNormType

L2-Hys normalization method shrinkage.

Flag to specify whether the gamma correction preprocessing is required or not.

coefficients for the linear SVM classifier.

coefficients for the linear SVM classifier used when OpenCL is enabled

not documented

Maximum number of detection window increases. Default value is 64

Indicates signed gradient will be used or not

@example samples/cpp/peopledetect.cpp / Sets coefficients for the linear SVM classifier.

Parameters
  • svmdetector: coefficients for the linear SVM classifier.

Reads HOGDescriptor parameters from a cv::FileNode.

Parameters
  • fn: File node

loads HOGDescriptor parameters and coefficients for the linear SVM classifier from a file.

Parameters
  • filename: Path of the file to read.
  • objname: The optional name of the node to read (if empty, the first top-level node will be used).
C++ default parameters
  • objname: String()

Implementors