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

Home » Public Forums » archive » Re: fitting contours with ellipse
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: fitting contours with ellipse [message #69341 is a reply to message #69338] Tue, 05 January 2010 05:02 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Francis Burton writes:

> One requirement for a 'good fit' in this case is to have as
> much of the ellipse represented by data points as possible
> (i.e. no big gaps). The set of coordinates returned by CONTOUR
> using the PATH_INFO keyword should be well-spaced at least;
> whether there are enough coordinates will depend on the size
> of the contour path in relation to the grid spacing. I would
> simply feed the coordinates to the ellipse-fitting routine
> and see if it produces sensible results for your data.

Alas, the problem with the contours that come from
the contour command is that some of the time they
are NOT "well spaced". In fact, they are vectors.
So, if a contour segment is straight (say along an edge)
there will be no points at all between the ends
of the straight segment.

It was to get around this problem (among others) that
I wrote ArcSample, which samples a closed curve at
approximately equal intervals. It essentially
digitizes a contour line so you can do something
useful with it later. (I used it in my ActiveContour
program.)

http://www.dfanning.com/programs/arcsample.pro

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to get IDL 6.3 to create TIFF file using signed 16-bit integers.
Next Topic: Re: envi_title_bar.ico missing and null pointer dereferenced error when using .sav file in ENVI

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

Current Time: Sat Oct 11 06:15:37 PDT 2025

Total time taken to generate the page: 1.11768 seconds