Introduction

This blog is a user's perspective on the Micro Four Thirds camera system. Read more ...

Lens Buyer's Guide. Panasonic GH4 review.

My lens reviews: Olympus 9mm f/8 fisheye, Lumix G 12-32mm f/3.5-5.6, Leica 25mm f/1.4, Lumix X 12-35mm f/2.8, Lumix X 35-100mm f/2.8, Sigma 30mm f/2.8, Sigma 19mm f/2.8, Lumix X PZ 14-42mm f/3.5-5.6, Lumix X PZ 45-175mm f/4-5.6, Olympus M.Zuiko 45mm f/1.8, Panasonic Lumix G 100-300mm f/4-5.6, Panasonic Leica Lumix DG Macro-Elmarit 45mm f/2.8 1:1 Macro, Panasonic Lumix G 45-200mm f/4-5.6, Panasonic Lumix G 20mm f/1.7 pancake, Panasonic Lumix G 14mm f/2.5 pancake, Panasonic Lumix G HD 14-140mm f/4-5.8, Panasonic Lumix G HD 14-140mm f/3.5-5.6, Panasonic Lumix G 8mm f/3.5 fisheye, Lumix G 7-14mm f/4, Samyang 7.5mm f/3.5 fisheye, Tokina 300mm f/6.3 mirror reflex tele, Lensbaby 5.8mm f/3.5 circular fisheye lens
The blog contains affiliate links. As an Amazon Associate I earn from qualifying purchases.
Showing posts with label distortion. Show all posts
Showing posts with label distortion. Show all posts

Sunday, 6 March 2011

Geometric distortion correction

Many Micro Four Thirds lenses feature in-camera geometric distortion correction. Two examples are the Panasonic pancakes, Lumix G 14mm f/2.5 and Lumix G 20mm f/1.7. Both have pretty similar distortion correction needs. When converting the sensor output to the out of camera JPEG image, around 10% of the pixels in the border area are lost.

This is somewhat controversial. Some feel that a quality lens should not require further software correction. In fact, the lack of geometric distortion is a traditional sign of a high quality lens.

I think that this is mostly a non-issue. By allowing some aspects of the image to be adjusted in software, the lens designers can focus on issues which cannot be corrected in post processing. This has the potential of making the lenses better, at a smaller size, and potentially a smaller cost. Panasonic Micro Four Thirds lenses are adjusted for geometric distortion and some chromatic aberrations. The geometric distortion is also corrected in Olympus Micro Four Thirds cameras. At this time, though, Olympus does not correct chromatic aberrations.

To illustrate the geometric distortion done with various lenses, I have photographed a tiled wall with them, and shown the sensor output compared with the corrected JPEG output.

Here is an example pair from the Lumix G 20mm f/1.7 pancake lens:



uncorrected RAW output
JPEG image

Note that this is in no way a criticism of using RAW images. There are many RAW image converters which will do the distortion correction automatically and seamlessly, and you will never notice that there was any geometric adjustment done at all. I am using the RAW images to visualize the initial image captured by the sensor, as it is the only way to access it.

Here is a comparison of the uncorrected and corrected images for some lenses.  Since I am only interested in the geometric distortion, I have increased the contrast so that the images become monochrome.  I also superimposed the corrected out of camera images (black) onto the original uncorrected images (red).

I have also included the appropriate adjustment needed. The adjustment numbers in percent refers to the "Lens Distortion" filter in The Gimp.

Lumix G 20mm f/1.7: -11%



Lumix G 14mm f/2.5: -16%



Lumix G 14-42mm f/3.5-5.6 @ 14mm: -18%



Lumix G 14-42mm f/3.5-5.6 @ 30mm: 0%


Lumix G 14-140mm f/4-5.8 @ 14mm: -17%



Lumix G 14-140mm f/4-5.8 @ 30mm: -4%


Lumix G 45-200mm f/4-5.6 @ 45mm: +1%



Conclusion

Normal zoom lenses pretty consistently feature barrel distortion in the wide end. The tele zoom Lumix G 45-200mm appears to have some very small pincushion distortion, but very minor.

