OpenCV  3.2.0-dev
Open Source Computer Vision
Classes | Functions
Improved Background-Foreground Segmentation Methods


class  cv::bgsegm::BackgroundSubtractorGMG
 Background Subtractor module based on the algorithm given in [62] . More...
class  cv::bgsegm::BackgroundSubtractorMOG
 Gaussian Mixture-based Background/Foreground Segmentation Algorithm. More...


Ptr< BackgroundSubtractorGMGcv::bgsegm::createBackgroundSubtractorGMG (int initializationFrames=120, double decisionThreshold=0.8)
 Creates a GMG Background Subtractor. More...
Ptr< BackgroundSubtractorMOGcv::bgsegm::createBackgroundSubtractorMOG (int history=200, int nmixtures=5, double backgroundRatio=0.7, double noiseSigma=0)
 Creates mixture-of-gaussian background subtractor. More...

Detailed Description

Function Documentation

§ createBackgroundSubtractorGMG()

Ptr<BackgroundSubtractorGMG> cv::bgsegm::createBackgroundSubtractorGMG ( int  initializationFrames = 120,
double  decisionThreshold = 0.8 

Creates a GMG Background Subtractor.

initializationFramesnumber of frames used to initialize the background models.
decisionThresholdThreshold value, above which it is marked foreground, else background.

§ createBackgroundSubtractorMOG()

Ptr<BackgroundSubtractorMOG> cv::bgsegm::createBackgroundSubtractorMOG ( int  history = 200,
int  nmixtures = 5,
double  backgroundRatio = 0.7,
double  noiseSigma = 0 

Creates mixture-of-gaussian background subtractor.

historyLength of the history.
nmixturesNumber of Gaussian mixtures.
backgroundRatioBackground ratio.
noiseSigmaNoise strength (standard deviation of the brightness or each color channel). 0 means some automatic value.