How to Determine the Minor Axis of an Ellipse from Given Points?

  • Context: Graduate 
  • Thread starter Thread starter Physt
  • Start date Start date
  • Tags Tags
    ellipses
Click For Summary

Discussion Overview

The discussion revolves around determining the minor axis of an ellipse given a set of points in 2D Euclidean space. Participants explore algorithmic approaches to find the smallest ellipse that can encompass these points, focusing on the relationship between the major axis, minor axis, and the foci of the ellipse.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant describes an algorithm to find the major axis and center of an ellipse but seeks to determine the minor axis and foci based on a point on the ellipse's circumference.
  • Another participant suggests a method involving the equation PF_1 + PF_2 = 2a and constraints related to the foci's positions, while cautioning that the algorithm may not yield the smallest ellipse in terms of area or perimeter.
  • A participant expresses interest in breaking down the equation for clarity and understanding, seeking a more straightforward approach to solving it.
  • A later reply indicates that the participant found a solution using WolframAlpha, implying that they were able to manipulate the equation to find the focus.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best method to determine the minor axis, and there are competing views on the effectiveness of the proposed algorithm for finding the smallest ellipse.

Contextual Notes

There are unresolved assumptions regarding the definitions of "smallest" in the context of area and perimeter, as well as the implications of point placement on the ellipse's dimensions.

Physt
Messages
48
Reaction score
1
I'm trying to write an algorithm that will create the smallest possible ellipse to encompass any number of points on 2D euclidean space. I've gotten it to the point where I can attain the major axis A by taking the furthest two points in the set and likewise the centerpoint C as the average of those two furthest points. I now want to loop through the remaining points in the set to find the highest minor axis B value, once the two furthest points are found the remaining points are normalized to them (moved/rotated) such that the center point of the ellipse is the new (0,0) and it is going to be an ellipse with horizontal foci, my question is:

Given the centerpoint of a normalized ellipse, it's major diameter A and any point P laying on the circumference of that ellipse, how do I find the focus F, or the minor diameter B?

If this helps explain it, I have C, a and P of this diagram, I want to find b or f:
http://upload.wikimedia.org/wikipedia/commons/6/65/Ellipse_Properties_of_Directrix_and_String_Construction.svg
 
Last edited:
Physics news on Phys.org
Simple. You solve

PF_1 + PF_2 = 2a
subject to the constraint

CF_1 = CF_2
where F_1, F_2 lie along \overline{AC} on opposite sides of C. You have two algebraic equations for two unknowns: the locations of the two foci.

By the way, your algorithm is not going to find the smallest ellipse, if by "smallest" you mean "smallest area" or "smallest perimeter" (and take care, these two definitions of "smallest" are not compatible!). Your algorithm assumes that the two most distant points will coincide to the two endpoints of the ellipse along the major axis. Given the two endpoints F and G, the third point P can be chosen such that all of these hold:

1. FG > PG > PF

2. The ellipse having FG as one of its axes, and passing through P, can be made arbitrarily large (either in perimeter or area) by appropriate placement of P (very near F).

3. FG actually turns out to be the minor axis, rather than major!

In fact, in the case that 3 holds, the equations I gave at the top will have no real solutions (because the equations assume the foci are on the line \overline{FG}).
 
I did find http://www.cs.cornell.edu/cv/OtherPdf/Ellipse.pdf online, but it will take a bit of study on my part to figure out how to code it into an algorithm, I'd like to know how to solve this equation first as it seems a lot simpler:
Ben Niehoff said:
PF_1 + PF_2 = 2a
subject to the constraint
Ben Niehoff said:
CF_1 = CF_2
Is there any way you could break the equation down for me ending in f= so that I can see how it is done?
 
Nope, you're responsible for your own algebra.
 

Similar threads

  • · Replies 27 ·
Replies
27
Views
6K
Replies
2
Views
5K
  • · Replies 3 ·
Replies
3
Views
8K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 3 ·
Replies
3
Views
10K
  • · Replies 12 ·
Replies
12
Views
7K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K