VAT  3.0
Video Analysis Tool
TrackingEvaluationModule.h
1 #ifndef TRACKINGEVALUATIONMODULE_H
2 #define TRACKINGEVALUATIONMODULE_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 InputName;
58  std::map<unsigned long, std::set<unsigned long> > associations;
59  std::map<unsigned long, double> distances;
60  std::map<unsigned long, int> lost;
61  Groundtruth internal_gt;
62  int m_framesToWait;
63  int waitedFrames;
64  int internalFrameNumber;
65  bool m_setROI;
66  int m_dx;
67  int m_dy;
68  int m_w;
69  int m_h;
70  int m_wscale;
71  bool m_logFirstTime;
72 
73  std::map<QString, double> previousParameters;
74  std::map<QString, double> bestParameters;
75  double bestFScore;
76 };
77 
78 #endif
Definition: ModuleInterface.h:43
Definition: TrackingEvaluationModule.h:15
Definition: groundtruth.h:30
An object of this class is instantiated at main code, and this object is used by every class to push ...
Definition: Datapool.h:39