Detail_TrackerContribFeatureHAARTrait

Trait Detail_TrackerContribFeatureHAARTrait 

Source
pub trait Detail_TrackerContribFeatureHAARTrait: Detail_TrackerContribFeatureHAARTraitConst + Detail_TrackerContribFeatureTrait {
    // Required method
    fn as_raw_mut_Detail_TrackerContribFeatureHAAR(&mut self) -> *mut c_void;

    // Provided methods
    fn extract_selected(
        &mut self,
        sel_features: Vector<i32>,
        images: &Vector<Mat>,
        response: &mut impl MatTrait,
    ) -> Result<bool> { ... }
    fn selection(
        &mut self,
        response: &mut impl MatTrait,
        npoints: i32,
    ) -> Result<()> { ... }
    fn swap_feature(&mut self, source: i32, target: i32) -> Result<bool> { ... }
}
Expand description

Required Methods§

Provided Methods§

Source

fn extract_selected( &mut self, sel_features: Vector<i32>, images: &Vector<Mat>, response: &mut impl MatTrait, ) -> Result<bool>

Compute the features only for the selected indices in the images collection

§Parameters
  • selFeatures: indices of selected features
  • images: The images
  • response: Collection of response for the specific TrackerContribFeature
Source

fn selection( &mut self, response: &mut impl MatTrait, npoints: i32, ) -> Result<()>

Identify most effective features

§Parameters
  • response: Collection of response for the specific TrackerContribFeature
  • npoints: Max number of features

Note: This method modifies the response parameter

Source

fn swap_feature(&mut self, source: i32, target: i32) -> Result<bool>

Swap the feature in position source with the feature in position target

§Parameters
  • source: The source position
  • target: The target position

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§