Public Member Functions | Public Attributes
cv::gpu::MOG2_GPU 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 <gpu.hpp>

List of all members.

Public Member Functions

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

Public Attributes

int history
float varThreshold
 here it is the maximum allowed number of mixture components. Actual number is determined dynamically per pixel
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::gpu::MOG2_GPU::MOG2_GPU ( int  nmixtures = -1)

the default constructor


Member Function Documentation

void cv::gpu::MOG2_GPU::initialize ( Size  frameSize,
int  frameType 
)

re-initiaization method

void cv::gpu::MOG2_GPU::operator() ( const GpuMat frame,
GpuMat fgmask,
float  learningRate = -1.0f,
Stream stream = Stream::Null() 
)

the update operator

void cv::gpu::MOG2_GPU::getBackgroundImage ( GpuMat backgroundImage,
Stream stream = Stream::Null() 
) const

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

releases all inner buffers


Member Data Documentation

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


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