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>
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 |
The class implements the following algorithm: "Improved adaptive Gausian mixture model for background subtraction" Z.Zivkovic International Conference Pattern Recognition, UK, August, 2004.
| cv::gpu::MOG2_GPU::MOG2_GPU | ( | int | nmixtures = -1 | ) |
the default constructor
| 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
here it is the maximum allowed number of mixture components. Actual number is determined dynamically per pixel
| float cv::gpu::MOG2_GPU::fCT |
| unsigned char cv::gpu::MOG2_GPU::nShadowDetection |
| float cv::gpu::MOG2_GPU::fTau |