I use 5 elements distortion for my stereo camera and I find there is a little contort on the corner of the correction image(especially the left camera), while 4 elements distortion matrix is fine. 5 elements correction 4 elements correction Above tests are implemented on MATLAB, and I need to code on python with openCV.
The problem is that I consulted the openCV documentation, which mentioned the 4 elements distortion, but did not provide the corresponding flag. I doubt whether openCV can really generate a 4 elements distortion matrix?
OpenCV's
calibrateCamera()function has flags(CALIB_FIX_K1, ... ,CALIB_FIX_K6) to omit specific radial distortion coefficients from optimization parameter.This is described in OpenCV's reference manual as
Therefore, you will be able to exclude unnecessary radial distortion term with the flag (and giving 0 as initial value).