OpenCV  2.4.13.3
Open Source Computer Vision
cv::ocl::MOG2 Class Reference

#include <ocl.hpp>

Inheritance diagram for cv::ocl::MOG2:
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 Member Functions inherited from cv::ocl::BackgroundSubtractor
virtual ~BackgroundSubtractor ()
 the virtual destructor 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

§ MOG2()

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

the default constructor

Member Function Documentation

§ getBackgroundImage()

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.

§ initialize()

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

re-initiaization method

§ operator()()

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

the update operator

Reimplemented from cv::ocl::BackgroundSubtractor.

§ release()

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

releases all inner buffers

Member Data Documentation

§ backgroundRatio

float cv::ocl::MOG2::backgroundRatio

§ bShadowDetection

bool cv::ocl::MOG2::bShadowDetection

§ fCT

float cv::ocl::MOG2::fCT

§ fTau

float cv::ocl::MOG2::fTau

§ fVarInit

float cv::ocl::MOG2::fVarInit

§ fVarMax

float cv::ocl::MOG2::fVarMax

§ fVarMin

float cv::ocl::MOG2::fVarMin

§ history

int cv::ocl::MOG2::history

§ nShadowDetection

unsigned char cv::ocl::MOG2::nShadowDetection

§ varThreshold

float cv::ocl::MOG2::varThreshold

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

§ varThresholdGen

float cv::ocl::MOG2::varThresholdGen

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