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
backgroundInputArrayBackground image for object.
objectInputArrayObject image which will move slowly over the background.
amplitudedoubleAmplitude of wave distortion applied to background.
wavelengthdoubleLength of waves in distortion applied to background.
wavespeeddoubleHow fast waves will move.
objspeeddoubleHow 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
frameOutputArrayOutput frame.
gtMaskOutputArrayOutput ground-truth (foreground) mask.