Undistorts 2D points using fisheye model
undistorted = cv.fisheyeUndistortPoints(distorted, K, D);
[...] = cv.fisheyeUndistortPoints(..., 'OptionName',optionValue, ...);
Input
- distorted Object points. An Nx2, 1xNx2, or Nx1x2 array, where N is the
number of points in the view.
- K Camera matrix 3x3,
K = [fx 0 cx; 0 fy cy; 0 0 1]
.
- D Input vector of distortion coefficients
[k1,k2,k3,k4]
.
Output
- undistorted Output array of image points.
Options
- R Rectification transformation in the object space
(3x3 matrix or 1x3/3x1 vector).
- P New camera matrix (3x3) or new projection matrix (3x4).