#include <background_segm.hpp>
Inherits cv::BackgroundSubtractor.
Public Member Functions | |
BackgroundSubtractorMOG2 () | |
the default constructor | |
BackgroundSubtractorMOG2 (int history, float varThreshold, bool bShadowDetection=1) | |
the full constructor that takes the length of the history, the number of gaussian mixtures, the background ratio parameter and the noise strength | |
virtual | ~BackgroundSubtractorMOG2 () |
the destructor | |
virtual void | operator() (InputArray image, OutputArray fgmask, double learningRate=-1) |
the update operator | |
virtual void | getBackgroundImage (OutputArray backgroundImage) const |
computes a background image which are the mean of all background gaussians | |
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. | |
Public Attributes | |
Size | frameSize |
int | frameType |
Mat | bgmodel |
Mat | bgmodelUsedModes |
int | nframes |
int | history |
int | nmixtures |
float | varThreshold |
float | backgroundRatio |
float | varThresholdGen |
float | fVarInit |
float | fVarMin |
float | fVarMax |
float | fCT |
bool | bShadowDetection |
unsigned char | nShadowDetection |
float | fTau |
OutputArray | fgmask |
OutputArray double | learningRate = 0) |
the default constructor
cv::BackgroundSubtractorMOG2::BackgroundSubtractorMOG2 | ( | int | history, |
float | varThreshold, | ||
bool | bShadowDetection = 1 |
||
) |
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::BackgroundSubtractorMOG2::~BackgroundSubtractorMOG2 | ( | ) | [virtual] |
the destructor
virtual void cv::BackgroundSubtractorMOG2::operator() | ( | InputArray | image, |
OutputArray | fgmask, | ||
double | learningRate = -1 |
||
) | [virtual] |
the update operator
virtual void cv::BackgroundSubtractorMOG2::getBackgroundImage | ( | OutputArray | backgroundImage | ) | const [virtual] |
computes a background image which are the mean of all background gaussians
Reimplemented from cv::BackgroundSubtractor.
virtual void cv::BackgroundSubtractorMOG2::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.
here it is the maximum allowed number of mixture comonents. Actual number is determined dynamically per pixel
unsigned char cv::BackgroundSubtractorMOG2::nShadowDetection |
OutputArray cv::BackgroundSubtractor::fgmask [inherited] |
OutputArray double cv::BackgroundSubtractor::learningRate = 0) [inherited] |