VAT  3.0
Video Analysis Tool
segmentationEvaluationModule.h
1 #ifndef SEGMENTATIONEVALUATIONMODULE_H
2 #define SEGMENTATIONEVALUATIONMODULE_H
3 
4 #include <map>
5 #include <string>
6 #include <QImage>
7 #include "Datapool.h"
8 #include "ModuleInterface.h"
9 #include <QDir>
10 #include "src/json.h"
11 
12 #include "opencv2/opencv.hpp"
13 
14 
16 public:
19 
20  //Set module configuration parameters
21  bool setParameters(QDomNode& config);
22 
23  //Initialization after reading parameters
24  bool init();
25 
26  //Function executed at each frame
27  bool run();
28 
29  //update parameters at runtime.
30  bool updateParameters();
31 
32  void writeToLog();
33  void getCurrentResults(QImage *);
34 
35  private:
36  int TP;
37  int TN;
38  int FP;
39  int FN;
40  long N;
41  int NN;
42  long accTP;
43  long accTN;
44  long accFP;
45  long accFN;
46  double mTP;
47  double mTN;
48  double mFP;
49  double mFN;
50  double sdTP;
51  double sdTN;
52  double sdFP;
53  double sdFN;
54  double mean_blob;
55  bool first;
56  QString OutputName;
57  QString RoiFileName;
58  bool m_setROI;
59  int m_dx;
60  int m_dy;
61  int m_w;
62  int m_h;
63  int m_wscale;
64  bool m_logFirstTime;
65  bool firstTime;
66  cv::Mat RoiPixelLevel;
67 
68  std::map<QString, double> previousParameters;
69  std::map<QString, double> bestParameters;
70  double bestFScore;
71 };
72 
73 #endif
Definition: ModuleInterface.h:43
Definition: segmentationEvaluationModule.h:15
An object of this class is instantiated at main code, and this object is used by every class to push ...
Definition: Datapool.h:39