#include <background_segm.hpp>
Public Member Functions | |
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 | |
CV_WRAP | BackgroundSubtractorMOG () |
the default constructor | |
virtual void | initialize (Size frameSize, int frameType) |
re-initiaization method | |
virtual void | operator() (const Mat &image, Mat &fgmask, double learningRate=0) |
the update operator | |
virtual | ~BackgroundSubtractorMOG () |
the destructor | |
Public Attributes | |
double | backgroundRatio |
Mat | bgmodel |
Size | frameSize |
int | frameType |
int | history |
int | nframes |
int | nmixtures |
double | noiseSigma |
double | varThreshold |
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
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
virtual void cv::BackgroundSubtractorMOG::initialize | ( | Size | frameSize, | |
int | frameType | |||
) | [virtual] |
re-initiaization method
virtual void cv::BackgroundSubtractorMOG::operator() | ( | const Mat & | image, | |
Mat & | fgmask, | |||
double | learningRate = 0 | |||
) | [virtual] |
the update operator