[Image-SIG] PIL histogram bin 255 empty

2007-09-25 Thread Christopher Jones
With mode I images, the histogram method sometimes returns bin 255 empty, counting the getextrema maximum value in bin 254 instead. Is this a bug or is bin 255 treated in a special way, perhaps to count clipped pixels? Chris Jones ___ Image-SIG maillist

Re: [Image-SIG] PIL histogram bin 255 empty

2007-09-25 Thread Fredrik Lundh
Christopher Jones wrote: With mode I images, the histogram method sometimes returns bin 255 empty, counting the getextrema maximum value in bin 254 instead. Is this a bug or is bin 255 treated in a special way, perhaps to count clipped pixels? what is the getextrema() when this happens?