[−][src]Trait opencv::hub_prelude::SyntheticSequenceGeneratorTrait
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
fn as_raw_SyntheticSequenceGenerator(&self) -> *mut c_void
Provided methods
fn get_next_frame(
&mut self,
frame: &mut dyn ToOutputArray,
gt_mask: &mut dyn ToOutputArray
) -> Result<()>
&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.