Module imagingbook.common
Class EllipseFit5Points
java.lang.Object
imagingbook.common.geometry.fitting.ellipse.algebraic.EllipseFit5Points
- All Implemented Interfaces:
EllipseFitAlgebraic
Performs an exact ellipse fit to 5 given points. If the fit is unsuccessful,
getParameters()
returns
null
. The underlying algorithm is described in Section F.3.3 of [1].
[1] W. Burger, M.J. Burge, Digital Image Processing – An Algorithmic Introduction, 3rd ed, Springer (2022).
- Version:
- 2022/11/17
-
Nested Class Summary
Nested classes/interfaces inherited from interface imagingbook.common.geometry.fitting.ellipse.algebraic.EllipseFitAlgebraic
EllipseFitAlgebraic.FitType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
Returns a vector of algebraic ellipse parameters:(a,b,c,d,e,f)
, representing the ellipse bya x^2 + b x y + c y^2 + d x + e y + f = 0
.static void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface imagingbook.common.geometry.fitting.ellipse.algebraic.EllipseFitAlgebraic
getDataOffsetCorrectionMatrix, getEllipse, isEllipse
-
Constructor Details
-
EllipseFit5Points
-
-
Method Details
-
getParameters
Description copied from interface:EllipseFitAlgebraic
Returns a vector of algebraic ellipse parameters:(a,b,c,d,e,f)
, representing the ellipse bya x^2 + b x y + c y^2 + d x + e y + f = 0
.- Specified by:
getParameters
in interfaceEllipseFitAlgebraic
- Returns:
- the ellipse parameters
-
main
-