I’m writing in visual c++ using opencv library. I used calibrateCamera function with a checkboard pattern to extract intrinsic, extrinsic and distortion values. The problem is that I don’t know how to use the distCoeffs matrix (1×5) on my 2D points on the CCD. Can someone help me?
Thanks in advance!
I’m writing in visual c++ using opencv library. I used calibrateCamera function with a
Share
The relevant portion of the documentation is
Tangential distortion occurs because the image taking lenses are not perfectly parallel to the imaging plane. Correcting this is made via the formulas:
So we have five distortion parameters, which in OpenCV are organized in a 5 column one row matrix:
You can also use undistort, undistort points, or initUndistortRectifyMap combined with remap