[][src]Function opencv::bgsegm::create_synthetic_sequence_generator

pub fn create_synthetic_sequence_generator(
    background: &dyn ToInputArray,
    object: &dyn ToInputArray,
    amplitude: f64,
    wavelength: f64,
    wavespeed: f64,
    objspeed: f64
) -> Result<PtrOfSyntheticSequenceGenerator>

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.

C++ default parameters

  • amplitude: 2.0
  • wavelength: 20.0
  • wavespeed: 0.2
  • objspeed: 6.0