Tom,
This is slightly different methodology but the appracoh is the same.
Basically select the lengths from the results table, loop through the results and sum them up.
// Skeletonize overlapping areas to generate single pixel lines
selectImage(overlapMaskId);
run("Skeletonize");
// Measure overlapping area - Returns a list of perimeters (divide by 2 to get length from perimeter)
run("Set Measurements...", "perimeter redirect=None decimal=7");
run("Analyze Particles...", "size=10-Infinity circularity=0-1.00 show=Nothing display clear add");
var i = 0;
// loop though results
for (i=0; i<nResults; i++) {
bone_apposition_perimeter = getResult('Perim.', i) + bone_apposition_perimeter;
}
bone_apposition_length = bone_apposition_perimeter/2;
percent_bone_apposition = (bone_apposition_length/metal_perimeter)*100;
--- On Thu, 2/11/10, Tom Moore <
[hidden email]> wrote:
From: Tom Moore <
[hidden email]>
Subject: Add Total Length of Line Segments
To:
[hidden email]
Date: Thursday, February 11, 2010, 11:48 AM
I am trying to use ImageJ to measure total linear extension of linear of a branching corals. I have it setup and working but can not seem to figure out a way to get the results table to add up the total of the length measurements.
Can anyone provide me suggestions on a technique to sum the results in the results table.
Thank You
Tom
--------------------------------------------------------
Tom Moore
NOAA Restoration Center
263 13th Ave South
St. Petersburg, Florida 33701
727-551-5716 Office
727-647-6538 Cell