Detail_TrackerContribFeatureSetTrait

Trait Detail_TrackerContribFeatureSetTrait 

Source
pub trait Detail_TrackerContribFeatureSetTrait: Detail_TrackerContribFeatureSetTraitConst {
    // Required method
    fn as_raw_mut_Detail_TrackerContribFeatureSet(&mut self) -> *mut c_void;

    // Provided methods
    fn extraction(&mut self, images: &Vector<Mat>) -> Result<()> { ... }
    fn selection(&mut self) -> Result<()> { ... }
    fn remove_outliers(&mut self) -> Result<()> { ... }
    fn add_tracker_feature(
        &mut self,
        tracker_feature_type: &str,
    ) -> Result<bool> { ... }
    fn add_tracker_feature_1(
        &mut self,
        feature: &mut Ptr<Detail_TrackerContribFeature>,
    ) -> Result<bool> { ... }
}
Expand description

Required Methods§

Provided Methods§

Source

fn extraction(&mut self, images: &Vector<Mat>) -> Result<()>

Extract features from the images collection

§Parameters
  • images: The input images
Source

fn selection(&mut self) -> Result<()>

Identify most effective features for all feature types (optional)

Source

fn remove_outliers(&mut self) -> Result<()>

Remove outliers for all feature types (optional)

Source

fn add_tracker_feature(&mut self, tracker_feature_type: &str) -> Result<bool>

Add TrackerContribFeature in the collection. Return true if TrackerContribFeature is added, false otherwise

§Parameters
  • trackerFeatureType: The TrackerContribFeature name

The modes available now:

  • “HAAR” – Haar Feature-based

The modes that will be available soon:

  • “HOG” – Histogram of Oriented Gradients features
  • “LBP” – Local Binary Pattern features
  • “FEATURE2D” – All types of Feature2D

Example TrackerContribFeatureSet::addTrackerFeature : :

   //sample usage:

   Ptr<TrackerContribFeature> trackerFeature = ...;
   featureSet->addTrackerFeature( trackerFeature );

   //or add CSC sampler with default parameters
   //featureSet->addTrackerFeature( "HAAR" );

Note: If you use the second method, you must initialize the TrackerContribFeature

Source

fn add_tracker_feature_1( &mut self, feature: &mut Ptr<Detail_TrackerContribFeature>, ) -> Result<bool>

Add TrackerContribFeature in the collection. Return true if TrackerContribFeature is added, false otherwise

§Parameters
  • trackerFeatureType: The TrackerContribFeature name

The modes available now:

  • “HAAR” – Haar Feature-based

The modes that will be available soon:

  • “HOG” – Histogram of Oriented Gradients features
  • “LBP” – Local Binary Pattern features
  • “FEATURE2D” – All types of Feature2D

Example TrackerContribFeatureSet::addTrackerFeature : :

   //sample usage:

   Ptr<TrackerContribFeature> trackerFeature = ...;
   featureSet->addTrackerFeature( trackerFeature );

   //or add CSC sampler with default parameters
   //featureSet->addTrackerFeature( "HAAR" );

Note: If you use the second method, you must initialize the TrackerContribFeature

§Overloaded parameters
  • feature: The TrackerContribFeature class

Implementors§