VAT  3.0
Video Analysis Tool
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ReliabilityMog2 Class Reference
Inheritance diagram for ReliabilityMog2:

Public Member Functions

 ReliabilityMog2 ()
 the default constructor
 
 ReliabilityMog2 (int _history, float _varThreshold, bool _bShadowDetection=true)
 the full constructor that takes the length of the history,
 
 ~ReliabilityMog2 ()
 the destructor
 
void apply (InputArray image, OutputArray fgmask, double learningRate=-1)
 the update operator
 
void apply (InputArray image, OutputArray fgmask, OutputArray featureMap, double learningRate=-1)
 
virtual void getBackgroundImage (OutputArray backgroundImage) const
 computes a background image which are the mean of all background gaussians
 
void initialize (Size _frameSize, int _frameType)
 re-initiaization method
 
virtual int getHistory () const
 
virtual void setHistory (int _nframes)
 
virtual int getNMixtures () const
 
virtual void setNMixtures (int nmix)
 
virtual double getBackgroundRatio () const
 
virtual void setBackgroundRatio (double _backgroundRatio)
 
virtual double getVarThreshold () const
 
virtual void setVarThreshold (double _varThreshold)
 
virtual double getVarThresholdGen () const
 
virtual void setVarThresholdGen (double _varThresholdGen)
 
virtual double getVarInit () const
 
virtual void setVarInit (double varInit)
 
virtual double getVarMin () const
 
virtual void setVarMin (double varMin)
 
virtual double getVarMax () const
 
virtual void setVarMax (double varMax)
 
virtual double getComplexityReductionThreshold () const
 
virtual void setComplexityReductionThreshold (double ct)
 
virtual bool getDetectShadows () const
 
virtual void setDetectShadows (bool detectshadows)
 
virtual int getShadowValue () const
 
virtual void setShadowValue (int value)
 
virtual double getShadowThreshold () const
 
virtual void setShadowThreshold (double value)
 
virtual void write (FileStorage &fs) const
 
virtual void read (const FileNode &fn)
 

Protected Member Functions

bool ocl_getBackgroundImage (OutputArray backgroundImage) const
 
bool ocl_apply (InputArray _image, OutputArray _fgmask, double learningRate=-1)
 
void create_ocl_apply_kernel ()
 

Protected Attributes

Size frameSize
 
int frameType
 
Mat bgmodel
 
Mat bgmodelUsedModes
 
bool opencl_ON
 
UMat u_weight
 
UMat u_variance
 
UMat u_mean
 
UMat u_bgmodelUsedModes
 
int nframes
 
int history
 
int nmixtures
 
double varThreshold
 
float backgroundRatio
 
float varThresholdGen
 
float fVarInit
 
float fVarMin
 
float fVarMax
 
float fCT
 
bool bShadowDetection
 
unsigned char nShadowDetection
 
float fTau
 
String name_
 

Member Data Documentation

double ReliabilityMog2::varThreshold
protected

here it is the maximum allowed number of mixture components. Actual number is determined dynamically per pixel


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