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

Home » Public Forums » archive » Re: Minimum area ellipse - quadratic optimisation?
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: Minimum area ellipse - quadratic optimisation? [message #47553] Thu, 16 February 2006 12:11 Go to next message
jeyadev is currently offline  jeyadev
Messages: 78
Registered: February 1995
Member
In article <1140099547.933485.155540@g43g2000cwa.googlegroups.com>,
Olivia <olivia.roberts@merton.ox.ac.uk> wrote:
> Dear All,
>
> My aim is to fit an ellipse with a known center onto a distribution of
> points, where all points have to be inside or on the ellipse, and the
> ellipse chosen is of the minimum area.
>
> .......
>
> I posted on this topic before, but it is important that my ellipse
> fitting method does not rely on convex hulls. I wrote a program which
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Is there a special reason for this?

> does fit ellipses to the point distributions, but not the ellipses with
> the minimum area.
>
> I am sure the problem can't be as hard as I am finding it, and I am
> feeling right now like drawing the 600 or so ellipses my program needs
> myself! Any suggestions really would be very helpful. Thanks,

Perhaps

http://geometryalgorithms.com/Archive/algorithm_0107/algorit hm_0107.htm

could be of some help
--

Surendar Jeyadev jeyadev1@wrc.xerox.com

The 1 in the email address is fake
Re: Minimum area ellipse - quadratic optimisation? [message #47558 is a reply to message #47553] Thu, 16 February 2006 08:41 Go to previous messageGo to next message
Olivia is currently offline  Olivia
Messages: 16
Registered: February 2006
Junior Member
That's a really good idea! I had another idea which was to find the
distance from all the points to the center, then find the minimum area
triangle, and fit an ellipse to that, but your idea sounds much more
straightforward. Thanks, you've really helped me a lot,

Olivia
Re: Minimum area ellipse - quadratic optimisation? [message #47559 is a reply to message #47558] Thu, 16 February 2006 07:15 Go to previous messageGo to next message
Paolo Grigis is currently offline  Paolo Grigis
Messages: 171
Registered: December 2003
Senior Member
well, since you said that the center is fixed:

find the minimum area circle (which has the radius equal the distance
from the farthest point to the center, very easy) and squeeze it progressively
(along the direction perpendicular to the line connecting the center
to the farthest point) until you get a point outside the ellipse.
Trace one step back, and you're done!

Ciao,
Paolo

Olivia wrote:
> Dear All,
>
> My aim is to fit an ellipse with a known center onto a distribution of
> points, where all points have to be inside or on the ellipse, and the
> ellipse chosen is of the minimum area.
>
> I thought a brute force and not very clever way of doing this would be
> to calculate the area taking each set of 3 points to solve the 3
> remaining unknowns, (a, b, and orientation angle), in the ellipse
> equation, and finding which one had the smallest area. But this
> wouldn't work obviously as there would be no condition that all the
> other points have to be inside the ellipse. I have read up on quadratic
> optimization but have to admit I do not really understand the maths.
>
> I posted on this topic before, but it is important that my ellipse
> fitting method does not rely on convex hulls. I wrote a program which
> does fit ellipses to the point distributions, but not the ellipses with
> the minimum area.
>
> I am sure the problem can't be as hard as I am finding it, and I am
> feeling right now like drawing the 600 or so ellipses my program needs
> myself! Any suggestions really would be very helpful. Thanks,
>
> Olivia
>
Re: Minimum area ellipse - quadratic optimisation? [message #47621 is a reply to message #47559] Mon, 20 February 2006 05:01 Go to previous message
greg michael is currently offline  greg michael
Messages: 163
Registered: January 2006
Senior Member
Hi Olivia,

One step simpler than Paolo's method would be, after finding the long
radius, to evaluate directly the required short radius for each point
and pick the maximum. No iteration required. The maths should be easy
if you're at Merton!

Greg
Re: Minimum area ellipse - quadratic optimisation? [message #47631 is a reply to message #47553] Fri, 17 February 2006 09:28 Go to previous message
Olivia is currently offline  Olivia
Messages: 16
Registered: February 2006
Junior Member
>> I posted on this topic before, but it is important that my ellipse
>> fitting method does not rely on convex hulls.

> Is there a special reason for this?

There is a special reason. I am doing a project on galaxy cluster
shapes, comparing the shapes of the clusters as determined by voronoi
tesselations, and by the minimum area ellipses. So fitting ellipses to
convex hulls would give a false comparison.

> Perhaps
> http://geometryalgorithms.com/Archive/algorithm_0107/algorit hm_0107.htm
> could be of some help

This looks like just the thing I am after. I don't think finding the
center point and then finding the minimum area ellipse is a valid
method, after experimenting with it today. I understand the idea of
this fitting algorithm, but after reading the paper by Gaertner and
Schoenherr I doubt if I would be able to right a program to fit the
ellipses myself. Do you know of anyone who might have written one of
these types of programs for IDL? Thanks very much for your idea, and
help.

Olivia
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Another file_search problem
Next Topic: Re: IDLWAVE 6.0 -- idlwave.org

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

Current Time: Wed Oct 08 14:00:29 PDT 2025

Total time taken to generate the page: 0.00730 seconds