Trait opencv::prelude::HOGConst [−][src]
pub trait HOGConst: AlgorithmTraitConst {
Show 13 methods
fn as_raw_HOG(&self) -> *const c_void;
fn get_win_sigma(&self) -> Result<f64> { ... }
fn get_l2_hys_threshold(&self) -> Result<f64> { ... }
fn get_gamma_correction(&self) -> Result<bool> { ... }
fn get_num_levels(&self) -> Result<i32> { ... }
fn get_hit_threshold(&self) -> Result<f64> { ... }
fn get_win_stride(&self) -> Result<Size> { ... }
fn get_scale_factor(&self) -> Result<f64> { ... }
fn get_group_threshold(&self) -> Result<i32> { ... }
fn get_descriptor_format(
&self
) -> Result<HOGDescriptor_DescriptorStorageFormat> { ... }
fn get_descriptor_size(&self) -> Result<size_t> { ... }
fn get_block_histogram_size(&self) -> Result<size_t> { ... }
fn get_default_people_detector(&self) -> Result<Mat> { ... }
}
Expand description
The class implements Histogram of Oriented Gradients (Dalal2005) object detector.
Note:
- An example applying the HOG descriptor for people detection can be found at opencv_source_code/samples/cpp/peopledetect.cpp
- A CUDA example applying the HOG descriptor for people detection can be found at opencv_source_code/samples/gpu/hog.cpp
- (Python) An example applying the HOG descriptor for people detection can be found at opencv_source_code/samples/python/peopledetect.py
Required methods
fn as_raw_HOG(&self) -> *const c_void
Provided methods
fn get_win_sigma(&self) -> Result<f64>
fn get_l2_hys_threshold(&self) -> Result<f64>
fn get_gamma_correction(&self) -> Result<bool>
fn get_num_levels(&self) -> Result<i32>
fn get_hit_threshold(&self) -> Result<f64>
fn get_win_stride(&self) -> Result<Size>
fn get_scale_factor(&self) -> Result<f64>
fn get_group_threshold(&self) -> Result<i32>
fn get_descriptor_size(&self) -> Result<size_t>
fn get_descriptor_size(&self) -> Result<size_t>
Returns the number of coefficients required for the classification.
fn get_block_histogram_size(&self) -> Result<size_t>
fn get_block_histogram_size(&self) -> Result<size_t>
Returns the block histogram size.
fn get_default_people_detector(&self) -> Result<Mat>
fn get_default_people_detector(&self) -> Result<Mat>
Returns coefficients of the classifier trained for people detection.