Login  Register

Re: automate distance measure of uneven surface

Posted by Herbie on Feb 25, 2016; 7:38pm
URL: http://imagej.273.s1.nabble.com/automate-distance-measure-of-uneven-surface-tp5015719p5015722.html

Sorry Dave,

distance could mean a lot but length of the line appears reasonably
clear to me.

If you really have a binary image (the one you've posted is not!) then
counting the pixels of the _skeletonized_ and _selected_ edge will give
you the length.
(I measure a length of 1760 pixels, i.e. about 587.6 microns)

That said, it remains the problem of selecting the line... (By hand you
can use the Wand-tool.)

You need to write an ImageJ-macro that is facilitated by recording the
steps described above. The selection however may become difficult, if
you don't have a good estimate of the border position (approximate
height position in pixels). For the example image
        doWand( 0, 100 );
works well.

HTH

Herbie

::::::::::::::::::::::::::::::::::::::::::::::::
Am 25.02.16 um 19:54 schrieb David A. Schneider:

> Herbie, Thank you for your reply and sorry if I wasn't clear.
>
> What I would like is the distance of that surface edge. 'Find edges'
> will produce an image of the edge in question, but how do I get its
> length? I can use the magic wand to select the found edge, but the
> measure command doesn't seem to include a distance measure for this
> type of shape.
>
> I must be dense, seems like this should be pretty easy.
>
> Thanks again.
>
> Dave
>
> -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html