Hi Tim,
it's easy, maybe it was considered too trivial for stating it: for 8-bit and 16-bit images you get an array with one entry for each possible value that a pixel can have, from 0 to 255 (8-bit image) or 0-65535 (16-bit image). Thus, the array size is 256 or 65536, and the bin width in uncalibrated units is 1.
The only nontrivial case are RGB images and floats. For RGB, the brightness is evaluated using the color weights (which would result in a float value) and rounded to an int. This gives 256 bins. FloatProcessor.getHistogram is not implemented (returns null).
How many pixels are in each bucket? That's the int values of the array.
Michael
________________________________________________________________
On Apr 4, 2013, at 03:43, Tim Bogatchev wrote:
> Hello,
>
> I was wondering what exactly the getHistogram function in ImageProcessor
> returns. In the documentation it states that its an abstract int array, but
> not much else. How can I tell what the buckets are, and how many pixels are
> in each bucket?
>
> Thank you!
>
> --
> Tim Bogatchev
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html