Histogram White Spike bug in Brightness Contrast Filter dialog
Boudewijn Rempt
boud at valdyas.org
Wed Dec 1 11:03:14 CET 2010
On Tuesday 30 November 2010, William Steidtmann wrote:
> Attached is a patch that eliminates the KisHistogram::KisHistogram()
> constructor that does not pass a "bounds" parameter when using a paint
> device, and modifies all calls to the new KisHistogram constructor that
> does use "bounds". Most of these calls are (temporarily) passing
> exactBounds (and so this code does not change behaviour there), with the
> exception of the Brightness Contrast filter, which now passes image
> bounds, and thus fixes the White Spike bug in the Brightness Contrast
> filter dialog. This is very much the same as the Levels Filter
> histogram patch (see Commit #1200357).
>
> To recreate the (pre-patch) bug:
>
> 1) Create a 10x10 image, 8 bit sRGB.
> 2) Set the color to a dark gray 92,92,92.
> 3) Use a pixel brush to paint all (most) of the image this dark gray.
> 4) Use menu Filter->Adjust->Brightness/Contrast curve...
> 5) Note that the graph has little or no indication (count) in the second
> quadrant where this dark gray should be.
>
> After the patch, the second quadrant in step 5) will have an appropriate
> pixel count.
I'm giving the patch a try now. I note that you're not compiling the unittests, though... Since they are broken :-)
--
Boudewijn Rempt | http://www.valdyas.org
Ceterum censeo lapsum particulorum probae delendum esse
More information about the kimageshop
mailing list