Login  Register

Re: Calculate percentage of a line in relation to another

Posted by fmonson on Feb 07, 2011; 5:43pm
URL: http://imagej.273.s1.nabble.com/Calculate-percentage-of-a-line-in-relation-to-another-tp3685756p3685761.html

My assumption is that, two people will ask similar questions, and one may find/have an answer that points to the solution of the other.  Often, the problem is that questions are not 'nuclear' and problems are not first devolved into a list.  

Though the relevance remains to be determined.  I can sometimes generate questions that lead to answers.  

I believe that the url below, while not specific for ImageJ, or, perhaps the question, does relate to the question of finding lines in an image.

http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/YOUNG2/ 

?????

Fred Monson

Frederick C. Monson, PhD
Technical Director
Center for Microanalysis and Imaging, Research and Training (CMIRT)
Schmucker Science Center South
West Chester University, West Chester, PA 19383
610-738-0437

Home Page:  http://cmirt.wcupa.edu
Scheduler:     http://cmirt.wcupa.edu/cgi-bin/ureserve_gold.pl


-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Jennifer Marshall
Sent: Monday, February 07, 2011 11:52 AM
To: [hidden email]
Subject: Calculate percentage of a line in relation to another

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