OpenCV  2.4.13
Open Source Computer Vision
cv::gpu::MOG2_GPU Class Reference

#include <gpu.hpp>

Public Member Functions

 MOG2_GPU (int nmixtures=-1)
 the default constructor More...
 
void initialize (Size frameSize, int frameType)
 re-initiaization method More...
 
void operator() (const GpuMat &frame, GpuMat &fgmask, float learningRate=-1.0f, Stream &stream=Stream::Null())
 the update operator More...
 
void getBackgroundImage (GpuMat &backgroundImage, Stream &stream=Stream::Null()) 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::gpu::MOG2_GPU::MOG2_GPU ( int  nmixtures = -1)

the default constructor

Member Function Documentation

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

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::release ( )

releases all inner buffers

Member Data Documentation

float cv::gpu::MOG2_GPU::backgroundRatio
bool cv::gpu::MOG2_GPU::bShadowDetection
float cv::gpu::MOG2_GPU::fCT
float cv::gpu::MOG2_GPU::fTau
float cv::gpu::MOG2_GPU::fVarInit
float cv::gpu::MOG2_GPU::fVarMax
float cv::gpu::MOG2_GPU::fVarMin
int cv::gpu::MOG2_GPU::history
unsigned char cv::gpu::MOG2_GPU::nShadowDetection
float cv::gpu::MOG2_GPU::varThreshold

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

float cv::gpu::MOG2_GPU::varThresholdGen

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