X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=tracker.h;h=2ca731ad0199eab007397eee1a8215eb0e6a4761;hb=598184c893e63ddd5b473aee104a9c2d1af07830;hp=1811fb9f424f111e51092afbf97da2d0d8e629d6;hpb=8946d0df4263aa20a670cedd5d61f9709b858fca;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);