Mercurial Hosting > traffic-intelligence
diff include/Motion.hpp @ 186:6c48283a78ca
work on feature similarity, issue with getting point
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Tue, 29 Nov 2011 00:38:50 -0500 |
parents | 3a4eef37384f |
children | 1435965d8181 |
line wrap: on
line diff
--- a/include/Motion.hpp Fri Nov 25 18:44:59 2011 -0500 +++ b/include/Motion.hpp Tue Nov 29 00:38:50 2011 -0500 @@ -34,12 +34,18 @@ unsigned int getFirstInstant(void) {return firstInstant;} unsigned int getLastInstant(void) {return lastInstant;} + //TrajectoryPoint2fPtr& getPositions(void) { return positions;} + //TrajectoryPoint2fPtr& getVelocities(void) { return velocities;} + /// indicates whether the sum of the last nDisplacements displacements has been inferior to minFeatureDisplacement bool isDisplacementSmall(const unsigned int& nDisplacements, const float& minTotalFeatureDisplacement) const; /// indicates whether the last two displacements are smooth (limited acceleration and angle) bool isMotionSmooth(const int& accelerationBound, const int& deviationBound) const; + /// computes the distance according to the Beymer et al. algorithm + bool minMaxSimilarity(const FeatureTrajectory& ft, const int& firstInstant, const int& lastInstant, float connectionDistance, float segmentationDistance); + void addPoint(const int& frameNum, const cv::Point2f& p, const cv::Mat& homography); void shorten(void);