Login  Register

How to get the bin start values

Posted by Avital Steinberg on Jul 07, 2015; 12:38pm
URL: http://imagej.273.s1.nabble.com/How-to-get-the-bin-start-values-tp5013454.html

Hi,
When I select a ROI and choose analyze, histogram, I get a histogram for
the selection. I am doing this for a 16 bit image. Below the histogram, I
see the values Min and Max. (among other values)

In a macro, I can use:

roiManager("Select", 0);
getHistogram(0, counts, 256);

To select a ROI and get the histogram. How would I find the Min and Max
values that are listed below the histogram in a macro? How are these values
calculated?

In other words: how can I get the x-values for the histogram and not just
the counts?

Thanks,
Avital

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html