Histogram white spike bug

Boudewijn Rempt boud at valdyas.org
Wed Nov 24 10:04:56 CET 2010

On Monday 22 November 2010, William Steidtmann wrote:
> This patch limits the bounds of the Levels Adjust Filter histogram to 
> that of the image, rather than the paint device "exactBounds", because 
> exactBounds includes pixel data outside the bounds of the image which is 
> not relevant to the user.  This fixes the typically predominant spike on 
> the highest (whitest) bin of the histogram, which was counting white 
> pixels outside the image bounds.  This same fix can (and will hopefully) 
> be applied to other filters that use histograms, but this patch does not 
> include them.

Looks good to me, I actually don't have any comments. Anyone else?

Boudewijn Rempt | http://www.valdyas.org
Ceterum censeo lapsum particulorum probae delendum esse

More information about the kimageshop mailing list