March 2018
Beginner to intermediate
306 pages
9h 54m
English
cv2.undistortPoints finds homogeneous coordinates for points in the image. This function removes lens distortion and unprojects the points so that they are in dimensionless coordinates. This function accepts the following arguments: an array of 2D points in the image, a 3x3 camera matrix, a set of distortion coefficients, an object to store the result, and rectification and projection matrices, which are used in the stereo vision and aren't relevant now. The last three arguments are optional. cv2.undistortPoints returns the set of undistorted and unprojected points.
The points returned by cv2.undistortPoints are ideal—their coordinates are dimensionless and aren't distorted by lenses. If we need to project them back, we need ...