X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=mtp.cc;h=979915b57b9b384207648847ac25f9cd8925b34c;hb=535b8ede7d6646ea17135da10c8a16416524f6e9;hp=e07a7386d163d2b12ddd677a454368f0ef924117;hpb=633971154a478e1a134f38f420655b93a9f2160d;p=mtp.git diff --git a/mtp.cc b/mtp.cc index e07a738..979915b 100644 --- a/mtp.cc +++ b/mtp.cc @@ -44,10 +44,10 @@ int main(int argc, char **argv) { for(int l = 0; l < nb_locations; l++) { for(int k = 0; k < nb_locations; k++) { - tracker->set_allowed_motion(l, k, abs(l - k) <= motion_amplitude); + tracker->allowed_motion[l][k] = abs(l - k) <= motion_amplitude; } - tracker->set_as_entrance(0, 1); - tracker->set_as_exit(nb_locations - 1, 1); + tracker->entrances[0] = 1; + tracker->exits[nb_locations - 1] = 1; } tracker->build_graph(); @@ -57,9 +57,9 @@ int main(int argc, char **argv) { 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->detection_score[t][l] = detection_score(-1, 0.95); } - tracker->set_detection_score(t, nb_locations/2, detection_score(1, 0.95)); + tracker->detection_score[t][nb_locations/2] = detection_score(1, 0.95); } tracker->track();