- deallocate_array<scalar_t>(_detection_score);
- deallocate_array<int>(_allowed_motion);
- delete[] _exits;
- delete[] _entrances;
-}
-
-void Tracker::set_allowed_motion(int from_location, int to_location, int v) {
- ASSERT(from_location >= 0 && from_location < _nb_locations &&
- to_location >= 0 && to_location < _nb_locations);
- _allowed_motion[from_location][to_location] = v;
-}
-
-void Tracker::set_as_entrance(int location, int v) {
- ASSERT(location >= 0 && location < _nb_locations);
- _entrances[location] = v;
-}
-
-void Tracker::set_as_exit(int location, int v) {
- ASSERT(location >= 0 && location < _nb_locations);
- _exits[location] = v;
-}
-
-void Tracker::set_detection_score(int time, int location, scalar_t score) {
- ASSERT(time >= 0 && time < _nb_time_steps &&
- location >= 0 && location < _nb_locations);
- _detection_score[time][location] = score;