Table of Contents

Class SyntheticSequenceGenerator

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

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.

public class SyntheticSequenceGenerator : Algorithm, IDisposable
Inheritance
SyntheticSequenceGenerator
Implements
Inherited Members

Constructors

SyntheticSequenceGenerator(InputArray, InputArray, double, double, double, double)

Creates an instance of SyntheticSequenceGenerator.

public SyntheticSequenceGenerator(InputArray background, InputArray @object, double amplitude, double wavelength, double wavespeed, double objspeed)

Parameters

background InputArray

Background image for object.

object InputArray

Object image which will move slowly over the background.

amplitude double

Amplitude of wave distortion applied to background.

wavelength double

Length of waves in distortion applied to background.

wavespeed double

How fast waves will move.

objspeed double

How fast object will fly over background.

Methods

GetNextFrame(OutputArray, OutputArray)

Obtain the next frame in the sequence.

public void GetNextFrame(OutputArray frame, OutputArray gtMask)

Parameters

frame OutputArray

Output frame.

gtMask OutputArray

Output ground-truth (foreground) mask.