diff 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
line wrap: on
line diff
--- a/include/cvutils.hpp	Fri Jul 14 00:12:03 2017 -0400
+++ b/include/cvutils.hpp	Fri Jul 14 02:11:21 2017 -0400
@@ -14,6 +14,9 @@
  use perspectiveTransform for arrays of points. */
 cv::Point2f project(const cv::Point2f& p, const cv::Mat& homography);
 
+/** Projects a point with the camera matrix */
+cv::Point2f cameraProject(const cv::Point2f& p, const cv::Mat& cameraMatrix);
+
 /** 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);