X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=mtp.git;a=blobdiff_plain;f=mtp_tracker.h;h=78df0fc4362ad47124393ee363e11940dd01f2ef;hp=1dcb94c949a0964259f37a53ac7b874f4443132a;hb=HEAD;hpb=c7d5cdf1982dacc5451f79599041b2e95524d3f7 diff --git a/mtp_tracker.h b/mtp_tracker.h index 1dcb94c..78df0fc 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 ordered as follows: First the nb_locations * + // nb_time_steps edges inside the node pairs, which will have + // lengths equal to the opposite of the detection scores, then the + // edges between these node pairs, and finally the edges from source + // and to sink. scalar_t *_edge_lengths; int early_pair_node(int t, int l); @@ -47,9 +49,8 @@ public: // The spatial structure int nb_locations, nb_time_steps; - int **allowed_motion; - int *entrances, *exits; - int force_empty_first_frame, force_empty_last_frame; + int **allowed_motions; + int **entrances, **exits; // The detection scores at each location and time scalar_t **detection_scores;