- All Known Implementing Classes:
AffineFit2d
,ProcrustesFit2d
,ProjectiveFit2d
public interface LinearFit2d
Describes a fitter based on a linear transformation model.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getError()
Returns the total error for this fit.static double
getSquaredError
(Pnt2d[] P, Pnt2d[] Q, double[][] A) Calculates and returns the sum of squared fitting errors for two associated point sequences (P, Q) under a linear transformation specified by a 3x3 matrix A.double[][]
Returns the (3,3) or (2,3) transformation matrix A for this fit, such thaty_i ~ A * x_i
(withx_i
in homogeneous coordinates).
-
Method Details
-
getTransformationMatrix
double[][] getTransformationMatrix()Returns the (3,3) or (2,3) transformation matrix A for this fit, such thaty_i ~ A * x_i
(withx_i
in homogeneous coordinates).- Returns:
- the transformation matrix for this fit
-
getError
double getError()Returns the total error for this fit.- Returns:
- the fitting error
-
getSquaredError
Calculates and returns the sum of squared fitting errors for two associated point sequences (P, Q) under a linear transformation specified by a 3x3 matrix A.- Parameters:
P
- the point sequence to be fittedQ
- the reference point sequenceA
- a 3x3 transformation matrix- Returns:
- the
-