From bb605279b6dfbd882b057e44c011a5fa48437532 Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Wed, 24 Feb 2016 15:44:32 +0100 Subject: [PATCH] clarify how to use fisheye::distortPoints --- modules/calib3d/include/opencv2/calib3d.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/calib3d/include/opencv2/calib3d.hpp b/modules/calib3d/include/opencv2/calib3d.hpp index c52356a75..e26e8c13f 100644 --- a/modules/calib3d/include/opencv2/calib3d.hpp +++ b/modules/calib3d/include/opencv2/calib3d.hpp @@ -1802,6 +1802,10 @@ namespace fisheye @param D Input vector of distortion coefficients \f$(k_1, k_2, k_3, k_4)\f$. @param alpha The skew coefficient. @param distorted Output array of image points, 1xN/Nx1 2-channel, or vector\ . + + Note that the function assumes the camera matrix of the undistorted points to be indentity. + This means if you want to transform back points undistorted with undistortPoints() you have to + multiply them with \f$P^{-1}\f$. */ CV_EXPORTS_W void distortPoints(InputArray undistorted, OutputArray distorted, InputArray K, InputArray D, double alpha = 0);