Before the rush

Before the rush
by evan-pak

Submit your Photo
Hall of Fame

Please participate in Meta
and help us grow.

Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have some questions regarding Barrel distortion and pincushion distortion. Since they are related I have put them in single post.

  1. I am aware that barrel distortion occurs more in wide-angle lenses, wherein straight lines near edges of the frame curve outwards. Is it pincushion distortion when lines curve inward, and in what conditions (what types of lenses, etc.) does pincushion distortion occur?

  2. I am aware that some new cameras (DSLRs, DSCs, SLDs) have in-camera corrections for these distortions, and also there are some tools to correct it in post processing (e.g., PTlens) but what is the exact procedure used in the correction process? Does the correction process work in Raw Bayer domain, or after some color conversion to YCbCr?

Any pointers (especially for question 2) would be useful, as I am trying to implement one post process for this type of correction.

share|improve this question
Just a nit-pick, fisheye lenses use a different projection which makes all lines curved unless they cross the center of the frame. People do not normally refer to that as barrel distortion, since it is intended. – Itai Apr 19 '11 at 1:17
@Itai: Thanks. I have it cleared now. – goldenmean Apr 19 '11 at 10:31
up vote 7 down vote accepted
  1. Your interpretation of distortion is correct. For an example of a lens that exhibits barrel distortion at the wide angle and pin cushion distortion at the telephoto end, have a look at the Canon 18-135mm
  2. Tools like PTLens and Hugin perform the corrections after the demosaicing of the Bayer data. I'm not sure why this would matter?

If you're interested in understanding how this correction is done, the equations are presented here.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.