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]
/
mtp_example.cc
diff --git
a/mtp_example.cc
b/mtp_example.cc
index
cb3f44e
..
52bc400
100644
(file)
--- a/
mtp_example.cc
+++ b/
mtp_example.cc
@@
-111,10
+111,12
@@
int main(int argc, char **argv) {
tracker->detection_scores[t][lb] = sb;
}
tracker->detection_scores[t][lb] = sb;
}
- // Does the tracking per se
+ { // Write down the tracker setting
+ ofstream out_tracker("tracker.dat");
+ tracker->write(&out_tracker);
+ }
- ofstream out_tracker("tracker.dat");
- tracker->write(&out_tracker);
+ // Does the tracking per se
tracker->track();
tracker->track();
@@
-124,7
+126,9
@@
int main(int argc, char **argv) {
cout << "Trajectory "
<< t
<< " starting at " << tracker->trajectory_entrance_time(t)
cout << "Trajectory "
<< t
<< " starting at " << tracker->trajectory_entrance_time(t)
- << ", score " << tracker->trajectory_score(t) << ", through nodes ";
+ << ", duration " << tracker->trajectory_duration(t)
+ << ", score " << tracker->trajectory_score(t)
+ << ", through nodes ";
for(int u = 0; u < tracker->trajectory_duration(t); u++) {
cout << " " << tracker->trajectory_location(t, u);
}
for(int u = 0; u < tracker->trajectory_duration(t); u++) {
cout << " " << tracker->trajectory_location(t, u);
}