[][src]Trait opencv::tracking::TrackerFeatureHAARTrait

pub trait TrackerFeatureHAARTrait: TrackerFeature {
    fn as_raw_TrackerFeatureHAAR(&self) -> *const c_void;
fn as_raw_mut_TrackerFeatureHAAR(&mut self) -> *mut c_void; fn extract_selected(
        &mut self,
        sel_features: Vector<i32>,
        images: &Vector<Mat>,
        response: &mut Mat
    ) -> Result<bool> { ... }
fn selection(&mut self, response: &mut Mat, npoints: i32) -> Result<()> { ... }
fn swap_feature(&mut self, source: i32, target: i32) -> Result<bool> { ... }
fn swap_feature_1(
        &mut self,
        id: i32,
        feature: &mut CvHaarEvaluator_FeatureHaar
    ) -> Result<bool> { ... }
fn get_feature_at(&mut self, id: i32) -> Result<CvHaarEvaluator_FeatureHaar> { ... } }

TrackerFeature based on HAAR features, used by TrackerMIL and many others algorithms

Note: HAAR features implementation is copied from apps/traincascade and modified according to MIL

Required methods

Loading content...

Provided methods

fn extract_selected(
    &mut self,
    sel_features: Vector<i32>,
    images: &Vector<Mat>,
    response: &mut Mat
) -> 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 TrackerFeature

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

Identify most effective features

Parameters

  • response: Collection of response for the specific TrackerFeature
  • npoints: Max number of features

Note: This method modifies the response parameter

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

fn swap_feature_1(
    &mut self,
    id: i32,
    feature: &mut CvHaarEvaluator_FeatureHaar
) -> Result<bool>

Swap the feature in position id with the feature input

Parameters

  • id: The position
  • feature: The feature

fn get_feature_at(&mut self, id: i32) -> Result<CvHaarEvaluator_FeatureHaar>

Get the feature in position id

Parameters

  • id: The position
Loading content...

Implementors

Loading content...