43 #ifndef __OPENCV_BACKGROUND_SEGM_HPP__
44 #define __OPENCV_BACKGROUND_SEGM_HPP__
64 double learningRate=0);
67 virtual
void getBackgroundImage(
OutputArray backgroundImage) const;
87 CV_WRAP BackgroundSubtractorMOG(
int history,
int nmixtures,
double backgroundRatio,
double noiseSigma=0);
89 virtual ~BackgroundSubtractorMOG();
94 virtual void initialize(
Size frameSize,
int frameType);
124 CV_WRAP BackgroundSubtractorMOG2(
int history,
float varThreshold,
bool bShadowDetection=
true);
126 virtual ~BackgroundSubtractorMOG2();
131 virtual void getBackgroundImage(
OutputArray backgroundImage)
const;
134 virtual void initialize(
Size frameSize,
int frameType);
int nframes
Definition: background_segm.hpp:102
unsigned char nShadowDetection
Definition: background_segm.hpp:185
float backgroundRatio
Definition: background_segm.hpp:157
double learningRate
Set between 0.0 and 1.0, determines how quickly features are "forgotten" from histograms.
Definition: background_segm.hpp:232
bool bShadowDetection
Definition: background_segm.hpp:184
int frameType
Definition: background_segm.hpp:100
double varThreshold
Definition: background_segm.hpp:148
const CvArr CvArr * fgmask
Definition: legacy.hpp:3418
The Base Class for Background/Foreground Segmentation.
Definition: background_segm.hpp:57
double varThreshold
Definition: background_segm.hpp:105
Mat bgmodelUsedModes
Definition: background_segm.hpp:142
int nmixtures
Definition: background_segm.hpp:104
float fVarInit
Definition: background_segm.hpp:170
Mat bgmodel
Definition: background_segm.hpp:101
The class implements the following algorithm: "Improved adaptive Gausian mixture model for background...
Definition: background_segm.hpp:118
double backgroundPrior
Prior probability that any given pixel is a background pixel. A sensitivity parameter.
Definition: background_segm.hpp:238
GLenum GLsizei GLenum GLenum const GLvoid * image
Definition: highgui_c.h:230
double backgroundRatio
Definition: background_segm.hpp:106
int quantizationLevels
Number of discrete levels in each channel to be used in histograms.
Definition: background_segm.hpp:236
The 2D size class.
Definition: core.hpp:81
int nmixtures
Definition: background_segm.hpp:145
int frameType
Definition: background_segm.hpp:140
float fVarMin
Definition: background_segm.hpp:171
CV_EXPORTS_W void min(InputArray src1, InputArray src2, OutputArray dst)
computes per-element minimum of two arrays (dst = min(src1, src2))
Size frameSize
Definition: background_segm.hpp:99
Gaussian Mixture-based Backbround/Foreground Segmentation Algorithm.
Definition: background_segm.hpp:81
int nframes
Definition: background_segm.hpp:143
float fVarMax
Definition: background_segm.hpp:172
Definition: background_segm.hpp:200
bool updateBackgroundModel
Perform background model update.
Definition: background_segm.hpp:244
Mat bgmodel
Definition: background_segm.hpp:141
Size frameSize
Definition: background_segm.hpp:139
int numInitializationFrames
Number of frames of video to use to initialize histograms.
Definition: background_segm.hpp:234
int history
Definition: background_segm.hpp:103
The n-dimensional matrix class.
Definition: core.hpp:1688
Definition: core.hpp:4465
float fCT
Definition: background_segm.hpp:178
int smoothingRadius
Smoothing radius, in pixels, for cleaning up FG image.
Definition: background_segm.hpp:242
int history
Definition: background_segm.hpp:144
Base class for high-level OpenCV algorithms.
Definition: core.hpp:4390
float fTau
Definition: background_segm.hpp:186
int maxFeatures
Total number of distinct colors to maintain in histogram.
Definition: background_segm.hpp:230
float varThresholdGen
Definition: background_segm.hpp:164
double decisionThreshold
Value above which pixel is determined to be FG.
Definition: background_segm.hpp:240
Proxy datatype for passing Mat's and vector<>'s as input parameters.
Definition: core.hpp:1400
double noiseSigma
Definition: background_segm.hpp:107
CV_EXPORTS_W void max(InputArray src1, InputArray src2, OutputArray dst)
computes per-element maximum of two arrays (dst = max(src1, src2))