Module imagingbook.common
Class ConfocalConicEllipseProjector
java.lang.Object
imagingbook.common.geometry.ellipse.project.EllipseProjector
imagingbook.common.geometry.ellipse.project.ConfocalConicEllipseProjector
Calculates an approximate closest point on the ellipse for a given 2D point inside or outside the ellipse, using "confocal conic distance approximation" [1]. See Sec. 11.2.3 (Alg. 11.12) and Appendix F.3.1 of [2] for details.
[1] P. L. Rosin. Ellipse fitting using orthogonal hyperbolae and stirling’s oval. Graphical Models and Image
Processing 60(3), 209–213 (1998).
[2] W. Burger, M.J. Burge, Digital Image Processing – An Algorithmic
Introduction, 3rd ed, Springer (2022).
- Version:
- 2022/11/17
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected double[]
projectCanonical
(double[] uv) Calculates the projection point in canonical coordinates.Methods inherited from class imagingbook.common.geometry.ellipse.project.EllipseProjector
fromCanonicalFrame, fromFirstQuadrant, getDistance, getDistanceSq, project, project, toCanonicalFrame, toFirstQuadrant
-
Constructor Details
-
ConfocalConicEllipseProjector
-
-
Method Details
-
projectCanonical
Description copied from class:EllipseProjector
Calculates the projection point in canonical coordinates.- Specified by:
projectCanonical
in classEllipseProjector
- Parameters:
uv
- target point in canonical coordinates.- Returns:
- the associated "contact" point on the ellipse
-