macro to divide two summary results

Posted by dieter moehring on
URL: http://imagej.273.s1.nabble.com/macro-to-divide-two-summary-results-tp3700523.html

Hi,

I am looking for a macro that makes a calculation between two summaries.
I have allready created a macro that gives me two windows named, lets say "summary of A" and "summary of B".
"summary of A" is the summary of results from sample A.
"summary of B" is the summary of results from sample B.
Each summary window gives me Threshold, Count, Total Area, Average Size and Area Fraction.
What I need is a macro for the following calculation:
Total Area of sample B x 100 / Total Area of sample A
The calculated value should be shown in a new window, that is named, for example "Result of Bx100/A"

I hope my description is good enough and someone is able to help,

Thanks in advance,
Dieter