From f692304c29cf8aec7336eda661a25c3c31125fdb Mon Sep 17 00:00:00 2001 From: Vladyslav Humennyy Date: Tue, 4 Nov 2025 11:16:59 +0200 Subject: [PATCH] Remove mention of 'tangential lens distortion' from fisheye documentation. In `fisheye::initUndistortRectifyMap` states, that the function 'compensate radial and tangential lens distortion'. But in fact, fisheye camera model in OpenCV does not uses tangential distortion. It uses only radial distortions, with 4 distortion k_1, k_2, k_3, k_4, which all are radial. In the code of the function all of those koeficients indeed are used as radial lens distortion coefficients. Possible reason of that issue is similar documentation of pinhole camera, that as first four coefficients uses 2 radial and 2 tangential lens distortion coefficients - k_1, k_2, p_1, p_2. --- modules/calib3d/include/opencv2/calib3d.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/calib3d/include/opencv2/calib3d.hpp b/modules/calib3d/include/opencv2/calib3d.hpp index 8a0edb0c69..60b2c07c12 100644 --- a/modules/calib3d/include/opencv2/calib3d.hpp +++ b/modules/calib3d/include/opencv2/calib3d.hpp @@ -4096,7 +4096,7 @@ namespace fisheye may additionally scale and shift the result by using a different matrix. @param new_size the new size - The function transforms an image to compensate radial and tangential lens distortion. + The function transforms an image to compensate radial lens distortion. The function is simply a combination of #fisheye::initUndistortRectifyMap (with unity R ) and #remap (with bilinear interpolation). See the former function for details of the transformation being