Interface LinearFit2d

All Known Implementing Classes:
AffineFit2d, ProcrustesFit2d, ProjectiveFit2d

public interface LinearFit2d
Describes a fitter based on a linear transformation model.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    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 that y_i ~ A * x_i (with x_i in homogeneous coordinates).
  • Method Details

    • getTransformationMatrix

      Returns the (3,3) or (2,3) transformation matrix A for this fit, such that y_i ~ A * x_i (with x_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

      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.
      Parameters:
      P - the point sequence to be fitted
      Q - the reference point sequence
      A - a 3x3 transformation matrix
      Returns:
      the