Mercurial Hosting > traffic-intelligence
comparison include/Feature.hpp @ 135:32d2722d4028
added constraint on minimum displacement
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Thu, 18 Aug 2011 01:03:38 -0400 |
parents | a617d0808bbc |
children |
comparison
equal
deleted
inserted
replaced
134:a617d0808bbc | 135:32d2722d4028 |
---|---|
15 FeatureTrajectory(const int& frameNum, const cv::Point2f& p); | 15 FeatureTrajectory(const int& frameNum, const cv::Point2f& p); |
16 | 16 |
17 unsigned int length(void) const { return positions.size();} | 17 unsigned int length(void) const { return positions.size();} |
18 | 18 |
19 void setId(const unsigned int& id) { positions.setId(id);velocities.setId(id);} | 19 void setId(const unsigned int& id) { positions.setId(id);velocities.setId(id);} |
20 | |
21 /// indicates whether the sum of the last nDisplacements displacements have been superior to minFeatureDisplacement | |
22 bool largeDisplacement(const int& nDisplacements, const float& minTotalFeatureDisplacement) const; | |
23 | |
24 //void shorten(void); | |
20 | 25 |
21 void addPoint(const int& frameNum, const cv::Point2f& p); | 26 void addPoint(const int& frameNum, const cv::Point2f& p); |
22 | 27 |
23 void write(TrajectoryDBAccess<cv::Point2f>& trajectoryDB) const; | 28 void write(TrajectoryDBAccess<cv::Point2f>& trajectoryDB) const; |
24 | 29 |
36 | 41 |
37 }; | 42 }; |
38 | 43 |
39 typedef boost::shared_ptr<FeatureTrajectory> FeatureTrajectoryPtr; | 44 typedef boost::shared_ptr<FeatureTrajectory> FeatureTrajectoryPtr; |
40 | 45 |
46 // class MovingObject {} | |
47 // roadUserType, group of features | |
48 | |
41 #endif | 49 #endif |