cv.fisheyeUndistortImage - MATLAB File Help
cv.fisheyeUndistortImage

Transforms an image to compensate for fisheye lens distortion

undistorted = cv.fisheyeUndistortImage(distorted, K, D)
undistorted = cv.fisheyeUndistortImage(..., 'OptionName',optionValue, ...)

Input

Output

Options

The function transforms an image to compensate radial and tangential lens distortion.

The function is simply a combination of cv.fisheyeInitUndistortRectifyMap (with unity R) and cv.remap (with bilinear interpolation). See the former function for details of the transformation being performed.

See below the results of cv.fisheyeUndistortImage:

Pictures a) and b) almost the same. But if we consider points of image located far from the center of image, we can notice that on image a) these points are distorted.

image

See also