Class cv::bgsegm::SyntheticSequenceGenerator#

Synthetic frame sequence generator for testing background subtraction algorithms. View details

Collaboration diagram for cv::bgsegm::SyntheticSequenceGenerator:

Public Member Functions#

Public Member Functions inherited from cv::Algorithm

Return

Name

Description

Algorithm()

~Algorithm()

void

clear()

Clears the algorithm state.

bool

empty()

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.

String

getDefaultName()

void

read(const FileNode & fn)

Reads algorithm parameters from a file storage.

void

save(const String & filename)

void

write(
    const Ptr< FileStorage > & fs,
    const String & name = String() )

void

write(FileStorage & fs)

Stores algorithm parameters in a file storage.

void

write(
    FileStorage & fs,
    const String & name )

Static Public Member Functions#

Static Public Member Functions inherited from cv::Algorithm

Return

Name

Description

static Ptr< _Tp >

load(
    const String & filename,
    const String & objname = String() )

Loads algorithm from the file.

static Ptr< _Tp >

loadFromString(
    const String & strModel,
    const String & objname = String() )

Loads algorithm from a String.

static Ptr< _Tp >

read(const FileNode & fn)

Reads algorithm from the file node.

Additional Inherited Members#

Protected Member Functions inherited from cv::Algorithm

Return

Name

Description

void

writeFormat(FileStorage & fs)

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: