Multi-channel measurement

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Multi-channel measurement

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



Best regards,

Hanna



Hanna Sas-Nowosielska Ph.D.



Laboratory of Imaging Tissue Structure and Function

Nencki Institute of Experimental Biology

Polish Academy of Sciences

3 Pasteur Street

02-093 Warsaw

Poland

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Multi-channel measurement

Rasband, Wayne (NIH/NIMH) [E]
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
Reply | Threaded
Open this post in threaded view
|

Re: Multi-channel measurement

Hanna_SN
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