[][src]Struct opencv::bgsegm::SyntheticSequenceGenerator

pub struct SyntheticSequenceGenerator { /* fields omitted */ }

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.

Methods

impl SyntheticSequenceGenerator[src]

impl SyntheticSequenceGenerator[src]

pub fn new(
    background: &dyn ToInputArray,
    object: &dyn ToInputArray,
    amplitude: f64,
    wavelength: f64,
    wavespeed: f64,
    objspeed: f64
) -> Result<SyntheticSequenceGenerator>
[src]

Creates an instance of SyntheticSequenceGenerator.

Parameters

  • background: Background image for object.
  • object: Object image which will move slowly over the background.
  • amplitude: Amplitude of wave distortion applied to background.
  • wavelength: Length of waves in distortion applied to background.
  • wavespeed: How fast waves will move.
  • objspeed: How fast object will fly over background.

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.

Trait Implementations

impl AlgorithmTrait for SyntheticSequenceGenerator[src]

impl Drop for SyntheticSequenceGenerator[src]

impl Send for SyntheticSequenceGenerator[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.