Posted by
Christopher Coulon-2 on
Feb 07, 2011; 6:21pm
URL: http://imagej.273.s1.nabble.com/Calculate-percentage-of-a-line-in-relation-to-another-tp3685756p3685760.html
Jenny,
Can you segment the lines using the threshold (Image>Adjust>Threshold...)? If so, then you can get their lengths with the AnalyzeParticles routine and comp[are them anyway you like automatically. Send me a typical image if you need more help.
Chris Coulon
On Feb 7, 2011, at 8:51 AM, Jennifer Marshall wrote:
Hello there
I apologise if this has been asked before, as I'm new to ImageJ, but I did
have a quick look through the archive and couldn't see anything
immediately.
What I want to do is this -
(1) measure the length of two lines: a long one and a shorter one
(2) calculate the percentage of the shorter line in relation to the longer
one.
I want to do this hundreds of times, and each time, the lines will be of
different lengths.
I was thinking of just exporting the pairs of figures to Excel and writing
a function to calculate the percentages.
But maybe you know of a way of getting ImageJ to do this for me
automatically? (Save me a step or two!)
I don't know anything about plug-ins, macros, strings, etc., so if you do
have any suggestions, please give me very simple step-by-step
instructions! Maybe I should just stick with Excel...?
Thanks very much,
Jenny
Christopher Coulon, Ph.D.
The GAIA Group
http://gaiag.net