X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=tracker.h;h=1811fb9f424f111e51092afbf97da2d0d8e629d6;hb=8946d0df4263aa20a670cedd5d61f9709b858fca;hp=4143cf590c70ac0a25235f4de85e0b9a649a242b;hpb=455e5736828233445ac8aea8f15b3bde7e16e9bf;p=mtp.git diff --git a/tracker.h b/tracker.h index 4143cf5..1811fb9 100644 --- a/tracker.h +++ b/tracker.h @@ -24,23 +24,26 @@ 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