projects
/
mtp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some refactoring to reuse the same graph for several trackings.
[mtp.git]
/
tracker.h
diff --git
a/tracker.h
b/tracker.h
index
4143cf5
..
d8cb811
100644
(file)
--- a/
tracker.h
+++ b/
tracker.h
@@
-24,15
+24,19
@@
class Tracker {
int _nb_locations, _nb_time_steps;
class Tracker {
int _nb_locations, _nb_time_steps;
- MTPGraph *_graph;
scalar_t **_detection_score;
int **_allowed_motion;
scalar_t **_detection_score;
int **_allowed_motion;
+ 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 build_graph();
+
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();