Correcting Barrel and Pin-cushion Distortion |
Home |
![]() |
![]() |
![]() |
| Barrel Distortion | Original | Pin-cushion Distortion |
It is very easy to correct Barrel and Pin-cushion distortion in photographic images using Photoshop, CorelPhoto, or any other image manipulation package with a suitable "Displace" function, provided you have the right "Displacement Map". The same map can be used to correct both Barrel and Pin Cushion distortion, but it in either case it must have the same aspect ratio (image width to height ratio) as the image being corrected. Although it is possible to crop a displacement map to the required aspect ratio this must be done with great care as you must crop the image symmetrically about its exact center. In any case you get slightly better results if you use a map designed for the required ratio.
Accordingly this page offers two displacement maps, with 4:3 and 3:2 aspect ratios respectively.
Most consumer digital cameras produce an image with an aspect ratio of 4:3, while most professional and so-called "prosumer" digital SLR's as well as 35mm film SLR's produce an image with a 3:2 ratio. These two ratios will therefore suffice for the majority of digital cameras.
Note that although you can crop a displacement map you must NEVER use "stretching" to change the aspect ratio.
The procedure for correcting barrel distortion using Photoshop Elements is described here. The procedure using Photoshop or CorelPhoto is essentially the same.

the procedure for correcting Pin-cushion Distortion is exactly the same as the procedure for correcting Barrel distortion, except that you must use negative values for "Horizontal Scale" and "Vertical Scale". Alternatively, you can simply rotate the displacement map by 180° before use.
It depends. Technically barrel distortion is a third order radial distortion - each straight line is distorted towards the axis at the ends and away from it at the middle (vice versa for pin-cushion). With care you can effectively remove all the third order distortion, leaving only fifth order distortion visible (away at 3 points, towards at 2). The amount of residual distortion is very small if you started with a good lens, but don't expect to correct the image from a fish-eye!
It is possible to create filters to correct 5th and higher order distortions (all radial distortions have odd order), but this is rarely necessary in practice.
Copy (or drag) the displacement map below with the required aspect ratio to your hard disc. Both maps work well with normal images of any size – it is only necessary that the aspect ratio of the map you chose matches the aspect ratio of your image. Both maps have a horizontal resolution of 600 pixels: although it is easy to create displacement maps with higher resolution, there is no advantage in doing so when using normal 24 bit colour images, as the displacement values only change by at most 1 bit when moving from one pixel to the next.
![]() |
![]() |
| Aspect ratio 4:3 | Aspect ratio 3:2 |
| f600450.png | f600400.png |
Original 2006-03-18