Hi anonymous,
you have a stack. Each image has 344*356 = 122464 pixels, so the value
"118589" is obviously for one image (one stack slice), and "102976919"
is for the full stack.
For a stack, 'Analyze->Histogram' asks whether to include all stack
slices or only the current one.
The HistogramLister macro lists the histogram for only the current
slice. If you want the histogram for the full stack you can use the
StackHistogramLister
https://imagej.nih.gov/ij/macros/StackHistogramLister.txtIf you are only interested in the value for the '0' bin, of course you
can simplify the macros by removing the loop over all 256 bins and just
use the value for bin 0, i.e., counts[0].
For more info on macro programming, see
https://imagej.nih.gov/ij/developer/index.html https://imagej.nih.gov/ij/developer/macro/functions.htmlMichael
________________________________________________________________
On 09/04/2017 18:46, zhenglili1114 wrote:
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html