distortion example
Distortion is a systematic variation of magnification with position
where d is the fractional distortion.
Contents
Download MATLAB source src.zip
original image
rgb = imread('09.jpg');
imshow(rgb);
Warning: Image is too big to fit on screen; displaying at 67%

barrel distortion
out = distort(rgb,-0.15); imshow(out);
Warning: Image is too big to fit on screen; displaying at 67%

pincushion distortion
out = distort(rgb, 0.15); imshow(out);
Warning: Image is too big to fit on screen; displaying at 67%
