Re: Calculate percentage of a line in relation to another
Posted by
David Webster on
Feb 07, 2011; 8:22pm
URL: http://imagej.273.s1.nabble.com/Calculate-percentage-of-a-line-in-relation-to-another-tp3685756p3685759.html
It is a little unclear to me as to what data you already have. The phrase:
"I was thinking of just exporting the pairs of figures to Excel and writing
a function to calculate the percentages."
Implies that you already have something like line endpoint coordinates and
want to compute line lengths and length ratios from them.
Could you clarify this point please.
David Webster
On Mon, Feb 7, 2011 at 8:51 AM, Jennifer Marshall
<
[hidden email]>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
>