OpenCV  2.4.13.3
Open Source Computer Vision
cv::ocl::BackgroundSubtractor Class Referenceabstract

#include <ocl.hpp>

Inheritance diagram for cv::ocl::BackgroundSubtractor:
cv::ocl::MOG cv::ocl::MOG2

Public Member Functions

virtual ~BackgroundSubtractor ()
 the virtual destructor More...
 
virtual void operator() (const oclMat &image, oclMat &fgmask, float learningRate)
 the update operator that takes the next video frame and returns the current foreground mask as 8-bit binary image. More...
 
virtual void getBackgroundImage (oclMat &backgroundImage) const =0
 computes a background image More...
 

Detailed Description

Base class for MOG and MOG2!

Constructor & Destructor Documentation

§ ~BackgroundSubtractor()

virtual cv::ocl::BackgroundSubtractor::~BackgroundSubtractor ( )
virtual

the virtual destructor

Member Function Documentation

§ getBackgroundImage()

virtual void cv::ocl::BackgroundSubtractor::getBackgroundImage ( oclMat backgroundImage) const
pure virtual

computes a background image

Implemented in cv::ocl::MOG2, and cv::ocl::MOG.

§ operator()()

virtual void cv::ocl::BackgroundSubtractor::operator() ( const oclMat image,
oclMat fgmask,
float  learningRate 
)
virtual

the update operator that takes the next video frame and returns the current foreground mask as 8-bit binary image.

Reimplemented in cv::ocl::MOG2, and cv::ocl::MOG.


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