Class OrthogonalEllipseProjector

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

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. In contrast to the Newton-based algorithm (see OrthogonalEllipseProjectorNewton, this version uses the bisection method for root finding and returns valid results for points close to the x- and y-axis but requires significantly more iterations to converge.

[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: