[][src]Trait opencv::hub_prelude::SyntheticSequenceGeneratorTrait

pub trait SyntheticSequenceGeneratorTrait: AlgorithmTrait {
    fn as_raw_SyntheticSequenceGenerator(&self) -> *mut c_void;

    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

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

Obtain the next frame in the sequence.

Parameters

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

Implementors

impl SyntheticSequenceGeneratorTrait for SyntheticSequenceGenerator[src]

impl SyntheticSequenceGeneratorTrait for PtrOfSyntheticSequenceGenerator[src]

Loading content...