[Digikam-devel] [Bug 218906] camera obscura/pinhole camera/vignetting effect

Gilles Caulier caulier.gilles at gmail.com
Mon Jan 11 18:28:01 GMT 2010


https://bugs.kde.org/show_bug.cgi?id=218906





--- Comment #2 from Gilles Caulier <caulier gilles gmail com>  2010-01-11 19:27:59 ---
Julien,

To implemente this feature, will be a 5 minutes coding.

Look here :

http://www.fourmilab.ch/netpbm/pnmctrfilt

This is the algorithm used in Antivignetting tool. Now read at "Filter Options"
section :

"The -density option controls the degree of intensity attenuation by the filter
at its point of maximum density. The default density is 2, which corresponds to
an optical filter with a 1 f-stop filter factor. Increase the density to
compensate for a greater degree of vignetting; reduce it for less. Setting the
density less than 1 results in an inverse centre filter which will increase
vignetting in the image."

This is want mean that if you set density less than 1, you add vignetting to
image.

In digiKam tool, this settings is clamped from 1.0 to 20.0. Just changing low
limit must be enough to implement this feature. Code is there :

http://lxr.kde.org/source/extragear/graphics/digikam/imageplugins/lenscorrection/vignetting/antivignettingtool.cpp#147

Simple no ?

Gilles Caulier

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list