Class cv::bgsegm::SyntheticSequenceGenerator#
Synthetic frame sequence generator for testing background subtraction algorithms. View details
#include <opencv2/bgsegm.hpp>Collaboration diagram for cv::bgsegm::SyntheticSequenceGenerator:
Public Member Functions#
Public Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
Clears the algorithm state. |
|
|
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. |
|
|
Reads algorithm parameters from a file storage. |
|
|
||
|
|
|
|
Stores algorithm parameters in a file storage. |
|
|
Static Public Member Functions#
Static Public Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
|
Loads algorithm from the file. |
|
|
Loads algorithm from a String. |
|
Reads algorithm from the file node. |
Additional Inherited Members#
Protected Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
Detailed Description#
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.
Constructor & Destructor Documentation#
SyntheticSequenceGenerator()#
cv::bgsegm::SyntheticSequenceGenerator::SyntheticSequenceGenerator(
InputArray background,
InputArray object,
double amplitude,
double wavelength,
double wavespeed,
double objspeed )
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.
Member Function Documentation#
getNextFrame()#
void cv::bgsegm::SyntheticSequenceGenerator::getNextFrame(
OutputArray frame,
OutputArray gtMask )
Obtain the next frame in the sequence.
Parameters
frame— Output frame.gtMask— Output ground-truth (reference) segmentation mask object/background.
Member Data Documentation#
amplitude#
const double cv::bgsegm::SyntheticSequenceGenerator::amplitude
background#
Mat cv::bgsegm::SyntheticSequenceGenerator::background
dir#
Point2d cv::bgsegm::SyntheticSequenceGenerator::dir
object#
Mat cv::bgsegm::SyntheticSequenceGenerator::object
objspeed#
const double cv::bgsegm::SyntheticSequenceGenerator::objspeed
pos#
Point2d cv::bgsegm::SyntheticSequenceGenerator::pos
rng#
RNG cv::bgsegm::SyntheticSequenceGenerator::rng
timeStep#
unsigned cv::bgsegm::SyntheticSequenceGenerator::timeStep
wavelength#
const double cv::bgsegm::SyntheticSequenceGenerator::wavelength
wavespeed#
const double cv::bgsegm::SyntheticSequenceGenerator::wavespeed
Source file#
The documentation for this class was generated from the following file:
opencv2/bgsegm.hpp