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

Home » Public Forums » archive » Re: How to measure the length of a contour?
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: How to measure the length of a contour? [message #12213] Wed, 08 July 1998 00:00
mirko_vukovic is currently offline  mirko_vukovic
Messages: 50
Registered: January 1998
Member
In article <35A0E32C.4223@midway.uchicago.edu>,
plin21@midway.uchicago.edu wrote:
>
> Yes, my great boss come up this idea that lengthes of the islands I
> just
> filled in and measured of their areas are what really important.
>
> So can anyone tell me how to measure a length of some contour?
>
> Thank you in advance ;)
>
The way I do it is to extract the path information from the contour
command (check keywords path_xy and path_info). Be careful, sometimes
you will get more then one contour, and you have to pick one out.

Then you can calculate
(approximately) the length of the contours. The initial guess is to assume
that the points are connected by straight lines. In my particular
application I connect them with fourth order Bezier, and then calculate
the lengths.

But in your case the contour is probably a fractal, and there I am have
no idea. But if you do, let us know!

good luck

mirko

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Voronoi diagram
Next Topic: Occultation by volume object

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

Current Time: Sat Oct 11 08:49:34 PDT 2025

Total time taken to generate the page: 1.20472 seconds