Detail_TrackerSamplerTrait

Trait Detail_TrackerSamplerTrait 

Source
pub trait Detail_TrackerSamplerTrait: Detail_TrackerSamplerTraitConst {
    // Required method
    fn as_raw_mut_Detail_TrackerSampler(&mut self) -> *mut c_void;

    // Provided methods
    fn sampling(
        &mut self,
        image: &impl MatTraitConst,
        bounding_box: Rect,
    ) -> Result<()> { ... }
    fn add_tracker_sampler_algorithm(
        &mut self,
        sampler: &Ptr<Detail_TrackerSamplerAlgorithm>,
    ) -> Result<bool> { ... }
}
Expand description

Required Methods§

Provided Methods§

Source

fn sampling( &mut self, image: &impl MatTraitConst, bounding_box: Rect, ) -> Result<()>

Computes the regions starting from a position in an image

§Parameters
  • image: The current frame
  • boundingBox: The bounding box from which regions can be calculated
Source

fn add_tracker_sampler_algorithm( &mut self, sampler: &Ptr<Detail_TrackerSamplerAlgorithm>, ) -> Result<bool>

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

§Parameters
  • sampler: The TrackerSamplerAlgorithm

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§