Category Archives: Technique

A Test: Correcting Lens Distortion in Post-Processing

Earlier this weekend I read a forum thread about the Canon EF 50mm f/1.4 lens, of which I have a copy. The thread lamented the barrel distortion of this lens (which I don’t really find to be that big of an issue) and continued with posts suggesting alternatives including software correction in the post-processing phase. One response to this proposal was that software correction would degrade the  image and would therefore be unacceptable.

That theory seemed sound and I have believed this to be true in the past, but I decided to test this idea for myself. Using an old photograph taken with this lens, I cropped a small section from one of the far corners – the worst part of the frame and, according to some, subject to a lot of softness and distortion on full-frame bodies like my Canon 5D. To make things a bit more challenging I used a photograph that included a bunch of dried california grasses – full of very fine details and high contrast.

I converted the original RAW file using ACR (Adobe Camera RAW) with no sharpening. In Photoshop I cropped to a section of reasonable size for web presentation, using that section from one of the corners of the image. Then I made a duplicate of the cropped section of the image.

In one of the two versions of the crop I used the LensfixCI plugin to correct for the slight barrel distortion of the EF 50mm f/1.4 lens. This $29 plugin* includes a database of many lenses, and also keeps a smaller databases of your lenses. It uses EXIF data to identify the lens (and focal length with zooms) used to take the photo and automatically applies optimum distortion corrections from its database. It takes me about 10 seconds to select the plugin and apply its changes.

* (I have left the reference to this plugin that I used when I did the test several years ago, even though I no longer use it. Today I simply use the built-in correction in Lightroom or ACR, where I apply lens- based corrections by default in virtually all cases.)

Next I used my normal sharpening methods on both images, inspecting the results and making adjustments as I applied them. In the end, as would typically be the case, I used slightly different sharpening settings for the two images – but that reflects the normal way of operating. Finally, I took the two images and placed them side by side in the single high quality jpg file that follows.

Barrel Distortion Correction
Barrel Distortion Correction

(NOTE: The version shown above on this page may have been downsized for formatting purposes, which limits the amount of detail that is visible. Click the image to view it at its original size, or follow this direct link to the original image.)

I have a darned hard time seeing any difference in sharpness, contrast, or color that might have been introduced by the correction process. If a difference is visible a) it is almost impossible to say which version is better, and b) the difference is almost certainly completely insignificant in an actual print. (Keep in mind that these are 100% crops of the worst part of the frame in the far corner – and that the area shown here would be a very tiny section of a full print that would be something like five feet/60″ wide.)

After doing this test, I’m not really concerned at all about any negative effects of using this method of correcting lens distortions, and today I simply allow ACR or Lightroom to automatically correct for such lens characteristics by default. And whatever the tiny negative effect on sharpness we might imagine to produce, it is far outweighed by the ability to straighten lines and so forth when necessary.

(Anyone care to guess which half contains the “corrected” version of the crop? Feel free to post a comment and an explanation of what you (think you) see… ;-)

(This 2007 post was slightly updated on 1/5/2013)


G Dan Mitchell is a California photographer and visual opportunist. His book, “California’s Fall Color: A Photographer’s Guide to Autumn in the Sierra” is available from Heyday Books and Amazon.

Blog | About | Flickr | FacebookEmail

Links to Articles, Sales and Licensing, my Sierra Nevada Fall Color book, Contact Information.


All media © Copyright G Dan Mitchell and others as indicated. Any use requires advance permission from G Dan Mitchell.

Panorama: Dawn, Thousand Island Lake, Mounts Ritter and Banner

It is now fairly common for DSLR photographers to produce very large images by combining (or “stitching”) multiple separate component exposures of a scene. With the right kind of subject (one that is fairly static) and careful technique this can be quite successful.

I’ve experimented in the past with stitched photographs. I’ve had some luck with hand aligning and masking individual photos, and I’ve played around with some third-party software designed for this task. I was pleased to find that a very competent stitching feature is now part of the newest CS3 version of Photoshop.

As an example of what you can do with this tool, I’ve uploaded a photograph I created earlier this summer. Shot at dawn at Thousand Island Lake in the Ansel Adams Wilderness Area, the photograph consists of five 12MP images. Click the thumbnail to see a larger version.

421

From Here to Infinity?

Greg writes:

I’ve enjoyed your photography that I’ve found on your three websites. I especially enjoyed your photos of the Sierras. While looking at your photo “RitterBannerEdizaFlowers2007_07_25.jpg” [see below] the question comes to mind, “How did he get everything from 12 inches to infinity in focus?”

