VAT  3.0
Video Analysis Tool
planarstatistics.h
1 #ifndef PLANARSTATISTICS_H
2 #define PLANARSTATISTICS_H
3 
4 #include "Datapool.h"
5 #include <QFile>
6 
8 {
9 public:
10  PlanarStatistics(Datapool *i_data);
12  bool setParameters(QDomNode& config);
13  void setCurrentTime();
14  void init();
15  void run();
16 
17  bool first;
18 
19  Datapool *m_data;
20  QString m_ofile;
21  int m_osample;
22  QFile m_file;
23  double m_timeForStill;
24  double m_speedForStill;
25  double m_RateOfFramesInPerimeter;
26 
27  unsigned long frame_count;
28  double accumulated_time;
29 
30  TimeStamp lastTimeStamp;
31  int lastMilliSecondsDifference;
32  double secs_diff;
33 
34  std::deque<unsigned long> ids;
35 
36  //Metric 1: Time moving
37  double total_time_moving;
38  //Metric 2: Time still
39  double total_time_still;
40 
41  double current_time_still;
42  point2D<double> last_position;
43 
44  //Metric 4: Total distance
45  double total_distance;
46 
47  //Metric 5: Number of times stopping
48  int times_stopping;
49 
50  //Metric 6: Distance interval = Total_Distance / #Stops
51  double distance_interval;
52 
53  //Metrics 3, 7, 8 with Event Learning
54 
55  //Metric 9: % distance in perimeter
56  double distanceInPerimeter;
57  double distanceInPerimeterRate;
58 
59  //Metric 10: % time in perimeter
60  double timeInPerimeter;
61  double timeInPerimeterRate;
62 
63  QString m_OutZone;
64  bool outZonePresent;
65  QSharedPointer<world::ZoneH> ozone;
66 };
67 
68 #endif // PLANARSTATISTICS_H
Definition: planarstatistics.h:7
Definition: TimeStamp.h:4
An object of this class is instantiated at main code, and this object is used by every class to push ...
Definition: Datapool.h:39