Login  Register

Re: Multi-channel measurement

Posted by Rasband, Wayne (NIH/NIMH) [E] on Jul 08, 2014; 12:28pm
URL: http://imagej.273.s1.nabble.com/Multi-channel-measurement-tp5008618p5008625.html

On Jul 8, 2014, at 5:29 AM, Hanna Sas Nowosielska wrote:

> Dear Image J users,
>
> I have a very basic question concerning measuring intensity. I have  ImageJ
> 2.0.0-rc-8/1.49c and I would like to measure mean intensity in a roi in
> multi-channel images so that each channel would be displayed in different
> column in Results window. Could you please suggest me whether it is
> possible and if yes how can I execute it.

Here is a macro that does this:

  Stack.getDimensions(width, height, channels, slices, frames);
  row = nResults;
  for (c=1; c<= channels; c++) {
     Stack.setChannel(c);
     getStatistics(area, mean);
     setResult("C"+c+"-Mean", row, mean);
  }
  updateResults;

Instructions on how to run macros can be found at

    http://imagej.nih.gov/ij/developer/macro/macros.html

-wayne

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