#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 "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);
// 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;