310

Mounts Ritter and Banner, Ediza Lake. Sierra Nevada, California. © Copyright G Dan Mitchell.

(Greg also noted that current Canon EF lenses generally do not include a DOF scale.)

Thanks for writing, Greg.

The main technique in this photo is the use of a short focal length wide angle lens. It (along with similar photos in my gallery) was shot with the Canon EF 17-40mm f/4 L lens, which is an ultra-wide angle (UWA) lens on the full-frame Canon 5D. Such UWA lenses can produce an extraordinary depth of field – it may not be quite “12 inches to infinity,” but it is pretty close.

In addition, one can shoot at smaller apertures on a full frame DSLR compared to the crop sensor DSLRs. On a crop body you generally avoid apertures smaller than f/8 or so, especially if you are planning to make a large print. At smaller apertures, diffraction decreases the maximum sharpness of the image. You get greater depth of field, but the cost is that the sharpest portions of the image in the plane of focus actually become less sharp than at optimal apertures. With a larger sensor (or larger film), diffraction doesn’t become significant at f/8. I conducted some experiments with my L lenses and 5D and discovered that sharpness in the plane of focus is at least as good at f/11 as it is at f/8, and that focus plane sharpness at f/16 is virtually indistinguishable from f/8 and f/11.

So, by combining a very wide angle lens (I believe it was 17mm in this photo) with a very small aperture (f/16 most likely) and focusing just beyond the closest object in the frame, I can achieve very wide DOF.

There are a few other tricks that one can employ. Faced with scenes that have an extremely wide dynamic range, I often take two exposures with one set for the darker areas and the other for the bright areas. In a situation where the foreground is dark and the distant objects light, I can also slightly shift the focus between the two exposures. (I combine the two images in post-processing; this is more or less equivalent to using ND grad filters at the time of the exposure though it permits more flexibility at the expense of an extra exposure.)

– Dan

BTW, Greg also reminded me of an interesting SF Bay Area show that is about to close:

P.S. You had an earlier post about the Yosemite art exhibit at Stanford. I’d like to bring to your attention another Yosemite exhibit that is currently running through Aug 26 (ends soon!) at the Oakland Museum (http://www.museumca.org/). This is an enjoyable exhibition that covers the art of Yosemite from native american basketry, to mid-19th century painters, to photography; highly recommended!

A Reader Question About Sharpness and Detail

A reader sent a nice message today which included the following:

I am always amazed by the detail of your photographs, the sharpness (I sometimes wish you’d elaborate a bit more on your settings of the shot ).

Thanks for the nice comment about detail and sharpness. Let me give a little overview of some of what I do. (Of course, to really see this you would have to look at a print. :-)

  • Almost all of the photopraphs were made with either an 8 megapixel Canon 350D/XT or more recently with a 12 megapixel Canon 5D.
  • I use high end Canon lenses – 17-40mm f/4 L, 24-105mm f/4 IS L, 70-200mm f/4 L, 50mm f/1.4.
  • I tend to shoot at smaller apertures unless the depth of field requirements of the shot (or limited light and moving subjects) require larger apertures. For sharpness across the frame, I generally shoot at f/8 on the crop sensor 350D and at f/11 or f/16 of the full frame 5D.
  • In most cases I shoot from a tripod and use a remote release and mirror lockup.
  • I post-process photographs and appropriately “work” the images using methods comparable to those used by traditional film photographers (dodging, burning, contrast selections, etc.) and some that are available in Photoshop (localized levels, saturation, color balance, and others).
  • I apply two stages of sharpening to the full size images. First I apply “smart sharpening” to produce the greatest micro detail, while being careful to avoid unnatural sharpening artifacts. Then I apply some unsharp masking to provide “local contrast enhancement.”
  • After downsizing the images for posting here, I do one more subtle unsharp mask operation to slightly increase detail in the smaller .jpg versions posted on the web.

Whew!

And that’s only a general summary. Individual images require different processing and different techniques. For example, it would not have been appropriate to do a lot of sharpening in my recently-posted photograph of evening rain in Yosemite Valley. On the other hand, in order to produce the best image it is sometimes necessary to use even more extensive post-processing techniques, such as in recent photos of early morning on the floor of Yosemite Valley, where the scene had an extremely wide dynamic range.

I’m usually happy to explain more about a particular image if you are interested, so just ask! :-)
—–