Home > other >  Opencv initundistortrectifymap () function, in the camera coordinate system down distortion is why
Opencv initundistortrectifymap () function, in the camera coordinate system down distortion is why

Time:10-05

recently watching ilf calibration and distortion correction of Opencv source code, and the distortion coefficients after using initundistortrectifymap () function and remap () function to carry on the distortion correction, but have a bit don't understand is, in initundistortrectifymap () function, is to transform the image coordinates (u, v) camera coordinate system, and then to the world coordinate system (X, Y, Z), and then switch to the camera coordinate system (X ', 'Y, 1), the camera coordinate system to distortion after distortion correction model are used to get the coordinates (X', Y ', 1), and then switch to the image coordinate system (u ', v '), what is this principle? The great spirit guide, if you can detailed explain the whole process, especially appreciated!!!!!

CodePudding user response:

The building Lord said things, I haven't seen,
However, I usually use undistort the function, correcting image,

CodePudding user response:

Said undistort in Opencv document () function is initundistortrectifymap () function and remap () function simple combination, I was watching the Opencv source code recently, about the distortion correction steps don't quite understand,

CodePudding user response:


This is about in opencv2.4.9 initundistortrectifymap () function description, I look at the good,,,

CodePudding user response:

reference 1st floor hust_bochu_xuchao response:
the original poster said, I haven't seen,
However, I usually use undistort the function, correcting image,


Undistort is I said the combination of the two functions, warrior who are interested in the talk about each other,

CodePudding user response:

Yizhaoyanbo
reference 4 floor response:
Quote: refer to 1st floor hust_bochu_xuchao response:

The building Lord said things, I haven't seen,
However, I usually use undistort the function, correcting image,


Undistort is I said the combination of the two functions, the warrior who are interested in each other to explore the,


This is my QQ number, 2625812497, however, is I use more,,, the principle of less understand of what

CodePudding user response:

Can reference point about the document of distortion, understand that a few coordinates the relations between the line, the distortion model is used in image coordinates, but is directly extracted from the image pixels to the left, so conversion, after the transformation can be used to extract the image coordinates of actual distortion model to represent the ideal of coordinates

CodePudding user response:

http://wiki.opencv.org.cn/index.php/Cv%E7%85%A7%E7%9B%B8%E6%9C%BA%E5%AE%9A%E6%A0%87%E5%92%8C%E4%B8%89%E7%BB%B4%E9%87%8D%E5%BB%BA#.E9.92.88.E5.AD.94.E7.9B.B8.E6.9C.BA.E6.A8.A1.E5.9E.8B.E5.92.8C.E5.8F.98.E5.BD.A2

CodePudding user response:

Recently watching ilf calibration and distortion correction of Opencv source code, and the distortion coefficients after using initundistortrectifymap () function and remap () function to carry on the distortion correction, but have a bit don't understand is, in initundistortrectifymap () function, is first to transform the image coordinates (u, v) camera coordinate system, and then to the world coordinate system (X, Y, Z), and then switch to the camera coordinate system (X ', 'Y, 1), the camera coordinate system to distortion after distortion correction model are used to get the coordinates (X', Y ', 1), and then switch to the image coordinate system (u ', v '), what is this principle? The great spirit guide, if you can detailed explain the whole process, is deeply grateful!

CodePudding user response:

http://blog.csdn.net/ssw_1990/article/details/53216767 feel this blog can also can consult

CodePudding user response:

[quote=really can be reference to the tenth floor, real dry

CodePudding user response:

The building Lord may think undistort () function is to carry on the distortion correction, but on the contrary, undistort is used to get the mapping remap lookup table map1, 2,
So is the function of undistort the images from the "corrected" transform to "distortion" image,

CodePudding user response:

reference 3 floor vivit those reply:

This is about in opencv2.4.9 initundistortrectifymap () function description, I look at the good,,,


From the formula, is to a certain point (pixel coordinates) on the frame, the conversion for the first frame of the point (pixel coordinates), is a joined inside and outside (R, t), distortion function of 2 d to 2 d transformation process

CodePudding user response:

The building Lord I would like to ask you now know, opencv to explain how it looks like the process of adding undistorted image distortion
Read the half a day is around the dizzy

CodePudding user response:

https://blog.csdn.net/humanking7/article/details/45037239 I understand this explanation

CodePudding user response:

This initUndistortRectifyMap function is actually looking for and before distortion distortion after coordinate mapping between , namely map1 and map2, the entire process is:
From distortion due to the former is relatively easy to push after the distortion of coordinates (I'm not rigorous understanding of the function value of the latter is similar to the former), so use undistort functions (calibration inside and distortion coefficient as input) image size can be obtained through the imgsize traversal element coordinates, obtained by the coordinate transformation relationship after the distortion, the coordinates of mapping relation, namely map1 and map2, then use remap (map1 and map2 and has gained the distortion after image as input), the use of mapping relation to distortion and element distortion after got the official position output (i.e., distortion official image), do not know to understand so if you have any questions? The formulas https://blog.csdn.net/humanking7/article/details/45037239 can refer to this blog

CodePudding user response:

, of course, due to the mapping coordinates according to involve the whole quantity, therefore, the distortion was derived after the coordinate values may be an , so the middle involve interpolation operation (in remap function),
  • Related