11
\$\begingroup\$

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.

\$\endgroup\$
1
  • 1
    \$\begingroup\$ 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. \$\endgroup\$
    – Itai
    Apr 19, 2011 at 1:17

1 Answer 1

7
\$\begingroup\$
  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.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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