Detail_TrackerModelTrait

Trait Detail_TrackerModelTrait 

Source
pub trait Detail_TrackerModelTrait: Detail_TrackerModelTraitConst {
    // Required method
    fn as_raw_mut_Detail_TrackerModel(&mut self) -> *mut c_void;

    // Provided methods
    fn set_tracker_state_estimator(
        &mut self,
        tracker_state_estimator: Ptr<Detail_TrackerStateEstimator>,
    ) -> Result<bool> { ... }
    fn model_estimation(&mut self, responses: &Vector<Mat>) -> Result<()> { ... }
    fn model_update(&mut self) -> Result<()> { ... }
    fn run_state_estimator(&mut self) -> Result<bool> { ... }
    fn set_last_target_state(
        &mut self,
        last_target_state: &Ptr<Detail_TrackerTargetState>,
    ) -> Result<()> { ... }
}
Expand description

Required Methods§

Provided Methods§

Source

fn set_tracker_state_estimator( &mut self, tracker_state_estimator: Ptr<Detail_TrackerStateEstimator>, ) -> Result<bool>

Set TrackerEstimator, return true if the tracker state estimator is added, false otherwise

§Parameters
  • trackerStateEstimator: The TrackerStateEstimator

Note: You can add only one TrackerStateEstimator

Source

fn model_estimation(&mut self, responses: &Vector<Mat>) -> Result<()>

Estimate the most likely target location

AAM ME, Model Estimation table I

§Parameters
  • responses: Features extracted from TrackerFeatureSet
Source

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

Update the model

AAM MU, Model Update table I

Source

fn run_state_estimator(&mut self) -> Result<bool>

Run the TrackerStateEstimator, return true if is possible to estimate a new state, false otherwise

Source

fn set_last_target_state( &mut self, last_target_state: &Ptr<Detail_TrackerTargetState>, ) -> Result<()>

Set the current TrackerTargetState in the Trajectory

§Parameters
  • lastTargetState: The current TrackerTargetState

Implementors§