Mercurial Hosting > traffic-intelligence
diff include/Motion.hpp @ 138:c1b260b48d2a
corrected initialization bugs and feature shortening before saving
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 19 Aug 2011 12:15:23 -0400 |
parents | 0f790de9437e |
children | 47329bd16cc0 |
line wrap: on
line diff
--- a/include/Motion.hpp Fri Aug 19 01:35:45 2011 -0400 +++ b/include/Motion.hpp Fri Aug 19 12:15:23 2011 -0400 @@ -18,13 +18,13 @@ void setId(const unsigned int& id) { positions.setId(id);velocities.setId(id);} - /// indicates whether the sum of the last nDisplacements displacements have been superior to minFeatureDisplacement - bool largeDisplacement(const unsigned int& nDisplacements, const float& minTotalFeatureDisplacement) const; - - //void shorten(void); + /// indicates whether the sum of the last nDisplacements displacements has been inferior to minFeatureDisplacement + bool smallDisplacement(const unsigned int& nDisplacements, const float& minTotalFeatureDisplacement) const; void addPoint(const int& frameNum, const cv::Point2f& p); + void shorten(void); + void write(TrajectoryDBAccess<cv::Point2f>& trajectoryDB) const; #ifdef USE_OPENCV