[−][src]Trait opencv::prelude::TrackerFeatureSetTrait
Class that manages the extraction and selection of features
AAM Feature Extraction and Feature Set Refinement (Feature Processing and Feature Selection). See table I and section III C AMVOT Appearance modelling -> Visual representation (Table II, section 3.1 - 3.2)
TrackerFeatureSet is an aggregation of TrackerFeature
See also
TrackerFeature
Required methods
fn as_raw_TrackerFeatureSet(&self) -> *const c_void
fn as_raw_mut_TrackerFeatureSet(&mut self) -> *mut c_void
Provided methods
fn extraction(&mut self, images: &Vector<Mat>) -> Result<()>
fn selection(&mut self) -> Result<()>
Identify most effective features for all feature types (optional)
fn remove_outliers(&mut self) -> Result<()>
Remove outliers for all feature types (optional)
fn add_tracker_feature(&mut self, tracker_feature_type: &str) -> Result<bool>
Add TrackerFeature in the collection. Return true if TrackerFeature is added, false otherwise
Parameters
- trackerFeatureType: The TrackerFeature 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 TrackerFeatureSet::addTrackerFeature : :
//sample usage: Ptr<TrackerFeature> trackerFeature = new TrackerFeatureHAAR( HAARparameters ); featureSet->addTrackerFeature( trackerFeature ); //or add CSC sampler with default parameters //featureSet->addTrackerFeature( "HAAR" );
Note: If you use the second method, you must initialize the TrackerFeature
fn add_tracker_feature_1(
&mut self,
feature: &mut Ptr<dyn TrackerFeature>
) -> Result<bool>
&mut self,
feature: &mut Ptr<dyn TrackerFeature>
) -> Result<bool>
Add TrackerFeature in the collection. Return true if TrackerFeature is added, false otherwise
Parameters
- trackerFeatureType: The TrackerFeature 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 TrackerFeatureSet::addTrackerFeature : :
//sample usage: Ptr<TrackerFeature> trackerFeature = new TrackerFeatureHAAR( HAARparameters ); featureSet->addTrackerFeature( trackerFeature ); //or add CSC sampler with default parameters //featureSet->addTrackerFeature( "HAAR" );
Note: If you use the second method, you must initialize the TrackerFeature
Overloaded parameters
- feature: The TrackerFeature class
fn get_responses(&self) -> Result<Vector<Mat>>
Get the responses
Note: Be sure to call extraction before getResponses Example TrackerFeatureSet::getResponses : :