Class OrthogonalEllipseProjectorNewton

java.lang.Object
imagingbook.common.geometry.ellipse.project.EllipseProjector
imagingbook.common.geometry.ellipse.project.OrthogonalEllipseProjectorNewton

Calculates the closest point on the ellipse for a given 2D point inside or outside the ellipse, using orthogonal projection of points onto the ellipse. This is a robust algorithm based on [1]. See Sec.11.2.2 (Alg. 11.9) of [2] for details. This version uses the Newton-method for root finding, which is quick but may fail to return a valid result if the target point is close to the x- or y-axis. See OrthogonalEllipseProjector for a robust solution or ConfocalConicEllipseProjector for an approximate but non-iterative (i.e., fast) alternative.

[1] D. Eberly: "Distance from a point to an ellipse, an ellipsoid, or a hyperellipsoid", Technical Report, Geometric Tools, www.geometrictools.com, Redmont, WA (June 2013).
[2] W. Burger, M.J. Burge, Digital Image Processing – An Algorithmic Introduction, 3rd ed, Springer (2022).

Version:
2022/04/09
See Also: