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

Home » Public Forums » archive » ellipse fitting?
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: Ellipse fitting? [message #66406 is a reply to message #30371] Tue, 12 May 2009 14:18 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
robparker23@googlemail.com writes:

> I was hoping that someone could help with this.
>
> I have a satellite footprint which is more or less elliptical. I have
> the 4 coordinates of the top, bottom, left and right-most points and
> want to fit an ellipse to these 4 coordinates.
>
> I've put a diagram here to explain: http://img217.imageshack.us/img217/5048/ellipse.png
>
> I've googled this quite a bit and there seem to be lots of ways to fit
> ellipses to complicated data sets using techniques like optimal
> estimation but I can't find an easy/quick way of doing it. To do this
> manually I think I could just take the equation for an ellipse and
> adjust it to fit but I need to do this automatically for a large
> number of points where the shape of the ellipse will change depending
> on the location.
>
> This gets slightly more complicated (doesn't it always) as the shape
> may not quite be an ellipse due to the geometry of the satellite (it
> might have one side slightly "fatter" than the other) and it might be
> titled at an angle (so not horizontal).
>
> Does IDL have any ellipse fitting capabilities built in or is anyone
> familar with a solution that might work?

You might try Fit_Ellipse:

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

The purpose of this program was to facilitate "blob analysis",
but you might be able to convert it to your purpose:

http://www.dfanning.com/ip_tips/blobanalysis.html

I guess a satellite footprint is more or less a blob. :-)

Cheers,

David

--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL 7.0 (Windows version) - widget_table does not generate expected event
Next Topic: JPEG2000 compression

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

Current Time: Wed Oct 08 14:55:48 PDT 2025

Total time taken to generate the page: 0.00433 seconds