#include <background_segm.hpp>
Public Member Functions | |
BackgroundSubtractorGMG () | |
virtual | ~BackgroundSubtractorGMG () |
virtual AlgorithmInfo * | info () const |
void | initialize (cv::Size frameSize, double min, double max) |
virtual void | operator() (InputArray image, OutputArray fgmask, double learningRate=-1.0) |
void | release () |
![]() | |
virtual | ~BackgroundSubtractor () |
the virtual destructor More... | |
virtual void | getBackgroundImage (OutputArray backgroundImage) const |
computes a background image More... | |
![]() | |
Algorithm () | |
virtual | ~Algorithm () |
string | name () const |
template<typename _Tp > | |
ParamType< _Tp >::member_type | get (const string &name) const |
template<typename _Tp > | |
ParamType< _Tp >::member_type | get (const char *name) const |
int | getInt (const string &name) const |
double | getDouble (const string &name) const |
bool | getBool (const string &name) const |
string | getString (const string &name) const |
Mat | getMat (const string &name) const |
vector< Mat > | getMatVector (const string &name) const |
Ptr< Algorithm > | getAlgorithm (const string &name) const |
void | set (const string &name, int value) |
void | set (const string &name, double value) |
void | set (const string &name, bool value) |
void | set (const string &name, const string &value) |
void | set (const string &name, const Mat &value) |
void | set (const string &name, const vector< Mat > &value) |
void | set (const string &name, const Ptr< Algorithm > &value) |
template<typename _Tp > | |
void | set (const string &name, const Ptr< _Tp > &value) |
void | setInt (const string &name, int value) |
void | setDouble (const string &name, double value) |
void | setBool (const string &name, bool value) |
void | setString (const string &name, const string &value) |
void | setMat (const string &name, const Mat &value) |
void | setMatVector (const string &name, const vector< Mat > &value) |
void | setAlgorithm (const string &name, const Ptr< Algorithm > &value) |
template<typename _Tp > | |
void | setAlgorithm (const string &name, const Ptr< _Tp > &value) |
void | set (const char *name, int value) |
void | set (const char *name, double value) |
void | set (const char *name, bool value) |
void | set (const char *name, const string &value) |
void | set (const char *name, const Mat &value) |
void | set (const char *name, const vector< Mat > &value) |
void | set (const char *name, const Ptr< Algorithm > &value) |
template<typename _Tp > | |
void | set (const char *name, const Ptr< _Tp > &value) |
void | setInt (const char *name, int value) |
void | setDouble (const char *name, double value) |
void | setBool (const char *name, bool value) |
void | setString (const char *name, const string &value) |
void | setMat (const char *name, const Mat &value) |
void | setMatVector (const char *name, const vector< Mat > &value) |
void | setAlgorithm (const char *name, const Ptr< Algorithm > &value) |
template<typename _Tp > | |
void | setAlgorithm (const char *name, const Ptr< _Tp > &value) |
string | paramHelp (const string &name) const |
int | paramType (const char *name) const |
int | paramType (const string &name) const |
void | getParams (CV_OUT vector< string > &names) const |
virtual void | write (FileStorage &fs) const |
virtual void | read (const FileNode &fn) |
Public Attributes | |
int | maxFeatures |
Total number of distinct colors to maintain in histogram. More... | |
double | learningRate |
Set between 0.0 and 1.0, determines how quickly features are "forgotten" from histograms. More... | |
int | numInitializationFrames |
Number of frames of video to use to initialize histograms. More... | |
int | quantizationLevels |
Number of discrete levels in each channel to be used in histograms. More... | |
double | backgroundPrior |
Prior probability that any given pixel is a background pixel. A sensitivity parameter. More... | |
double | decisionThreshold |
Value above which pixel is determined to be FG. More... | |
int | smoothingRadius |
Smoothing radius, in pixels, for cleaning up FG image. More... | |
bool | updateBackgroundModel |
Perform background model update. More... | |
Additional Inherited Members | |
![]() | |
typedef Algorithm *(* | Constructor) (void) |
typedef int(Algorithm::* | Getter) () const |
typedef void(Algorithm::* | Setter) (int) |
![]() | |
static void | getList (CV_OUT vector< string > &algorithms) |
static Ptr< Algorithm > | _create (const string &name) |
template<typename _Tp > | |
static Ptr< _Tp > | create (const string &name) |
Background Subtractor module. Takes a series of images and returns a sequence of mask (8UC1) images of the same size, where 255 indicates Foreground and 0 represents Background. This class implements an algorithm described in "Visual Tracking of Human Visitors under Variable-Lighting Conditions for a Responsive Audio Art Installation," A. Godbehere, A. Matsukawa, K. Goldberg, American Control Conference, Montreal, June 2012.
cv::BackgroundSubtractorGMG::BackgroundSubtractorGMG | ( | ) |
|
virtual |
|
virtual |
Reimplemented from cv::Algorithm.
Validate parameters and set up data structures for appropriate image size. Must call before running on data.
frameSize | input frame size |
min | minimum value taken on by pixels in image sequence. Usually 0 |
max | maximum value taken on by pixels in image sequence. e.g. 1.0 or 255 |
|
virtual |
Performs single-frame background subtraction and builds up a statistical background image model.
image | Input image |
fgmask | Output mask image representing foreground and background pixels |
learningRate | Determines how quickly features are "forgotten" from histograms |
Reimplemented from cv::BackgroundSubtractor.
void cv::BackgroundSubtractorGMG::release | ( | ) |
Releases all inner buffers.
double cv::BackgroundSubtractorGMG::backgroundPrior |
Prior probability that any given pixel is a background pixel. A sensitivity parameter.
double cv::BackgroundSubtractorGMG::decisionThreshold |
Value above which pixel is determined to be FG.
double cv::BackgroundSubtractorGMG::learningRate |
Set between 0.0 and 1.0, determines how quickly features are "forgotten" from histograms.
int cv::BackgroundSubtractorGMG::maxFeatures |
Total number of distinct colors to maintain in histogram.
int cv::BackgroundSubtractorGMG::numInitializationFrames |
Number of frames of video to use to initialize histograms.
int cv::BackgroundSubtractorGMG::quantizationLevels |
Number of discrete levels in each channel to be used in histograms.
int cv::BackgroundSubtractorGMG::smoothingRadius |
Smoothing radius, in pixels, for cleaning up FG image.
bool cv::BackgroundSubtractorGMG::updateBackgroundModel |
Perform background model update.