[][src]Trait opencv::prelude::TrackerSamplerAlgorithm

pub trait TrackerSamplerAlgorithm {
    fn as_raw_TrackerSamplerAlgorithm(&self) -> *const c_void;
fn as_raw_mut_TrackerSamplerAlgorithm(&mut self) -> *mut c_void; fn sampling(
        &mut self,
        image: &Mat,
        bounding_box: Rect,
        sample: &mut Vector<Mat>
    ) -> Result<bool> { ... }
fn get_class_name(&self) -> Result<String> { ... } }

Abstract base class for TrackerSamplerAlgorithm that represents the algorithm for the specific sampler.

Required methods

Loading content...

Provided methods

fn sampling(
    &mut self,
    image: &Mat,
    bounding_box: Rect,
    sample: &mut Vector<Mat>
) -> Result<bool>

Computes the regions starting from a position in an image.

Return true if samples are computed, false otherwise

Parameters

  • image: The current frame

  • boundingBox: The bounding box from which regions can be calculated

  • sample: The computed samples AAM Fig. 1 variable Sk

fn get_class_name(&self) -> Result<String>

Get the name of the specific TrackerSamplerAlgorithm

Loading content...

Implementations

impl<'_> dyn TrackerSamplerAlgorithm + '_[src]

pub fn create(
    tracker_sampler_type: &str
) -> Result<Ptr<dyn TrackerSamplerAlgorithm>>
[src]

Create TrackerSamplerAlgorithm by tracker sampler type.

Parameters

  • trackerSamplerType: The trackerSamplerType name

The modes available now:

  • "CSC" -- Current State Center
  • "CS" -- Current State

Implementors

Loading content...