comparison 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
comparison
equal deleted inserted replaced
146:7150427c665e 147:0089fb29cd26
7 class CvCapture; 7 class CvCapture;
8 //template<typename T> class Point_<T>; 8 //template<typename T> class Point_<T>;
9 9
10 /// constant that indicates if the image should be flipped 10 /// constant that indicates if the image should be flipped
11 //static const int flipImage = CV_CVTIMG_FLIP; 11 //static const int flipImage = CV_CVTIMG_FLIP;
12
13 /** Projects a point with the homography matrix
14 use perspectiveTransform for arrays of points. */
15 cv::Point2f project(const cv::Point2f& p, const cv::Mat& homography);
12 16
13 /** Loads a cv mat from a text file where the numbers are saved line by line separated by separator */ 17 /** Loads a cv mat from a text file where the numbers are saved line by line separated by separator */
14 cv::Mat loadMat(const std::string& filename, const std::string& separator); 18 cv::Mat loadMat(const std::string& filename, const std::string& separator);
15 19
16 template<typename T> 20 template<typename T>