Cosmetics.
[mtp.git] / tracker.h
index 4143cf5..1811fb9 100644 (file)
--- a/tracker.h
+++ b/tracker.h
 
 class Tracker {
   int _nb_locations, _nb_time_steps;
-  MTPGraph *_graph;
   scalar_t **_detection_score;
   int **_allowed_motion;
 
+  MTPGraph *_graph;
+  int *_edge_occupation;
+  scalar_t *_edge_lengths;
 public:
   Tracker(int nb_time_steps, int nb_locations);
   ~Tracker();
 
-  void set_allowed_motion(int from_location, int to_location);
+  void set_allowed_motion(int from_location, int to_location, int v);
+  void build_graph();
+
   void set_detection_score(int time, int location, scalar_t score);
 
   void track();
 
-  // int nb_trajectories();
-  // int trajectory_start_time(int k);
-  // int trajectory_end_time(int k);
-  // int trajectory_location(int k, int time);
+  int nb_trajectories();
+  int trajectory_duration(int k);
+  int trajectory_location(int k, int time);
 };
 
 #endif