Properly puts the edge occupancy back to 0 when starting tracking.
[mtp.git] / tracker.h
index 1811fb9..2ca731a 100644 (file)
--- a/tracker.h
+++ b/tracker.h
 #ifndef TRACKER_H
 #define TRACKER_H
 
+#include <iostream>
+
+using namespace std;
+
 #include "misc.h"
 #include "mtp_graph.h"
 
@@ -26,6 +30,7 @@ class Tracker {
   int _nb_locations, _nb_time_steps;
   scalar_t **_detection_score;
   int **_allowed_motion;
+  int *_entrances, *_exits;
 
   MTPGraph *_graph;
   int *_edge_occupation;
@@ -35,7 +40,11 @@ public:
   ~Tracker();
 
   void set_allowed_motion(int from_location, int to_location, int v);
+  void set_as_entrance(int location, int v);
+  void set_as_exit(int location, int v);
+
   void build_graph();
+  void print_dot_graph(ostream *os);
 
   void set_detection_score(int time, int location, scalar_t score);