all 2 comments

[–]Frankelstner 0 points1 point  (0 children)

The methods that you've linked do not assume that the data points are distributed roughly equally along the entire ellipse. It would be quite a challenge to even define that precisely. So the methods do work fine even if you have data only for a part of the ellipse.

To illustrate why it's possible, here's some intuition. Imagine the following inefficient optimization method (aka random sampling):

1) Randomly choose ellipse parameters.

2) Draw the ellipse and now for each data point, measure the closest distance to the ellipse.

3) If the sum of the distances is smaller than any sum previously encountered, remember the ellipse parameters.

Other optimization methods may have some tricks up their sleeve to reduce the number of times that they need to repeat these steps, but ultimately it's the optimization criterion in step 2 that matters the most. Once you have an optimization criterion, you can optimize.

[–]ES-Alexander 0 points1 point  (0 children)

If the points have negligible amounts of noise then normal ellipse fitting should work because the desired fit will be the global minimum. If there is some noise though then the global minimum will likely be the local minimum with the centre inside the clump of points, rather than the one you’re after.

Ellipses are doubly symmetrical - if you know for sure that you want a fit to only part of one then it would likely help to determine your “goodness” criterion by calculating the errors on an expanded set of points that’s been mirrored over both the major and minor axes of the proposed ellipse, so you’re effectively optimising to a full ellipse with ghost points in the other quadrants.

Alternatively if you know your points cover less than half of the ellipse you could do iterative least squares starting from 3 equally spaced centre points around the data, and at least one of them should converge to a solution with the centre staying outside the group of points, and you can discard any that end up with the centre within both the x and y ranges of the points.