Mercurial > hg > nsaunier > traffic-intelligence
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 185:c06379f25ab8 | 186:6c48283a78ca |
|---|---|
| 32 bool isLost(void) { return lost;} | 32 bool isLost(void) { return lost;} |
| 33 | 33 |
| 34 unsigned int getFirstInstant(void) {return firstInstant;} | 34 unsigned int getFirstInstant(void) {return firstInstant;} |
| 35 unsigned int getLastInstant(void) {return lastInstant;} | 35 unsigned int getLastInstant(void) {return lastInstant;} |
| 36 | 36 |
| 37 //TrajectoryPoint2fPtr& getPositions(void) { return positions;} | |
| 38 //TrajectoryPoint2fPtr& getVelocities(void) { return velocities;} | |
| 39 | |
| 37 /// indicates whether the sum of the last nDisplacements displacements has been inferior to minFeatureDisplacement | 40 /// indicates whether the sum of the last nDisplacements displacements has been inferior to minFeatureDisplacement |
| 38 bool isDisplacementSmall(const unsigned int& nDisplacements, const float& minTotalFeatureDisplacement) const; | 41 bool isDisplacementSmall(const unsigned int& nDisplacements, const float& minTotalFeatureDisplacement) const; |
| 39 | 42 |
| 40 /// indicates whether the last two displacements are smooth (limited acceleration and angle) | 43 /// indicates whether the last two displacements are smooth (limited acceleration and angle) |
| 41 bool isMotionSmooth(const int& accelerationBound, const int& deviationBound) const; | 44 bool isMotionSmooth(const int& accelerationBound, const int& deviationBound) const; |
| 45 | |
| 46 /// computes the distance according to the Beymer et al. algorithm | |
| 47 bool minMaxSimilarity(const FeatureTrajectory& ft, const int& firstInstant, const int& lastInstant, float connectionDistance, float segmentationDistance); | |
| 42 | 48 |
| 43 void addPoint(const int& frameNum, const cv::Point2f& p, const cv::Mat& homography); | 49 void addPoint(const int& frameNum, const cv::Point2f& p, const cv::Mat& homography); |
| 44 | 50 |
| 45 void shorten(void); | 51 void shorten(void); |
| 46 | 52 |
