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

Home » Public Forums » archive » One ellipse to rule them all
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
One ellipse to rule them all [message #58624] Mon, 11 February 2008 14:30 Go to next message
ianpaul.freeley is currently offline  ianpaul.freeley
Messages: 18
Registered: March 2007
Junior Member
I'm hoping someone has done this before and can help me out.

I have a bunch of x,y points, and I'd like to find the ellipse (with
minimum area) that encompasses all of them. Any thoughts?

cheers,
I.P. Freeley
Re: One ellipse to rule them all [message #58715 is a reply to message #58624] Mon, 11 February 2008 21:56 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Vince Hradil writes:

> Look here - and references therein:
> http://www-eleves-isia.cma.fr/documentation/CgalDoc2.4/basic _lib/Optimisation_ref/Class_Min_ellipse_2.html

I haven't looked, yet, and I am sure the answer
is there, but what about finding all those points
on the convex hull:

http://www.dfanning.com/tips/convex_hull.html

And then fitting an ellipse to them, ignoring the
points inside. It would be an interesting experiment
to see if this gets you anywhere close to what you
are looking for. I haven't time for the experiment
myself, but the code is all there and...

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: One ellipse to rule them all [message #58719 is a reply to message #58624] Mon, 11 February 2008 16:40 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Feb 11, 5:55 pm, Vince Hradil <hrad...@yahoo.com> wrote:
> On Feb 11, 5:06 pm, ianpaul.free...@gmail.com wrote:
>
>> On Feb 11, 4:51 pm, David Fanning <n...@dfanning.com> wrote:
>
>>> ianpaul.free...@gmail.com writes:
>>>> I'm hoping someone has done this before and can help me out.
>
>>>> I have a bunch of x,y points, and I'd like to find the ellipse (with
>>>> minimum area) that encompasses all of them. Any thoughts?
>
>>> I can show you how to find an ellipse:
>
>>> http://www.dfanning.com/ip_tips/fit_ellipse.html
>
>>> To enclose all the points I would, uh, expand it
>>> slowly. :-)
>
>>> Cheers,
>
>>> David
>
>>> --
>>> David Fanning, Ph.D.
>>> Fanning Software Consulting, Inc.
>>> Coyote's Guide to IDL Programming (www.dfanning.com)
>>> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
>
>> My gut tells me I should be able to do it analytically. I *think* the
>> two points that have the largest separation should define the major
>> axis and position angle. Then I just need to fit for the minor axis
>> from the rest of the points, and the largest one is the winner.
>
> Look here - and references therein:http://www-eleves-isia.cma.fr/documentation/CgalDoc2 .4/basic_lib/Opti...

Here's Welzl's paper: http://citeseer.ist.psu.edu/235065.html
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL batchfile as a linux script?
Next Topic: Grid Transformation to a new grid

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

Current Time: Wed Oct 08 15:39:53 PDT 2025

Total time taken to generate the page: 0.00516 seconds