Mercurial Hosting > traffic-intelligence
diff include/cvutils.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 | b32947b002da |
children | 5eeb3b9fb568 |
line wrap: on
line diff
--- a/include/cvutils.hpp Tue Aug 30 13:04:36 2011 -0400 +++ b/include/cvutils.hpp Tue Aug 30 13:38:31 2011 -0400 @@ -10,6 +10,10 @@ /// constant that indicates if the image should be flipped //static const int flipImage = CV_CVTIMG_FLIP; +/** Projects a point with the homography matrix + use perspectiveTransform for arrays of points. */ +cv::Point2f project(const cv::Point2f& p, const cv::Mat& homography); + /** Loads a cv mat from a text file where the numbers are saved line by line separated by separator */ cv::Mat loadMat(const std::string& filename, const std::string& separator);