Module imagingbook.common
Interface EllipseFitAlgebraic
- All Known Implementing Classes:
EllipseFit5Points,EllipseFitFitzgibbonNaive,EllipseFitFitzgibbonOriginal,EllipseFitFitzgibbonStable,EllipseFitTaubin1,EllipseFitTaubin2
public interface EllipseFitAlgebraic
Interface for algebraic ellipse fits.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault RealMatrixgetDataOffsetCorrectionMatrix(double xr, double yr) Returns a 6x6 matrix (U) to convert ellipse parameters qr = (ar,...,fr) calculated for data centered at (xr, yr) to ellipse parameters q = (a,...,f) for the original non-centered data: q = U * qr.default AlgebraicEllipseReturns a algebraic ellipse constructed from the estimated ellipse parameters.static EllipseFitAlgebraicgetFit(EllipseFitAlgebraic.FitType type, Pnt2d[] points, Pnt2d xref) double[]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.default booleanstatic void
-
Method Details
-
getFit
-
getParameters
double[] getParameters()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.- Returns:
- the ellipse parameters
-
getEllipse
Returns a algebraic ellipse constructed from the estimated ellipse parameters.- Returns:
- an
AlgebraicEllipseinstance
-
isEllipse
-
getDataOffsetCorrectionMatrix
Returns a 6x6 matrix (U) to convert ellipse parameters qr = (ar,...,fr) calculated for data centered at (xr, yr) to ellipse parameters q = (a,...,f) for the original non-centered data: q = U * qr. See [1, Sec. 11.2.1] (e.g., Alg. 11.6) for additional information.
[1] W. Burger, M.J. Burge, Digital Image Processing – An Algorithmic Introduction, 3rd ed, Springer (2022).
- Parameters:
xr- data reference point (x)yr- data reference point (y)- Returns:
- the offset correction matrix (U)
-
main
-