diff c/Motion.cpp @ 179:4f10e97cb677

added getting first and last instant for each feature
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Mon, 31 Oct 2011 19:17:42 -0400
parents ae2286b1a3fd
children 3a4eef37384f
line wrap: on
line diff
--- a/c/Motion.cpp	Mon Oct 31 00:35:34 2011 -0400
+++ b/c/Motion.cpp	Mon Oct 31 19:17:42 2011 -0400
@@ -31,6 +31,8 @@
   success = trajectoryDB.read(velocities, id, velocitiesTableName);
   if (!success)
     cout << "problem loading velocities" << endl;
+  // take advantage to request first and last instant from database
+  trajectoryDB.timeInterval(firstInstant, lastInstant, id);
 }
 
 bool FeatureTrajectory::isDisplacementSmall(const unsigned int& nDisplacements, const float& minTotalFeatureDisplacement) const {
@@ -117,3 +119,4 @@
 }
 
 /******************** FeatureGraph ********************/
+