X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=tracker.h;fp=tracker.h;h=2ca731ad0199eab007397eee1a8215eb0e6a4761;hb=fda29b3422f4850d77e4b8f4916251509789d3ac;hp=1811fb9f424f111e51092afbf97da2d0d8e629d6;hpb=897732507b36b4fc2099f7c54536d278a93d4531;p=mtp.git diff --git a/tracker.h b/tracker.h index 1811fb9..2ca731a 100644 --- a/tracker.h +++ b/tracker.h @@ -19,6 +19,10 @@ #ifndef TRACKER_H #define TRACKER_H +#include + +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);