Added the fields force_empty_first_frame and force_empty_last_frame in MTPTracker.
[mtp.git] / mtp_example.cc
index 91e4d6b..92d4062 100644 (file)
@@ -49,9 +49,8 @@ int main(int argc, char **argv) {
 
   tracker->allocate(nb_time_steps, nb_locations);
 
-  // We define the spatial structures by stating what are the possible
-  // motions of targets, and what are the entrances and the
-  // exits.
+  // We define the spatial structure by stating what are the possible
+  // motions of targets, and what are the entrances and the exits.
 
   // Here our example is a 1D space with motions from any location to
   // any location less than motion_amplitude away, entrance at
@@ -65,6 +64,9 @@ int main(int argc, char **argv) {
     tracker->exits[nb_locations - 1] = 1;
   }
 
+  tracker->force_empty_first_frame = 0;
+  tracker->force_empty_last_frame = 0;
+
   // We construct the graph corresponding to this structure
 
   tracker->build_graph();
@@ -122,7 +124,7 @@ int main(int argc, char **argv) {
     tracker->write(&out_tracker);
   }
 
-  // Does the tracking per se
+  // Performs the tracking per se
 
   tracker->track();