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

Gaussian Mixture-based Backbround/Foreground Segmentation Algorithm. More...

#include <ocl.hpp>

Inherits cv::ocl::BackgroundSubtractor.

Public Member Functions

 MOG (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=0.f)
 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 noiseSigma
 

Detailed Description

Gaussian Mixture-based Backbround/Foreground Segmentation Algorithm.

The class implements the following algorithm: "An improved adaptive background mixture model for real-time tracking with shadow detection" P. KadewTraKuPong and R. Bowden, Proc. 2nd European Workshp on Advanced Video-Based Surveillance Systems, 2001." http://personal.ee.surrey.ac.uk/Personal/R.Bowden/publications/avbs01/avbs01.pdf

Constructor & Destructor Documentation

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

the default constructor

Member Function Documentation

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

re-initiaization method

void cv::ocl::MOG::operator() ( const oclMat frame,
oclMat fgmask,
float  learningRate = 0.f 
)
virtual

the update operator

Reimplemented from cv::ocl::BackgroundSubtractor.

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

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

Implements cv::ocl::BackgroundSubtractor.

void cv::ocl::MOG::release ( )

releases all inner buffers

Member Data Documentation

int cv::ocl::MOG::history
float cv::ocl::MOG::varThreshold
float cv::ocl::MOG::backgroundRatio
float cv::ocl::MOG::noiseSigma

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