cv::BackgroundSubtractorMOG Class Reference

Gaussian Mixture-based Backbround/Foreground Segmentation Algorithm. More...

#include <background_segm.hpp>

Inherits cv::BackgroundSubtractor.

List of all members.

Public Member Functions

CV_WRAP BackgroundSubtractorMOG ()
 the default constructor
CV_WRAP BackgroundSubtractorMOG (int history, int nmixtures, double backgroundRatio, double noiseSigma=0)
 the full constructor that takes the length of the history, the number of gaussian mixtures, the background ratio parameter and the noise strength
virtual ~BackgroundSubtractorMOG ()
 the destructor
virtual void operator() (InputArray image, OutputArray fgmask, double learningRate=0)
 the update operator
virtual void initialize (Size frameSize, int frameType)
 re-initiaization method
 CV_WRAP_AS (apply) virtual void operator()(InputArray image
 the update operator that takes the next video frame and returns the current foreground mask as 8-bit binary image.
virtual void getBackgroundImage (OutputArray backgroundImage) const
 computes a background image

Public Attributes

Size frameSize
int frameType
Mat bgmodel
int nframes
int history
int nmixtures
double varThreshold
double backgroundRatio
double noiseSigma
OutputArray fgmask
OutputArray double learningRate = 0)

Detailed Description

Gaussian Mixture-based Backbround/Foreground Segmentation Algorithm.

The class implements the following algorithm: "An improved adaptive background mixture model for real-time tracking with shadow detection" P. KadewTraKuPong and R. Bowden, Proc. 2nd European Workshp on Advanced Video-Based Surveillance Systems, 2001." http://personal.ee.surrey.ac.uk/Personal/R.Bowden/publications/avbs01/avbs01.pdf


Constructor & Destructor Documentation

CV_WRAP cv::BackgroundSubtractorMOG::BackgroundSubtractorMOG (  ) 

the default constructor

CV_WRAP cv::BackgroundSubtractorMOG::BackgroundSubtractorMOG ( int  history,
int  nmixtures,
double  backgroundRatio,
double  noiseSigma = 0 
)

the full constructor that takes the length of the history, the number of gaussian mixtures, the background ratio parameter and the noise strength

virtual cv::BackgroundSubtractorMOG::~BackgroundSubtractorMOG (  )  [virtual]

the destructor


Member Function Documentation

virtual void cv::BackgroundSubtractorMOG::operator() ( InputArray  image,
OutputArray  fgmask,
double  learningRate = 0 
) [virtual]

the update operator

virtual void cv::BackgroundSubtractorMOG::initialize ( Size  frameSize,
int  frameType 
) [virtual]

re-initiaization method

cv::BackgroundSubtractor::CV_WRAP_AS ( apply   )  [inherited]

the update operator that takes the next video frame and returns the current foreground mask as 8-bit binary image.

virtual void cv::BackgroundSubtractor::getBackgroundImage ( OutputArray  backgroundImage  )  const [virtual, inherited]

computes a background image

Reimplemented in cv::BackgroundSubtractorMOG2.


Member Data Documentation


The documentation for this class was generated from the following file: