[][src]Trait opencv::bgsegm::prelude::SyntheticSequenceGeneratorTrait

pub trait SyntheticSequenceGeneratorTrait: AlgorithmTrait {
    pub fn as_raw_SyntheticSequenceGenerator(&self) -> *const c_void;
pub fn as_raw_mut_SyntheticSequenceGenerator(&mut self) -> *mut c_void; pub fn get_next_frame(
        &mut self,
        frame: &mut dyn ToOutputArray,
        gt_mask: &mut dyn ToOutputArray
    ) -> Result<()> { ... } }

Synthetic frame sequence generator for testing background subtraction algorithms.

It will generate the moving object on top of the background. It will apply some distortion to the background to make the test more complex.

Required methods

Loading content...

Provided methods

pub fn get_next_frame(
    &mut self,
    frame: &mut dyn ToOutputArray,
    gt_mask: &mut dyn ToOutputArray
) -> Result<()>
[src]

Obtain the next frame in the sequence.

Parameters

  • frame: Output frame.
  • gtMask: Output ground-truth (reference) segmentation mask object/background.
Loading content...

Implementors

Loading content...