Login  Register

Re: better line length measurement...

Posted by Jim Passmore-2 on Mar 25, 2011; 2:39am
URL: http://imagej.273.s1.nabble.com/better-line-length-measurement-tp3685292p3685293.html

Nick,

I've thought of setting up ImageJ to do something similar.  Wayne posted a
macro a while back that measured perpendicular distance to lines.  His
approach began by having user draw a line, then pressing a key to store that
line.  The line stayed selected, and you could simply drag it by grabbing
the center point.  Once it was repositioned, you could press another key to
store the second line.  The process went on from there, but I could see
stopping here and calculating the distance between the lines.

In case you're comfortable mucking around in macro code, I'll attach the
file.  No credit due to me--it was all Wayne.  At some point I'm going to
adapt it to create such a tool, but my application will require creating and
filling in a results table as well.

Hope this gets you started.

*Jim Passmore
*Sealed Air Corporation



On Wed, Mar 23, 2011 at 2:01 PM, Nick <[hidden email]> wrote:

> Hello.
>
> I am trying to use imagej to measure line widths.  I am quite
> comfortable setting the scale and using the line tool to make a
> measurement, but I was wondering if there was some way to help guide
> the line I draw and make sure that it is perpendicular to the feature.
>  For instance, other programs usually have a tool that looks like:
> |<------->|
> I am really after those vertical lines on the edges (perhaps a bit
> longer).  So, if I am measuring the width of a strip, I can align
> those vertical lines with the edges of my strip; helping me get more
> accurate measurements.
>
> I know that by holding down the shift key I can make the line I draw
> perfectly horizontal, but my images may not always be in the proper
> orientation.
>
> I also thought that I could use the rectangle tool to make a box and
> measure the width and height, though I cannot rotate it...
>
> Any ideas?
>

ToothRootToCrownRatio.txt (6K) Download Attachment