Matthias,<br><br>Thanks a lots. this patch solve a task from my TODO list.<br><br>This patch is a good candidate to go to 0.11 development branch and, if it doesn't break i18n, in 0.10 (trunk) before finale release.<br>
<br>Marcel, Andi, can you check this patch for me and guide Matthias on the right way. I'm very busy here to prepare my evening <span class="status_body">classes presentation for next Wednesday. To test, just use these pictures :<br>
<br><a href="http://digikam3rdparty.free.fr/TEST_IMAGES/LENSFUN/">http://digikam3rdparty.free.fr/TEST_IMAGES/LENSFUN/</a><br><br>Thanks in advance.<br><br>Gilles Caulier<br></span><br><div class="gmail_quote">2009/3/8 Matthias Welwarsky <span dir="ltr"><<a href="mailto:matze@welwarsky.de">matze@welwarsky.de</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br>
<br>
the attached patch fixes CA correction in the lens auto-correction tool. The fix<br>
consists of two parts:<br>
1.) set Alpha component of corrected pixel to "fully opaque", otherwise<br>
corrected image is not visible (trivial)<br>
2.) Implement sub-pixel interpolation in class DImg, necessary for CA and CI<br>
correction with lensfun.<br>
There are two new pixel color accessor functions: getSubPixelColor() and<br>
getSubPixelColorFast(). The first one uses Lanczos interpolation to compute<br>
subpixel colors, the second one bilinear interpolation. Lanczos yields better<br>
results, but is a lot slower than bilinear. Before using getSubPixelColor(),<br>
prepareSubPixelAccess() needs to be called to precompute the Lanczos kernel.<br>
<br>
Lanczos implementation was adapted from ufraw, Bilinear was implemented<br>
according to Wikipedia description.<br>
<br>
I would be happy to hear comments on how to optimize the computation, it's<br>
probably not optimal yet.<br>
<br>
regards,<br>
<font color="#888888">        matthias<br>
</font><br>_______________________________________________<br>
Digikam-devel mailing list<br>
<a href="mailto:Digikam-devel@kde.org">Digikam-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/digikam-devel" target="_blank">https://mail.kde.org/mailman/listinfo/digikam-devel</a><br>
<br></blockquote></div><br>