[Digikam-devel] [Bug 148540] Improvements of adding noise tool

Gilles Caulier caulier.gilles at gmail.com
Thu Mar 25 12:58:49 GMT 2010


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





--- Comment #60 from Gilles Caulier <caulier gilles gmail com>  2010-03-25 13:54:47 ---
> the grain size creates mosaics

Ah. i thinking to have fixed this problem to adjust coefficient in these lines
:

n2 = randomizePoisson((d->settings.grainSize/2.0)*(range/1.414),
d->settings.grainSize, col.sixteenBit());

n2 = randomizeGauss((d->settings.grainSize/2.0)*(range/1.414),
col.sixteenBit());

... from FilmGrainFilter::adjustYCbCr() method. In fact
(d->settings.grainSize/2.0)*(range/1.414) must randomize right to prevent
mosaic. Perhaps it's not enough...

> the photographic distribution option creates a color change, it seems that
the randomization always adds a value.

Ah. i don't see that. But in some case Poisson noise generator give an infinite
loop (it's a recursive method). I need to fix it or to find another algorithm
(if you have one, let's me hear (:=)))

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