1 #ifndef TEMPORAL_VARIANCE_BG_MODULE_H 2 #define TEMPORAL_VARIANCE_BG_MODULE_H 5 #include "ModuleInterface.h" 6 #include "ThermalColor.h" 7 #include "ReliabilityBg.h" 10 #define TRUNCATE_VALUE 0.0000001 //valor utilizado para evitar problemas de aproximacion 19 bool setParameters(QDomNode& config);
28 bool updateParameters();
30 float confidenceOfForeground(
float diference,
float stdDeviation);
31 void showHistogram( cv::Mat histogram,
int numBins);
32 void percentilCut(cv::Mat &histogram,
float IQRFactor);
34 void tuneParameters();
36 bool firstTime, displayFirstModel;
37 int width, height, bgSizeWindow, fgSizeWindow;
38 float factorSigmoid, fgVarianceThreshold, detectionFactorThreshold, fgMaskThreshold,
39 value, bgVarMean, numBgPixels, detectionThreshold, minScale, maxScale;
40 float *ptr_bgMean, *ptr_bgMean2, *ptr_bgVar, *ptr_fgMean, *ptr_fgMean2, *ptr_fgVar;
41 uchar *ptr_dataVarMask, *ptr_fgVarMask, *ptr_fgMask, *ptr_currGrayImg, *ptr_reliability, *ptr_featureMap, *ptr_roi;
43 cv::Mat fgVarianceMask, fgMask, currGrayImg, imgARGB32, currImgC3, reliability, roi;
47 bool m_tuningActivated;
49 int minFgWin, maxFgWin, stepFgWin, minBgWin, maxBgWin, stepBgWin;
50 float minVarThres, maxVarThres, stepVarThres, minSigmoid, maxSigmoid, stepSigmoid, minDetection, maxDetection, stepDetection;
53 #endif // TEMPORAL_VARIANCE_BG_MODULE_H Definition: ModuleInterface.h:43
Definition: TemporalVarianceBGModule.h:12
An object of this class is instantiated at main code, and this object is used by every class to push ...
Definition: Datapool.h:39
Definition: ThermalColor.h:7