[Image-SIG] ImageStat median calculation off?

Douglas Bagnall douglas at paradise.net.nz
Thu Apr 26 23:32:32 CEST 2007


Bill Janssen wrote:

> 
> I keep getting different values for "s.median" than I get for "h.index(v)".
> 
> Shouldn't they be the same value?  Am I missing something?

Isn't it *mode* that you are calculating, not median?  The median would
be calculated by adding up the histogram values until you have counted
half the pixels, then returning the index of that point.


douglas



More information about the Image-SIG mailing list