[vtkusers] Can't control the number of bins used by vtkImageHistogramStatistics?

David Gobbi david.gobbi at gmail.com
Tue Oct 18 10:53:43 EDT 2016


Hi Elvis,

Call AutomaticBinningOff() and SetNumberOfBins(n).
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161018/b99e402f/attachment.html>


More information about the vtkusers mailing list