VAT  3.0
Video Analysis Tool
ReliabilityBg.h
1 #ifndef RELIABILITY_BG_H
2 #define RELIABILITY_BG_H
3 
4 #include <qglobal.h>
5 #include <opencv2/opencv.hpp>
6 #include "src/MathFunctions.h"
7 
9 {
10  public:
11  ReliabilityBg();
12 
13  static uchar normalizeScale(float value, uchar minScale, uchar maxScale);
14  static uchar normalizeScale(float value, float minScale, float maxScale);
15  static uchar normalizeScaleUsingRatio(float value, float threshold, float minRatio, float maxRatio);
16 
17  static uchar normalizeBothSideScale(float value, float threshold, uchar minScale, uchar maxScale);
18  static uchar normalizeBothSideScale(float value, float threshold, float minScale, float maxScale);
19  static uchar normalizeBothSideScaleUsingRatio(float value, float threshold, float minRatio, float maxRatio);
20 
21  static uchar truncateAtMinMaxAndScale(float difference, float minDiff, float maxDiff );
22  static void calcIntraVar(cv::Mat histogram, uchar threshold, uchar &leftMean, uchar &leftIntraVar,
23  uchar &rightMean, uchar &rightIntraVar );
24  static uchar negGaussian(float value, float threshold, double sigma);
25 };
26 
27 #endif // RELIABILITY_BG_H
Definition: ReliabilityBg.h:8