distortion example

Distortion is a systematic variation of magnification with position

$$m = 1 + d r^2$$

where d is the fractional distortion.

Contents

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%