Login  Register

Re: how to measure length of lines

Posted by Kirmse Robert on Mar 17, 2006; 10:34am
URL: http://imagej.273.s1.nabble.com/Open-images-tp3703382p3703387.html

if there is need ...
I also have a (as plug-in or macro)
a chain trace tool,

wich traces skeleton pixel lines from one end to another

the user have to click on the first pixels (left or right end) and the
program will run through
the skeleton and records the XY´s of every pixel and writes them in the
result window which can be saved.
If the images is scaled, than the scaled information is recorded.

In later programs (like Origin) you can import the XY-coordinate files and
calculate the contour length and
other things from the skeletons.

The macro can only be applied to non crossing skeletons
the plugin will stop when reaching a crossing and let you choose which way
to go using the numpad.

Both are not that user-friendly but if someone need something like this ...

Cheers
robert
 

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of
Gabriel Landini
Sent: Freitag, 17. März 2006 10:27
To: [hidden email]
Subject: Re: how to measure length of lines

On Friday 17 March 2006 01:14, Harry Parker wrote:
> Your 1st question has several answers, depending on how you define
> "length". Check the sites listed on ImageJ's Plugins page, especially
> Gabriel Landini's
> http://www.dentistry.bham.ac.uk/landinig/software/software.html .

I haven't got a plugin to consistently measure the length of
lines/skeletons, but I am working on a Lines8_Plus plugin which will do.

Briefly this is the same as the perimeter measurement of blobs in
Particles8_Plus (that is an 8-connected chain encoded profile --Freeman's
algorithm), but with a constrain. The skeleton is treated as a blob and
pixels already visited when going through the perimeter are not considered
if they have been already visited. (Note that in Particles8_Plus, a straight
line will return a perimeter approximately twice its length).

I think that the modification will work fine and I will be testing it soon.
If anybody wants to test before uploading for general consumption, please
drop me a not off-list.

Cheers,

Gabriel