Mercurial Hosting > traffic-intelligence
comparison include/cvutils.hpp @ 933:8ac7f61c6e4f
major rework of homography calibration, no in ideal points if correcting for distortion
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 14 Jul 2017 02:11:21 -0400 |
parents | b6ad86ee7033 |
children | 05ccd8ef150c |
comparison
equal
deleted
inserted
replaced
932:66f382852e61 | 933:8ac7f61c6e4f |
---|---|
11 //static const int flipImage = CV_CVTIMG_FLIP; | 11 //static const int flipImage = CV_CVTIMG_FLIP; |
12 | 12 |
13 /** Projects a point with the homography matrix | 13 /** Projects a point with the homography matrix |
14 use perspectiveTransform for arrays of points. */ | 14 use perspectiveTransform for arrays of points. */ |
15 cv::Point2f project(const cv::Point2f& p, const cv::Mat& homography); | 15 cv::Point2f project(const cv::Point2f& p, const cv::Mat& homography); |
16 | |
17 /** Projects a point with the camera matrix */ | |
18 cv::Point2f cameraProject(const cv::Point2f& p, const cv::Mat& cameraMatrix); | |
16 | 19 |
17 /** Loads a cv mat from a text file where the numbers are saved line by line separated by separator */ | 20 /** Loads a cv mat from a text file where the numbers are saved line by line separated by separator */ |
18 cv::Mat loadMat(const std::string& filename, const std::string& separator); | 21 cv::Mat loadMat(const std::string& filename, const std::string& separator); |
19 | 22 |
20 //template<typename T> | 23 //template<typename T> |