[−][src]Trait opencv::prelude::TrackerSamplerAlgorithm
Abstract base class for TrackerSamplerAlgorithm that represents the algorithm for the specific sampler.
Required methods
fn as_raw_TrackerSamplerAlgorithm(&self) -> *const c_void
fn as_raw_mut_TrackerSamplerAlgorithm(&mut self) -> *mut c_void
Provided methods
fn sampling(
&mut self,
image: &Mat,
bounding_box: Rect,
sample: &mut Vector<Mat>
) -> Result<bool>
&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
Implementations
impl<'_> dyn TrackerSamplerAlgorithm + '_[src]
pub fn create(
tracker_sampler_type: &str
) -> Result<Ptr<dyn TrackerSamplerAlgorithm>>[src]
tracker_sampler_type: &str
) -> Result<Ptr<dyn TrackerSamplerAlgorithm>>
Create TrackerSamplerAlgorithm by tracker sampler type.
Parameters
- trackerSamplerType: The trackerSamplerType name
The modes available now:
- "CSC" -- Current State Center
- "CS" -- Current State