X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=mtp_tracker.h;h=6f733f0b7538224d88aefa2f5b52adf4f7181d57;hb=ea25591f0875e7fffdd398a661b6e52f2af81faf;hp=08de498fecbf56fca08dc8cc09e9f3a48e14ff85;hpb=f248d9481cd0338053cb38a18eb3898042c126d3;p=mtp.git diff --git a/mtp_tracker.h b/mtp_tracker.h index 08de498..6f733f0 100644 --- a/mtp_tracker.h +++ b/mtp_tracker.h @@ -33,12 +33,12 @@ using namespace std; #include "mtp_graph.h" class MTPTracker { - int _nb_locations, _nb_time_steps; - 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 "super node" internal ones, which will have length + // equal to the opposite of the detection score, then the + // intra-super nodes, then from source and to exits. scalar_t *_edge_lengths; int early_pair_node(int t, int l); @@ -47,10 +47,11 @@ class MTPTracker { public: // The spatial structure - int **allowed_motion; - int *entrances, *exits; + int nb_locations, nb_time_steps; + int **allowed_motions; + int **entrances, **exits; - // The detection scores at each node + // The detection scores at each location and time scalar_t **detection_scores; MTPTracker();