Mercurial Hosting > traffic-intelligence
comparison include/Motion.hpp @ 481:b6ad86ee7033
implemented smoothing (requires latest trajectory management library version)
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Wed, 02 Apr 2014 01:45:53 -0400 |
parents | c389fae9689a |
children | 045d05cef9d0 |
comparison
equal
deleted
inserted
replaced
480:f43bc0b0ba74 | 481:b6ad86ee7033 |
---|---|
46 bool minMaxSimilarity(const FeatureTrajectory& ft, const int& firstInstant, const int& lastInstant, const float& connectionDistance, const float& segmentationDistance); | 46 bool minMaxSimilarity(const FeatureTrajectory& ft, const int& firstInstant, const int& lastInstant, const float& connectionDistance, const float& segmentationDistance); |
47 | 47 |
48 void addPoint(const unsigned int& frameNum, const cv::Point2f& p, const cv::Mat& homography); | 48 void addPoint(const unsigned int& frameNum, const cv::Point2f& p, const cv::Mat& homography); |
49 | 49 |
50 void shorten(void); | 50 void shorten(void); |
51 | |
52 void movingAverage(const unsigned int& nFramesSmoothing); | |
51 | 53 |
52 void write(TrajectoryDBAccess<cv::Point2f>& trajectoryDB, const std::string& positionsTableName, const std::string& velocitiesTableName) const; | 54 void write(TrajectoryDBAccess<cv::Point2f>& trajectoryDB, const std::string& positionsTableName, const std::string& velocitiesTableName) const; |
53 | 55 |
54 #ifdef USE_OPENCV | 56 #ifdef USE_OPENCV |
55 void draw(cv::Mat& img, const cv::Mat& homography, const cv::Scalar& color) const; | 57 void draw(cv::Mat& img, const cv::Mat& homography, const cv::Scalar& color) const; |