opencv 2.2.0
Public Member Functions | Public Attributes
cv::BackgroundSubtractorMOG2 Class Reference

#include <background_segm.hpp>

Inheritance diagram for cv::BackgroundSubtractorMOG2:
cv::BackgroundSubtractor

List of all members.

Public Member Functions

CV_WRAP BackgroundSubtractorMOG2 ()
 the default constructor
CV_WRAP BackgroundSubtractorMOG2 (double alphaT, double sigma=15, int nmixtures=5, bool postFiltering=false, double minArea=15, bool detectShadows=true, bool removeForeground=false, double Tb=16, double Tg=9, double TB=0.9, double CT=0.05, int shadowOutputValue=127, double tau=0.5)
 the full constructor that takes the length of the history, the number of gaussian mixtures, the background ratio parameter and the noise strength
virtual void initialize (Size frameSize, double alphaT, double sigma=15, int nmixtures=5, bool postFiltering=false, double minArea=15, bool detectShadows=true, bool removeForeground=false, double Tb=16, double Tg=9, double TB=0.9, double CT=0.05, int nShadowDetection=127, double tau=0.5)
 re-initiaization method
virtual void operator() (const Mat &image, Mat &fgmask, double learningRate=0)
 the update operator
virtual ~BackgroundSubtractorMOG2 ()
 the destructor

Public Attributes

void * model

Constructor & Destructor Documentation

CV_WRAP cv::BackgroundSubtractorMOG2::BackgroundSubtractorMOG2 ( )

the default constructor

CV_WRAP cv::BackgroundSubtractorMOG2::BackgroundSubtractorMOG2 ( double  alphaT,
double  sigma = 15,
int  nmixtures = 5,
bool  postFiltering = false,
double  minArea = 15,
bool  detectShadows = true,
bool  removeForeground = false,
double  Tb = 16,
double  Tg = 9,
double  TB = 0.9,
double  CT = 0.05,
int  shadowOutputValue = 127,
double  tau = 0.5 
)

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


Member Function Documentation

virtual void cv::BackgroundSubtractorMOG2::initialize ( Size  frameSize,
double  alphaT,
double  sigma = 15,
int  nmixtures = 5,
bool  postFiltering = false,
double  minArea = 15,
bool  detectShadows = true,
bool  removeForeground = false,
double  Tb = 16,
double  Tg = 9,
double  TB = 0.9,
double  CT = 0.05,
int  nShadowDetection = 127,
double  tau = 0.5 
) [virtual]

re-initiaization method

virtual void cv::BackgroundSubtractorMOG2::operator() ( const Mat image,
Mat fgmask,
double  learningRate = 0 
) [virtual]

the update operator


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines