Public Member Functions | Public Attributes | List of all members
cv::ocl::MOG2 Class Reference

The class implements the following algorithm: "Improved adaptive Gausian mixture model for background subtraction" Z.Zivkovic International Conference Pattern Recognition, UK, August, 2004. More...

#include <ocl.hpp>

Inherits cv::ocl::BackgroundSubtractor.

Public Member Functions

 MOG2 (int nmixtures=-1)
 the default constructor More...
 
void initialize (Size frameSize, int frameType)
 re-initiaization method More...
 
void operator() (const oclMat &frame, oclMat &fgmask, float learningRate=-1.0f)
 the update operator More...
 
void getBackgroundImage (oclMat &backgroundImage) const
 computes a background image which are the mean of all background gaussians More...
 
void release ()
 releases all inner buffers More...
 

Public Attributes

int history
 
float varThreshold
 
float backgroundRatio
 
float varThresholdGen
 
float fVarInit
 
float fVarMin
 
float fVarMax
 
float fCT
 
bool bShadowDetection
 
unsigned char nShadowDetection
 
float fTau
 

Detailed Description

The class implements the following algorithm: "Improved adaptive Gausian mixture model for background subtraction" Z.Zivkovic International Conference Pattern Recognition, UK, August, 2004.

http://www.zoranz.net/Publications/zivkovic2004ICPR.pdf

Constructor & Destructor Documentation

cv::ocl::MOG2::MOG2 ( int  nmixtures = -1)

the default constructor

Member Function Documentation

void cv::ocl::MOG2::initialize ( Size  frameSize,
int  frameType 
)

re-initiaization method

void cv::ocl::MOG2::operator() ( const oclMat frame,
oclMat fgmask,
float  learningRate = -1.0f 
)
virtual

the update operator

Reimplemented from cv::ocl::BackgroundSubtractor.

void cv::ocl::MOG2::getBackgroundImage ( oclMat backgroundImage) const
virtual

computes a background image which are the mean of all background gaussians

Implements cv::ocl::BackgroundSubtractor.

void cv::ocl::MOG2::release ( )

releases all inner buffers

Member Data Documentation

int cv::ocl::MOG2::history
float cv::ocl::MOG2::varThreshold

here it is the maximum allowed number of mixture components. Actual number is determined dynamically per pixel

float cv::ocl::MOG2::backgroundRatio
float cv::ocl::MOG2::varThresholdGen
float cv::ocl::MOG2::fVarInit
float cv::ocl::MOG2::fVarMin
float cv::ocl::MOG2::fVarMax
float cv::ocl::MOG2::fCT
bool cv::ocl::MOG2::bShadowDetection
unsigned char cv::ocl::MOG2::nShadowDetection
float cv::ocl::MOG2::fTau

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