[−][src]Trait opencv::tracking::TrackerFeatureHAARTrait
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
fn as_raw_TrackerFeatureHAAR(&self) -> *const c_void
fn as_raw_mut_TrackerFeatureHAAR(&mut self) -> *mut c_void
Provided methods
fn extract_selected(
&mut self,
sel_features: Vector<i32>,
images: &Vector<Mat>,
response: &mut Mat
) -> Result<bool>
&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>
&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