1 | initial version |
See undistort function, which rectify a source image according to the calibration matrix (focal X, Y, K1, K2) and write it in the output image.
If you need to calibrate your camera (to get focal lengths and K1, K2), use the calibrateCamera function.