projects
/
mtp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cosmetics.
[mtp.git]
/
tracker.h
diff --git
a/tracker.h
b/tracker.h
index
4143cf5
..
88f4bf2
100644
(file)
--- a/
tracker.h
+++ b/
tracker.h
@@
-19,28
+19,41
@@
#ifndef TRACKER_H
#define TRACKER_H
#ifndef TRACKER_H
#define TRACKER_H
+#include <iostream>
+
+using namespace std;
+
#include "misc.h"
#include "mtp_graph.h"
class Tracker {
int _nb_locations, _nb_time_steps;
#include "misc.h"
#include "mtp_graph.h"
class Tracker {
int _nb_locations, _nb_time_steps;
- MTPGraph *_graph;
scalar_t **_detection_score;
int **_allowed_motion;
scalar_t **_detection_score;
int **_allowed_motion;
+ int *_entrances, *_exits;
+ MTPGraph *_graph;
+ int *_edge_occupation;
+ scalar_t *_edge_lengths;
public:
Tracker(int nb_time_steps, int nb_locations);
~Tracker();
public:
Tracker(int nb_time_steps, int nb_locations);
~Tracker();
- void set_allowed_motion(int from_location, int to_location);
+ void set_allowed_motion(int from_location, int to_location, int v);
+ void set_as_entrance(int location, int v);
+ void set_as_exit(int location, int v);
+
+ void build_graph();
+ void print_dot_graph(ostream *os);
+
void set_detection_score(int time, int location, scalar_t score);
void track();
void set_detection_score(int time, int location, scalar_t score);
void track();
-
//
int nb_trajectories();
-
// int trajectory_start
_time(int k);
-
// int trajectory_end_time
(int k);
-
//
int trajectory_location(int k, int time);
+ int nb_trajectories();
+
int trajectory_entrance
_time(int k);
+
int trajectory_duration
(int k);
+ int trajectory_location(int k, int time);
};
#endif
};
#endif