Re: Multi-channel measurement

Posted by Hanna_SN on
URL: http://imagej.273.s1.nabble.com/Multi-channel-measurement-tp5008618p5008629.html

Dear Wayne,

Thank you very much for your kind help.

Best regards,
Hanna


2014-07-08 14:28 GMT+02:00 Rasband, Wayne (NIH/NIMH) [E] <
[hidden email]>:

> 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
>

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