Mercurial Hosting > traffic-intelligence
diff include/Motion.hpp @ 147:0089fb29cd26
added projection of points and reprojection for display
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Tue, 30 Aug 2011 13:38:31 -0400 |
parents | a3532db00c28 |
children | cde87a07eb58 |
line wrap: on
line diff
--- a/include/Motion.hpp Tue Aug 30 13:04:36 2011 -0400 +++ b/include/Motion.hpp Tue Aug 30 13:38:31 2011 -0400 @@ -12,7 +12,7 @@ before saving. */ class FeatureTrajectory { public: - FeatureTrajectory(const int& frameNum, const cv::Point2f& p); + FeatureTrajectory(const int& frameNum, const cv::Point2f& p, const cv::Mat& homography); unsigned int length(void) const { return positions.size();} @@ -24,14 +24,14 @@ /// indicates whether the last two displacements are smooth (limited acceleration and angle) bool motionSmooth(const int& accelerationBound, const int& deviationBound) const; - void addPoint(const int& frameNum, const cv::Point2f& p); + void addPoint(const int& frameNum, const cv::Point2f& p, const cv::Mat& homography); void shorten(void); void write(TrajectoryDBAccess<cv::Point2f>& trajectoryDB, const string& positionsTableName, const string& velocitiesTableName) const; #ifdef USE_OPENCV - void draw(cv::Mat& img, const cv::Scalar& color) const; + void draw(cv::Mat& img, const cv::Mat& homography, const cv::Scalar& color) const; #endif protected: