Posted by
Krs5 on
Dec 13, 2013; 8:52am
URL: http://imagej.273.s1.nabble.com/summing-columns-in-ROI-manager-tp5005867p5005903.html
Dear Simon,
OK, the code below will sum the data in the first column and print it in a log file. If this is not the column you want to sum you just can change the number in 'a = values[1];' to the correct column number.
Sum = 0;
selectWindow("Results");
lines1 = split(getInfo(), "\n");
headings = split(lines1[0], "\t");
for (j=1; j<lines1.length; j++) {
values = split(lines1[j], "\t");
a = values[1];
sum = sum + a;
}
print (sum);
You can add additional information to the 'print (sum);' line, for example the title of the image analysed.
Hope this works
Best wishes
Kees
-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of Simon Locke
Sent: 13 December 2013 04:12
To:
[hidden email]
Subject: Re: summing columns in ROI manager
Dear Kees,
Thank you for your reply. I have done all of those but they are statistical results.
I am looking to add (sum) the numbers in a column. I only need the area column.
Do you have any thoughts?
Thank you
Regards
Simon
Dr Simon Locke
MBBS BMed Sci FACSP FFSEM (UK) FRACGP
Sport and Exercise Physician
Bendigo Orthopaedic and Sports Medicine Clinic
176 Barnard st, Bendigo, Victoria, 3550
P:613 5442 5288 F:613 5442 5399 W:sportmovementcentre.com
Centre for Sport+ Movement is now on Facebook
http://www.facebook.com-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of
Straatman, Kees (Dr.)
Sent: Wednesday, 11 December 2013 6:53 PM
To:
[hidden email]
Subject: Re: summing columns in ROI manager
Dear Simon,
In the Results table you can right-mouse click and select 'Summarize': this
will give you mean, SD, min and max for each column in the Results table.
Alternatively, in Analyze > Analyze Particles you can select Summarize,
what will give you a Summary table of the selected measurements under
Analyze > Set Measurements.
Best wishes
Kees
-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of Simon
Locke
Sent: 11 December 2013 03:22
To:
[hidden email]
Subject: summing columns in ROI manager
Hi,
Thanks very much to Kees, I can now measure the area of the blood vessels.
The 1st column in the ROI manager results after this very successful process
is the area of the blood vessels. Is it possible to some/had a that column
that is headed "area". It is possible to get primary order statistics but
not area.
Whether it is in pixels or a measurement system does not matter as I am
measuring change following an intervention.
I would like to be able to click and sum that column rather than export the
file into a spreadsheet.
This time, I am asking early.
Thank you very much for your help in anticipation
Regards
Simon
Dr Simon Locke
MBBS BMed Sci FACSP FFSEM (UK) FRACGP
Sport and Exercise Physician
Bendigo Orthopaedic and Sports Medicine Clinic
176 Barnard st, Bendigo, Victoria, 3550
P:613 5442 5288 F:613 5442 5399 W:sportmovementcentre.com
Centre for Sport+ Movement is now on Facebook
http://www.facebook.com
---
This email is free from viruses and malware because avast! Antivirus
protection is active.
http://www.avast.com--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html