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;