Lensfun lens calibration

Additional camera and lens data for Lensfun

If you use the lensfun library in one of your programs like digiKam, Gimp, Ufraw etc. to correct lenses' imperfections, you often don't have the newest or exotic lens correction data included with the lensfun database. This can be easily improved by editing your own calibration data.

  cd
  mkdir -p .local/share/lensfun
  touch .local/share/lensfun/my-lenses.xml

On Linux, create a file as described above per command line or simply use a file manager. Then edit the xml file and paste the correction data into it.

Below you'll find data on cameras and lenses I own, which I calibrated and that where missing from lensfun. Feel free to cut and paste it into your database.

Canon PowerShot S100

 
<lensdatabase>
    ...
    <mount>
        <name>canonS100</name>
        <compat>Generic</compat>
    </mount>
    
    <camera>
        <maker>Canon</maker>
        <model>Canon PowerShot S100</model>
        <model lang="en">Canon PowerShot S100</model>
        <mount>canonS100</mount>
        <cropfactor>4.65</cropfactor>
    </camera>

    <lens>
        <maker>Canon</maker>
        <model>Built-in 5.2-26.0mm (24-120mm)</model>
        <focal min="5.2" max="26.0" />
        <mount>canonS100</mount>
        <cropfactor>4.65</cropfactor>
        <calibration>
            <distortion model="poly3" focal="5.2"  k1="-0.00050" /> 
            <distortion model="poly3" focal="6.0"  k1="-0.00042"  />
            <distortion model="poly3" focal="7.5"  k1="-0.000360"  />
            <distortion model="poly3" focal="10.8" k1="-0.000400"  />
            <distortion model="poly3" focal="18.4" k1="-0.000110"  />
            <distortion model="poly3" focal="21.6" k1="-0.000013"  />
            <distortion model="poly3" focal="26.0" k1="-0.000005"  />
        </calibration>
    </lens>
    ...
</lensdatabase>
    

Canon EF-S 15-85mm Zoom Lens

 
<lensdatabase>
    ...
    <lens>
        <maker>Canon</maker>
        <model>Canon EF-S 15-85mm f/3.5-5.6 IS USM</model>
        <focal min="15.0" max="85.0" />
        <mount>Canon EF-S</mount>
        <cropfactor>1.6</cropfactor>
        <calibration>
            <distortion model="poly3" focal="15" k1="-0.00378" />
            <distortion model="poly3" focal="24" k1="0.001900" />
            <distortion model="poly3" focal="50" k1="0.002000"  />
            <distortion model="poly3" focal="85" k1="0.001500"  />
            <tca model="poly3" focal="15" br="-0.0000715" vr="1.0004000" bb="-0.0000300" vb="1.0000800" />
            <tca model="poly3" focal="19" br="-0.0000566" vr="1.0003061" bb="-0.0000076" vb="1.0000713" />
            <vignetting model="pa" focal="19" aperture="4.5" distance="100" k1="-0.19267" k2="0.09379" k3="-0.38938" />
        </calibration>
    </lens>
    ...
</lensdatabase>
    

Canon EOS 550D (Rebel T2i/Kiss X4)

 
<lensdatabase>
    ...
    <camera>
        <maker>Canon</maker>
        <model>Canon EOS 550D</model>
        <model lang="en">EOS 550D</model>
        <mount>Canon EF-S</mount>
        <cropfactor>1.6</cropfactor>
    </camera>

        <camera>
        <maker>Canon</maker>
        <model>Canon EOS Rebel T2i</model>
        <model lang="en">EOS Rebel T2i</model>
        <mount>Canon EF-S</mount>
        <cropfactor>1.6</cropfactor>
    </camera>

        <camera>
        <maker>Canon</maker>
        <model>Canon EOS Kiss X4</model>
        <model lang="en">EOS Kiss X4</model>
        <mount>Canon EF-S</mount>
        <cropfactor>1.6</cropfactor>
    </camera>
    ...
</lensdatabase>