44#ifndef OPENCV_BACKGROUND_SEGM_HPP 
   45#define OPENCV_BACKGROUND_SEGM_HPP 
   47#include "opencv2/core.hpp" 
  221    createBackgroundSubtractorMOG2(
int history=500, 
double varThreshold=16,
 
  222                                   bool detectShadows=true);
 
  311                                   bool detectShadows=
true);
 
This is a base class for all more or less complex algorithms in OpenCV.
Definition core.hpp:3197
 
K-nearest neighbours - based Background/Foreground Segmentation Algorithm.
Definition background_segm.hpp:230
 
virtual CV_WRAP int getShadowValue() const =0
Returns the shadow value.
 
virtual CV_WRAP void setShadowValue(int value)=0
Sets the shadow value.
 
virtual CV_WRAP int getNSamples() const =0
Returns the number of data samples in the background model.
 
virtual CV_WRAP double getShadowThreshold() const =0
Returns the shadow threshold.
 
virtual CV_WRAP void setNSamples(int _nN)=0
Sets the number of data samples in the background model.
 
virtual CV_WRAP bool getDetectShadows() const =0
Returns the shadow detection flag.
 
virtual CV_WRAP void setkNNSamples(int _nkNN)=0
Sets the k in the kNN. How many nearest neighbours need to match.
 
virtual CV_WRAP void setShadowThreshold(double threshold)=0
Sets the shadow threshold.
 
virtual CV_WRAP void setDist2Threshold(double _dist2Threshold)=0
Sets the threshold on the squared distance.
 
virtual CV_WRAP double getDist2Threshold() const =0
Returns the threshold on the squared distance between the pixel and the sample.
 
virtual CV_WRAP int getkNNSamples() const =0
Returns the number of neighbours, the k in the kNN.
 
virtual CV_WRAP int getHistory() const =0
Returns the number of last frames that affect the background model.
 
virtual CV_WRAP void setDetectShadows(bool detectShadows)=0
Enables or disables shadow detection.
 
virtual CV_WRAP void setHistory(int history)=0
Sets the number of last frames that affect the background model.
 
Gaussian Mixture-based Background/Foreground Segmentation Algorithm.
Definition background_segm.hpp:91
 
virtual CV_WRAP bool getDetectShadows() const =0
Returns the shadow detection flag.
 
virtual CV_WRAP void setVarMin(double varMin)=0
 
virtual CV_WRAP double getVarThresholdGen() const =0
Returns the variance threshold for the pixel-model match used for new mixture component generation.
 
virtual CV_WRAP void setVarThresholdGen(double varThresholdGen)=0
Sets the variance threshold for the pixel-model match used for new mixture component generation.
 
virtual CV_WRAP double getVarInit() const =0
Returns the initial variance of each gaussian component.
 
virtual CV_WRAP double getVarThreshold() const =0
Returns the variance threshold for the pixel-model match.
 
virtual CV_WRAP void apply(InputArray image, OutputArray fgmask, double learningRate=-1) CV_OVERRIDE=0
Computes a foreground mask.
 
virtual CV_WRAP double getVarMax() const =0
 
virtual CV_WRAP double getVarMin() const =0
 
virtual CV_WRAP double getBackgroundRatio() const =0
Returns the "background ratio" parameter of the algorithm.
 
virtual CV_WRAP double getShadowThreshold() const =0
Returns the shadow threshold.
 
virtual CV_WRAP void setHistory(int history)=0
Sets the number of last frames that affect the background model.
 
virtual CV_WRAP void setDetectShadows(bool detectShadows)=0
Enables or disables shadow detection.
 
virtual CV_WRAP void setVarInit(double varInit)=0
Sets the initial variance of each gaussian component.
 
virtual CV_WRAP void setVarMax(double varMax)=0
 
virtual CV_WRAP double getComplexityReductionThreshold() const =0
Returns the complexity reduction threshold.
 
virtual CV_WRAP int getShadowValue() const =0
Returns the shadow value.
 
virtual CV_WRAP void setNMixtures(int nmixtures)=0
Sets the number of gaussian components in the background model.
 
virtual CV_WRAP int getHistory() const =0
Returns the number of last frames that affect the background model.
 
virtual CV_WRAP void setBackgroundRatio(double ratio)=0
Sets the "background ratio" parameter of the algorithm.
 
virtual CV_WRAP void setVarThreshold(double varThreshold)=0
Sets the variance threshold for the pixel-model match.
 
virtual CV_WRAP int getNMixtures() const =0
Returns the number of gaussian components in the background model.
 
virtual CV_WRAP void setShadowValue(int value)=0
Sets the shadow value.
 
virtual CV_WRAP void setShadowThreshold(double threshold)=0
Sets the shadow threshold.
 
virtual CV_WRAP void setComplexityReductionThreshold(double ct)=0
Sets the complexity reduction threshold.
 
Base class for background/foreground segmentation. :
Definition background_segm.hpp:61
 
virtual CV_WRAP void getBackgroundImage(OutputArray backgroundImage) const =0
Computes a background image.
 
virtual CV_WRAP void apply(InputArray image, OutputArray fgmask, double learningRate=-1)=0
Computes a foreground mask.
 
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition mat.hpp:296
 
int CvScalar value
Definition core_c.h:720
 
#define CV_OVERRIDE
Definition cvdef.h:792
 
#define CV_EXPORTS_W
Definition cvdef.h:472
 
#define CV_WRAP
Definition cvdef.h:481
 
double threshold
Definition imgproc_c.h:712
 
CV_EXPORTS_W Ptr< BackgroundSubtractorKNN > createBackgroundSubtractorKNN(int history=500, double dist2Threshold=400.0, bool detectShadows=true)
Creates KNN Background Subtractor.
 
const IplImage * image
Definition videoio_c.h:131
 
"black box" representation of the file storage associated with a file on disk.
Definition calib3d.hpp:441
 
Definition cvstd_wrapper.hpp:74