X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=mtp_tracker.h;h=0a0c5d76840a94403e5fc1226a89e62c77255273;hb=fbdfcc88d59dac3ea8ee473f98dd95fc47655eb3;hp=01c831b60be0b73ba8ba2d2f228c62fe4a871747;hpb=2bee794949c48671540bc70690d0b77c9168f953;p=mtp.git diff --git a/mtp_tracker.h b/mtp_tracker.h index 01c831b..0a0c5d7 100644 --- a/mtp_tracker.h +++ b/mtp_tracker.h @@ -33,11 +33,13 @@ using namespace std; #include "mtp_graph.h" class MTPTracker { - scalar_t **_detection_score; - int **_allowed_motion; - int *_entrances, *_exits; - MTPGraph *_graph; + + // The edges will be order as follow: First the nb_locations * + // nb_time_steps inside the node pairs, which will have lengths + // equal to the opposite of the detection scores, then the ones + // between node pairs, and finally the ones from source and to + // sink. scalar_t *_edge_lengths; int early_pair_node(int t, int l); @@ -47,7 +49,7 @@ public: // The spatial structure int nb_locations, nb_time_steps; - int **allowed_motion; + int **allowed_motions; int **entrances, **exits; // The detection scores at each location and time