[vtkusers] Can't control the number of bins used by vtkImageHistogramStatistics?
Elvis Stansvik
elvis.stansvik at orexplore.com
Tue Oct 18 11:10:40 EDT 2016
2016-10-18 16:53 GMT+02:00 David Gobbi <david.gobbi at gmail.com>:
> Hi Elvis,
>
> Call AutomaticBinningOff() and SetNumberOfBins(n).
Bah, sorry. Don't know why I didn't see the AutomaticBinning option. Thanks.
Elvis
> If you have negative values, also call SetBinOrigin(x)
> where 'x' is the minimum expected data value. Use
> SetBinSpacing() to adjust the bin width.
>
> - David
>
>
> On Tue, Oct 18, 2016 at 8:40 AM, Elvis Stansvik
> <elvis.stansvik at orexplore.com> wrote:
>>
>> It seems that even if I call SetNumberOfBins(256), the default (65536)
>> is always used (float input).
>>
>> The docs says "By default, 65536 bins are used for float data, giving
>> at least 16 bits of precision.", which I thought meant that I could
>> change this default.
>>
>> Is it possible?
>>
>> Elvis
More information about the vtkusers
mailing list