Some lenses that do not feature any geometric distortion correction are the Lumix 8mm f/3.5 fisheye and Panasonic Leica Lumix DG Macro-Elmarit 45mm f/2.8 1:1 Macro lens.

Thursday, 18 November 2010

Lumix 14mm distortion correction

Just like most other Micro Four Thirds lenses, the Panasonic Lumix G 14mm f/2.5 pancake lens is corrected for barrel distortion in camera. This is applied when looking through the viewfinder, when producing JPEG images or videos, and when using some RAW converter programs. So many users are probably not aware of this at all.

It is easy to see the effect of the distortion correction when opening the RAW image file in a converter program that allows for not applying distortion correction. One such example is UFRaw.

Here is an example image. It was taken at f/2.5, ISO 400, 1/13 second exposure. Both the out of camera corrected JPEG, and the non-corrected RAW image are shown below:

Corrected JPEG
Uncorrected RAW

It is apparent that there is some barrel distortion in the RAW image. To correct this requires about -14.5 adjustment in the Lens Distortion filter within The Gimp image processing software. This is slightly more than for the Lumix 20mm lens, for which I found that -13.5 was an appropriate adjustment.

This picture shows what sensor area is lost during this conversion: The area outside the white frame is unused when applying the distortion correction.



This corresponds to around 12% of the sensor area, and hence you lose around one megapixel of resolution with the normal 12 megapixel sensor. This is nothing to worry about.

The upside is that if you need a wider field of view, you can use the whole sensor output from the RAW file. The normal diagonal field of view for this lens is 75°. Using the extra sensor area output to the RAW file gives you around 80° field of view. Of course, this will not be distortion corrected, but as long as you don't photograph any straight objects, this shouldn't be any problem. For nature and people, this might not be an issue.

Framing your picture will be difficult, though, since the viewfinder only shows the image after the distortion correction. And you might experience more vignetting in the extreme corners.

Insufficient distortion correction

To my surprise, I noted that the distortion correction is in fact not fully sufficient. After the in camera distortion correction, there is still some residual barrel distortion, especially at shorter focus distances. You can note this in the top left image: The pillar to the left is not entirely straight. Also, the ceiling is slightly distorted.

It could be that newer cameras do a better job of correcting the distortion.

Saturday, 11 September 2010

Lumix 20mm distortion correction

One of the key features that separates quality optics from the cheaper variants, especially for wide angle lenses, is the the handling of distortion. In this respect, the Panasonic Lumix 20mm f/1.7 pancake lens is special, since in fact it features quite a bit of barrel distortion. However, this distortion is corrected by software inside the camera, so the user will never notice the fact in the first place.

However, the RAW files can be opened with third party software, to reveal the true image as captured by the sensor. In this case, I used UFRaw to convert the image to JPEG. Below is the original JPEG out of camera (left) and the RAW image with distortion uncorrected (right). The images were rescaled and sharpened. Click for larger images.

Out of camera JPEGUncorrected, from the RAW file


For these images, I used the 3:2 aspect ratio feature of the Lumix GH1 camera.

As you can see, there is some distortion in the right image. To correct it in The Gimp image processing software, around -13.5 Lens Distortion adjustment is needed.

Due to the distortion correction, all of the sensor surface is not used in the final image. Hence, the image area from the border is lost, as the image is adjusted and rescaled back to 12 megapixels.

In the image below, the area outside the white box corresponds roughly to the pixels lost during the distortion correction:



This means that when using the Lumix 20mm lens, about 7% of the sensor area is lost. The 12 megapixel sensor becomes 11 megapixels using the automatic distortion correction. The end user may never notice, however, as the output image is converted back to 12 megapixels anyway.

The upside of this is that when photographing non-straight shapes, you can probably get away with using the uncorrected image. This means that you gain some details in the borders, and a wider effective angle. For example, if you are photographing nature, flowers, people, animals, etc.

Most Micro Four Thirds lenses employ software distortion correction. Kit lenses like the Panasonic Lumix G 45-200mm f/4-5.6 and the Panasonic Lumix G HD 14-140mm f/4-5.8 do. One notable exception is the Panasonic Leica Lumix DG Macro-Elmarit 45mm f/2.8 1:1 Macro, which has all the distortion correction done optically.