Re: macro to divide two summary results

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

Hi Josh,

I am using "Analyze particles" to get a ResultsTable and a SummaryTable.
My Macro is closing the ResultsTable, only SummaryTable remains.
As I have two different pictures that are calculated, I finally receive two SummaryTables.
"Summmary of A" (picture A), and "Summary  of B" (picture B).
I dont know how I can combine summary A and B in one table, and how to add additional column to calculate Bx100/A.
Can you please explain how to do that?
I would really appreciate that!

Thanks,
Dieter



Josh Doe-2 wrote
What are you using for these windows? ResultsTable? Text window? Why
not just combine summary A and B in the same table, adding an
additional column for the Bx100/A?
-Josh D

On 1/25/07, dieter moehring <dieter.moehring@delfortgroup.com> wrote:
> 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
> --
> View this message in context: http://www.nabble.com/macro-to-divide-two-summary-results-tf3107422.html#a8616617
> Sent from the ImageJ mailing list archive at Nabble.com.
>