comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: measuring lines
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: measuring lines [message #45836] Wed, 12 October 2005 03:02
Andrew Cool is currently offline  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 Go to previous message
David Fanning is currently offline  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/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: g++ with IDL call_external
Next Topic: Re: Tab Widgets changes at runtime?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:47:54 PDT 2025

Total time taken to generate the page: 0.00475 seconds