<p dir="ltr">Den 18 okt. 2016 5:18 em skrev "David Gobbi" <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>>:<br>
><br>
> Out of curiosity, do you want to increase the number of bins in<br>
> order to increase the precision?</p>
<p dir="ltr">Ah, no the opposite actually. I wanted to reduce the number of bins from the default of 65536 (for float) to something like 256 or 512, as I had no need for greater precision.</p>
<p dir="ltr">The reason I picked this class was because it seemed convenient that I could get both the histogram itself and also some rough stats at the same time.</p>
<p dir="ltr">Elvis</p>
<p dir="ltr">><br>
> When I wrote this class, my main intent was to compute statistics<br>
> on 8-bit and 16-bit images, and a histogram-based method is very<br>
> fast for integer images and also is also very robust. It's also very<br>
> robust for float images, in the sense that the error is small and<br>
> bounded.<br>
><br>
> However, if you want to compute statistics on float data, and to close<br>
> to the limits of float precision, then other methods might be better.<br>
><br>
> - David<br>
><br>
> On Tue, Oct 18, 2016 at 9:10 AM, Elvis Stansvik <<a href="mailto:elvis.stansvik@orexplore.com">elvis.stansvik@orexplore.com</a>> wrote:<br>
>><br>
>> 2016-10-18 16:53 GMT+02:00 David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>>:<br>
>> > On Tue, Oct 18, 2016 at 8:40 AM, Elvis Stansvik<br>
>> > <<a href="mailto:elvis.stansvik@orexplore.com">elvis.stansvik@orexplore.com</a>> wrote:<br>
>> >><br>
>> >> It seems that even if I call SetNumberOfBins(256), the default (65536)<br>
>> >> is always used (float input).<br>
>> >><br>
>> >> The docs says "By default, 65536 bins are used for float data, giving<br>
>> >> at least 16 bits of precision.", which I thought meant that I could<br>
>> >> change this default.<br>
>> >><br>
>> >> Is it possible?<br>
>> >><br>
>> >> Elvis<br>
><br>
></p>