The median value in the histogram was not calculated correctly; here is a little patch to correct the error. diff -ru ../old.gimp-1.2.1/app/gimphistogram.c ./app/gimphistogram.c --- ../old.gimp-1.2.1/app/gimphistogram.c Mon Feb 5 20:29:36 2001 +++ ./app/gimphistogram.c Mon Feb 5 20:30:07 2001 @@ -473,7 +473,7 @@ for (i = start; i <= end; i++) { - sum += i * histogram->values[channel][i]; + sum += histogram->values[channel][i]; if (sum * 2 > count) return i; Roel Schroeven
- incorrect mask handling in histogram calculation Roel Schroeven
- Re: incorrect mask handling in histogram calculation Austin Donnelly
- Re: incorrect mask handling in histogram calculat... Roel Schroeven
- Logarithmic histogram Roel Schroeven
- Re: Logarithmic histogram Austin Donnelly
- Re: Logarithmic histogram Jay Cox
- Re: Logarithmic histogram Roel Schroeven
- Re: Logarithmic histogram Austin Donnelly
- Re: Logarithmic histogram Roel Schroeven
- Value in histogram Roel Schroeven
- Re: Value in histogram Nick Lamb
- Re: Value in histogram Sven Neumann