diff 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
line wrap: on
line diff
--- a/include/Feature.hpp	Wed Aug 17 23:21:26 2011 -0400
+++ b/include/Feature.hpp	Thu Aug 18 01:03:38 2011 -0400
@@ -18,6 +18,11 @@
 
   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 int& nDisplacements, const float& minTotalFeatureDisplacement) const;
+
+  //void shorten(void);
+
   void addPoint(const int& frameNum, const cv::Point2f& p);
 
   void write(TrajectoryDBAccess<cv::Point2f>& trajectoryDB) const;
@@ -38,4 +43,7 @@
 
 typedef boost::shared_ptr<FeatureTrajectory> FeatureTrajectoryPtr;
 
+// class MovingObject {}
+// roadUserType, group of features
+
 #endif