#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 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);
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();