Monkeying Around with Lens Calibration
I spent the best part of a day trying to create a lens profile for my trusty Canon PowerShot S90. In theory, it should be a rather straightforward thing to do. The Creating lens distortion models with Hugin’s lens calibrator article provides easy-to-follow instructions on how to create a lens distortion model.
I used a single RAW file to generate a simple model (see the screenshot above). I then added the following lens profile to the /usr/share/lensfun/compact-canon.xml file:
<model>Canon PowerShot S90</model>
<distortion model="ptlens" focal="6" a="0.01463" b="-0.07992" c="0.00461" />
So far, so good. digiKam seems to pick the added lens profile, but the Auto-Correction tool (Enhance → Lens → Auto-correction) produces a rather strange result:
I can’t figure out what I’m doing wrong, so if you have a suggestion, feel free to chime in.