[ImageJ-devel] IJ2 work/Histogram

Albert Cardona sapristi at gmail.com
Tue Sep 18 04:34:42 CDT 2012

2012/8/10 Aivar Grislis <grislis at wisc.edu>:

> 3) Discussion of  net.imglib2.script.analysis.Histogram:
> Both of these ImgLib2 histogram methods combine a single pass through the
> image with generating histogram statistics.
> This code exhibits bug (i).
> I'm not sure that this handles integral values as well as floating point.
> The mapping of values to histogram bins counts values that are less than the
> min in the first bin and values that are greater than the max in the last
> bin.  Is this really desirable behavior?  In my usage of histograms I
> specifically don't want to count under- and over-range values.  Similarly
> when using a LUT I like under- and over-range values to appear black.  Of
> course if we need it work both ways we can provide a switch.
> The output of this code is actually a JFreeChart image, there's no way to
> get the raw histogram count array.

There is: the class itself is a Map of bin index vs bin counts.



More information about the ImageJ-devel mailing list