Mercurial > hg > nsaunier > traffic-intelligence
comparison include/Motion.hpp @ 804:17e54690af8a dev
work in progress, not fully functional yet
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Wed, 01 Jun 2016 17:57:49 -0400 |
| parents | 045d05cef9d0 |
| children |
comparison
equal
deleted
inserted
replaced
| 803:f7cf43b5ad3b | 804:17e54690af8a |
|---|---|
| 13 positions, velocities and other statistics to evaluate their quality | 13 positions, velocities and other statistics to evaluate their quality |
| 14 before saving. */ | 14 before saving. */ |
| 15 class FeatureTrajectory | 15 class FeatureTrajectory |
| 16 { | 16 { |
| 17 public: | 17 public: |
| 18 FeatureTrajectory(const unsigned int& frameNum, const cv::Point2f& p, const cv::Mat& homography); | 18 FeatureTrajectory(const unsigned int& frameNum, const cv::Point2f& p); |
| 19 | 19 |
| 20 FeatureTrajectory(TrajectoryPoint2fPtr& _positions, TrajectoryPoint2fPtr& _velocities); | 20 FeatureTrajectory(TrajectoryPoint2fPtr& _positions, TrajectoryPoint2fPtr& _velocities); |
| 21 | 21 |
| 22 /** loads from database | 22 /** loads from database |
| 23 can be made generic for different list and blob */ | 23 can be made generic for different list and blob */ |
| 41 bool isMotionSmooth(const int& accelerationBound, const int& deviationBound) const; | 41 bool isMotionSmooth(const int& accelerationBound, const int& deviationBound) const; |
| 42 | 42 |
| 43 /// computes the distance according to the Beymer et al. algorithm | 43 /// computes the distance according to the Beymer et al. algorithm |
| 44 bool minMaxSimilarity(const FeatureTrajectory& ft, const int& firstInstant, const int& lastInstant, const float& connectionDistance, const float& segmentationDistance); | 44 bool minMaxSimilarity(const FeatureTrajectory& ft, const int& firstInstant, const int& lastInstant, const float& connectionDistance, const float& segmentationDistance); |
| 45 | 45 |
| 46 void addPoint(const unsigned int& frameNum, const cv::Point2f& p, const cv::Mat& homography); | 46 void addPoint(const unsigned int& frameNum, const cv::Point2f& p); |
| 47 | 47 |
| 48 void shorten(void); | 48 void shorten(void); |
| 49 | 49 |
| 50 void movingAverage(const unsigned int& nFramesSmoothing); | 50 void movingAverage(const unsigned int& nFramesSmoothing); |
| 51 | 51 |
