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.

Constructor & Destructor Documentation

§ MOG2_GPU()

cv::gpu::MOG2_GPU::MOG2_GPU ( int  nmixtures = -1)

the default constructor

Member Function Documentation

§ getBackgroundImage()

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

§ initialize()

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

re-initiaization method

§ operator()()

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

the update operator

§ release()

void cv::gpu::MOG2_GPU::release ( )

releases all inner buffers

Member Data Documentation

§ backgroundRatio

float cv::gpu::MOG2_GPU::backgroundRatio

§ bShadowDetection

bool cv::gpu::MOG2_GPU::bShadowDetection

§ fCT

float cv::gpu::MOG2_GPU::fCT

§ fTau

float cv::gpu::MOG2_GPU::fTau

§ fVarInit

float cv::gpu::MOG2_GPU::fVarInit

§ fVarMax

float cv::gpu::MOG2_GPU::fVarMax

§ fVarMin

float cv::gpu::MOG2_GPU::fVarMin

§ history

int cv::gpu::MOG2_GPU::history

§ nShadowDetection

unsigned char cv::gpu::MOG2_GPU::nShadowDetection

§ varThreshold

float cv::gpu::MOG2_GPU::varThreshold

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

§ varThresholdGen

float cv::gpu::MOG2_GPU::varThresholdGen

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