Dear Wayne,
Thank you very much for your fast response to my Image J question. I
appreciate it a lot.
Sincerely,
Radha Pyati
-----
Radha Pyati, Ph.D.
Associate Professor of Chemistry
University of Colorado at Colorado Springs
Sabbatical July 05 - July 06 at University of Colorado at Boulder
Email:
[hidden email]
Phone: 303-492-7018
Department of Chemistry and Biochemistry
Campus Box 215
Boulder, CO 80309
----- Original Message -----
From: "Rasband Wayne" <
[hidden email]>
To: <
[hidden email]>
Sent: Wednesday, May 10, 2006 7:38 PM
Subject: Re: capturing summarize info
>> I'm learning ImageJ and its macro language and wondered how to
>> do the following: capture the threshold and count values from the
>> summarize results table, do this for several files, and perform
>> calculations on the group of count values. I'd like to do all this
>> within ImageJ if possible; I am able to save the summaries and
>> open them in Excel, but that adds a step. Thank you very much
>> for any ideas you have.
>
> The following macro reproduces the particle analyzer's "Summary of ..."
> table. The first two lines are all that is needed to get the threshold
> and count values.
>
> getThreshold(min, max);
> n = nResults;
> sum = 0;
> for (i=0; i<n; i++)
> sum += getResult("Area", i);
> average = sum/n;
> getPixelSize(unit, pw, ph);
> imageSize = getWidth*getHeight*pw*ph;
> fraction = sum/imageSize;
> print("Threshold:", min+"-"+max);
> print("Count:", n);
> print("TotalArea: "+sum+" "+unit+"^2");
> print("Average Size: "+average+" "+unit+"^2");
> print("Area Fraction: "+d2s(fraction*100,2)+"%");
>
> -wayne
>