Undistortpoints In Opencv (cv2) With Python Wrong Results
I try to rectify an image and some points, which are on this image. Rectifying the image works very well (this part of the code is not from me): (mapx, mapy) = cv2.initUndistortRec
Solution 1:
so I found my error: I have to use the old and the new camera matrix in cv2.undistortPoints like in cv2.initUndistortRectifyMap.
so to correct it I just used this code:
point_matrix_new = cv2.undistortPoints(point_matrix,camera_matrix,dist_coefs,P=newCameraMatrix)
Post a Comment for "Undistortpoints In Opencv (cv2) With Python Wrong Results"