From d2ff8e371d586dd9053e3de8ea918c363589716e Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Wed, 22 Aug 2012 22:27:45 -0700 Subject: [PATCH] Update. --- mtp.cc | 37 +++++++++++++++---------------------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/mtp.cc b/mtp.cc index 4ba31d9..455ef5a 100644 --- a/mtp.cc +++ b/mtp.cc @@ -53,33 +53,26 @@ int main(int argc, char **argv) { tracker->build_graph(); - // We repeat several times the same tracking to check how stable it - // is + // We generate synthetic detection scores at location + // nb_locations/2, with 10% false detection (FP or FN) - for(int r = 0; r < 1; r++) { - cout << "* ROUND " << r << endl; - - // We generate synthetic detection scores at location - // nb_locations/2, with 10% false detection (FP or FN) - - for(int t = 0; t < nb_time_steps; t++) { - for(int l = 0; l < nb_locations; l++) { - tracker->set_detection_score(t, l, detection_score(-1, 0.95)); - } - tracker->set_detection_score(t, nb_locations/2, detection_score(1, 0.95)); + for(int t = 0; t < nb_time_steps; t++) { + for(int l = 0; l < nb_locations; l++) { + tracker->set_detection_score(t, l, detection_score(-1, 0.95)); } + tracker->set_detection_score(t, nb_locations/2, detection_score(1, 0.95)); + } - tracker->track(); + tracker->track(); - for(int t = 0; t < tracker->nb_trajectories(); t++) { - cout << "TRAJECTORY " - << t - << " [starting " << tracker->trajectory_entrance_time(t) << "]"; - for(int u = 0; u < tracker->trajectory_duration(t); u++) { - cout << " " << tracker->trajectory_location(t, u); - } - cout << endl; + for(int t = 0; t < tracker->nb_trajectories(); t++) { + cout << "TRAJECTORY " + << t + << " [starting " << tracker->trajectory_entrance_time(t) << "]"; + for(int u = 0; u < tracker->trajectory_duration(t); u++) { + cout << " " << tracker->trajectory_location(t, u); } + cout << endl; } delete tracker; -- 2.39.5