Author Archives: Andrew

MFT: Formula, What Formula?

In a discussion with Phil Harvey of exiftool fame, it became apparent that the first problem I have to solve in respect of Micro Four Thirds lens correction is to understand the formula, or formulae, being used to apply the correction.

Most image processing software supports geometric correction via three parameters labelled a, b and c. These are the parameters in the following formula:

Ru = scale*(Rd + a*Rd^3 + b*Rd^5 + c*Rd^7)

In this Rd is the distance of a point in the image from the centre in the distorted image, and Ru is the distance it was in the undistorted image. The model is that distortion is radially symmetric, and has the effect that concentric circles of image points move either closer to or further from the centre than they should be. This translates into the more recognisable types of distortion when straight lines in the image cut across these imaginary concentric circles.

There’s a couple of useful pictures here.

There are several variants on this formula. Wikipedia has a much more complex looking version which appears completely different, as it allows for the effects of off-centre lens elements and different profiles in different directions, but if you ignore these effects then with a little bit of factoring it boils down to exactly the same equation. Bibble, for example, switches the labels a and c, and other versions factor “scale” into the individual parameters, but the basic formula is the same.

The problem is that if this is the formula used in MFT in-camera corrections, then the data isn’t the right shape. We should just see three or maybe four fractional values, and the rest should be zeros, or maybe constants for a given lens/camera combination. While in some cases you can select values from the MFT data which work, it’s inconsistent and there’s no explanation for all the other data.

We know that MFT cameras also correct in-camera for chromatic aberrations. Maybe this could explain the other data points? The trouble is that this doesn’t work either. CA correction formulae work in one of two ways. They either provide a pair of shifts for the different colour channels (requiring two further parameters in addition to the three or four for geometric correction), or you get three sets of geometric correction parameters, one for each colour channel, as per the following taken from a DNG file using one of Raphael Rigo’s tools:

r : 1.000168 -0.128185 0.052356 -0.005116 0.000000 0.000000
g : 0.999694 -0.127995 0.052335 -0.004995 0.000000 0.000000
b : 0.999967 -0.127973 0.052642 -0.005050 0.000000 0.000000

While this might explain the number of values, you’d expect to see three sets of very similar values in the MFT data, and that doesn’t happen.

There are other ways of doing geometric correction. There are other formulae, but they don’t seem to be in common use. There’s also a non-linear approach (see http://paulbourke.net/miscellaneous/lenscorrection/ again), but this would need either a series of small values with the same sign (for a cumulative curve), or a progressive sequence (for an explicit curve). Of course, there could be some sort of complex differential version, but that’s cheating!

I have to assume that the model is capable of interpretation, especially since for some lenses a simple mapping works pretty well. However, it’s clearly not as simple as we’d hoped.

Posted in Micro Four Thirds | 2 Comments

It’s Not Over…

You know how they say “it’s not over till the fat lady sings”? Well, if the fat lady starts singing along to her iPod in the gym it’s definitely over. I’ve never seen a gym empty that fast! 🙂 Continue reading

Wednesday, August 29, 2012 in Uncategorized

The Micro Four Thirds Lens Correction Project

Although most Micro Four Thirds (MFT) lenses are tiny,  the cameras produce great JPG files with apparently little or no geometric distortion. They do this by applying corrections in camera,  and the correction parameter data is also stored with the Continue reading

The VMWare Disk IO Problem – Fixed At Last

Regular readers will know that I’m a great fan of VMWare desktop virtualisation, but my enthusiasm has for a long time been muted by an odd problem. After shutting down or suspending a VM my laptop was thrashing its disks Continue reading

Wednesday, August 15, 2012 in VMWare

Re-Use Achieved with Elegance

I just realised I haven’t posted anything for a week or two, so I thought you might like to see one of my photos. We had a great trip last year to Maastricht, enjoying not only the wandering around a Continue reading

Thursday, August 9, 2012 in Travel

Jon Lord RIP

Since I was first old enough to take an interest in “real” (heavy/prog) rock music, my favourite band has been Deep Purple. I can honestly say I’ve studied their music (my relationship with it goes a long way past just Continue reading

Tuesday, July 17, 2012 in Thoughts on the World

A Case for Extreme HDR?

I’ve just been processing the shots from my steam train trip to Ludlow last year. Most are quite disappointing: the light was very poor, and you actually can’t get many pictures of a train if you’re travelling on it, and Continue reading

Wednesday, July 11, 2012 in Photography

Galaxy Note Battery Problem – Update

I’ve identified one cause of the problem afflicting my Galaxy Note and some other phones running Ice Cream Sandwich. I’ve been progressively synchronising all my various calendars with Google Calendar, which has worked fairly well, with one exception. Google Calendar Continue reading

Tuesday, July 10, 2012 in Galaxy Note

Finally, Something Smaller

First Impressions of the Panasonic GH2 Continue reading

Thursday, June 28, 2012 in Micro Four Thirds, Photography, Thoughts on the World

Galaxy Note Battery Problem

My new Note was suffering the dreaded “Ice Cream Sandwich Power Drain” problem, but it looks like I have found a solution. You have to install the app “Cpu Spy” and confirm whether it’s going into “deep sleep” or not. Continue reading

Friday, June 22, 2012 in Galaxy Note

Album Update

For those dedicated (or deluded?) souls who follow my photography, I’ve just posted a number of updates to my online album, particularly in the Action, Europe and Barbados sections. Take a look if you have a moment, and let me Continue reading

Tuesday, June 19, 2012 in Photography

Did I Speak Too Soon?

After pride comes the fall. My upbeat post yesterday about the Galaxy Note was slightly premature, as I suddenly ran slap bang into a problem with calendar synchronisation. It turns out my phone was upgraded on Thursday to Android 4.0 Continue reading

Saturday, June 16, 2012 in Galaxy Note, Thoughts on the World