comparison 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
comparison
equal deleted inserted replaced
178:d7df8ecf5ccd 179:4f10e97cb677
29 if (!success) 29 if (!success)
30 cout << "problem loading positions" << endl; 30 cout << "problem loading positions" << endl;
31 success = trajectoryDB.read(velocities, id, velocitiesTableName); 31 success = trajectoryDB.read(velocities, id, velocitiesTableName);
32 if (!success) 32 if (!success)
33 cout << "problem loading velocities" << endl; 33 cout << "problem loading velocities" << endl;
34 // take advantage to request first and last instant from database
35 trajectoryDB.timeInterval(firstInstant, lastInstant, id);
34 } 36 }
35 37
36 bool FeatureTrajectory::isDisplacementSmall(const unsigned int& nDisplacements, const float& minTotalFeatureDisplacement) const { 38 bool FeatureTrajectory::isDisplacementSmall(const unsigned int& nDisplacements, const float& minTotalFeatureDisplacement) const {
37 bool result = false; 39 bool result = false;
38 unsigned int nPositions = positions->size(); 40 unsigned int nPositions = positions->size();
115 displacementDistances.push_back(dist); 117 displacementDistances.push_back(dist);
116 } 118 }
117 } 119 }
118 120
119 /******************** FeatureGraph ********************/ 121 /******************** FeatureGraph ********************/
122