X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=tracker.h;h=d8cb811c40a1d51e4aeb651896684e585f1b0be6;hb=ea33e3e5dddbe3796d2361910e1e3ed98a19865c;hp=4143cf590c70ac0a25235f4de85e0b9a649a242b;hpb=455e5736828233445ac8aea8f15b3bde7e16e9bf;p=mtp.git diff --git a/tracker.h b/tracker.h index 4143cf5..d8cb811 100644 --- a/tracker.h +++ b/tracker.h @@ -24,15 +24,19 @@ 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();