I have the following fish-eye lens distorted image:
I've been trying to use the undistortImage
function for the distortion:
image = foam.jpg
cameraParams = cameraParameters('RadialDistortion',[0 0 0]);
J = undistortImage(image,cameraParams);
The problem is that it doesn't recognize the cameraParameters
function
I am new to image processing, so I don't really know why this error Anyone has any idea how can I fix it or find an alternative solution?