Re: measuring lines [message #45836] |
Wed, 12 October 2005 03:02 |
Andrew Cool
Messages: 219 Registered: January 1996
|
Senior Member |
|
|
robin.vandebroek@gmail.com wrote:
> Hi,
>
> My apologies if this is a trivial problem.
> I have a bitmap which is a picture of glass fibers distributed on a
> flat surface.
> The bitmap is already processed so the fibers can be easily
> distinguished.
> Is there a way or a method within IDL to measure the length of the
> individual fibers apart from programming a scanning algorithm myself ?
>
> Thank you very much in advance.
Depending on the thickness of the fibres, you may be able to use
David Fanning's Find_Boundary routine, which returns the perimeter
of an object, amongst other bits of info. If the fibre is really quite
"skinny", then the length could be simply perimeter/2.0 ?? How accurate
do
you need to be is the other question...
Andrew
|
|
|
Re: measuring lines [message #45853 is a reply to message #45836] |
Tue, 11 October 2005 04:37  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
robin.vandebroek@gmail.com writes:
> My apologies if this is a trivial problem.
> I have a bitmap which is a picture of glass fibers distributed on a
> flat surface.
> The bitmap is already processed so the fibers can be easily
> distinguished.
> Is there a way or a method within IDL to measure the length of the
> individual fibers apart from programming a scanning algorithm myself ?
You could use the tape measure tool in my AnnotateWindow
program for this purpose:
AnnotateWindow, image, XRange=[0,5], YRange=[0,4]
The ranges specify the actual extent of your image data
(shown here at 4 mm by 5 mm). You can find out about the
program here:
http://www.dfanning.com/documents/programs.html#ANNOTATEWIND OW
(The angle measuring tool might also be of interest to you.)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|