projects
/
mtp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Properly puts the edge occupancy back to 0 when starting tracking.
[mtp.git]
/
tracker.h
diff --git
a/tracker.h
b/tracker.h
index
1811fb9
..
2ca731a
100644
(file)
--- a/
tracker.h
+++ b/
tracker.h
@@
-19,6
+19,10
@@
#ifndef TRACKER_H
#define TRACKER_H
#ifndef TRACKER_H
#define TRACKER_H
+#include <iostream>
+
+using namespace std;
+
#include "misc.h"
#include "mtp_graph.h"
#include "misc.h"
#include "mtp_graph.h"
@@
-26,6
+30,7
@@
class Tracker {
int _nb_locations, _nb_time_steps;
scalar_t **_detection_score;
int **_allowed_motion;
int _nb_locations, _nb_time_steps;
scalar_t **_detection_score;
int **_allowed_motion;
+ int *_entrances, *_exits;
MTPGraph *_graph;
int *_edge_occupation;
MTPGraph *_graph;
int *_edge_occupation;
@@
-35,7
+40,11
@@
public:
~Tracker();
void set_allowed_motion(int from_location, int to_location, int v);
~Tracker();
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 build_graph();
+ void print_dot_graph(ostream *os);
void set_detection_score(int time, int location, scalar_t score);
void set_detection_score(int time, int location, scalar_t score);