Get data from "Summary" window

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

Get data from "Summary" window

Ray Bonds
Hello,

 

I am having a hard time figuring out how to get the summarized data
(Count, Average Area, Average Size, etc.) from the Summary window in the
macro language.  I see that there is a getResults() function for the
Results window, but I haven't seen anything in the macro language
documentation that shows how to get the summarized data.

 

 

 

 
Reply | Threaded
Open this post in threaded view
|

Re: Get data from "Summary" window

Wayne Rasband
> I am having a hard time figuring out how to get the summarized data
> (Count, Average Area, Average Size, etc.) from the Summary window  
> in the
> macro language.  I see that there is a getResults() function for the
> Results window, but I haven't seen anything in the macro language
> documentation that shows how to get the summarized data.

This macro gets the values from the first line of a "Summary" window:

   selectWindow("Summary");
   lines = split(getInfo(), "\n");
   headings = split(lines[0], "\t");
   values = split(lines[1], "\t");
   for (i=0; i<headings.length; i++)
      print(headings[i]+": "+values[i]);

-wayne