Class FitLineParametricSvd_F32

java.lang.Object
georegression.fitting.line.FitLineParametricSvd_F32

@Generated("georegression.fitting.line.FitLineParametricSvd_F64") public class FitLineParametricSvd_F32 extends Object
Fits a LineParametric2D_F32 to a set of points by minimizing algebraic error. Points are normalized to have zero mean and a stdev of 1 along each axis. Then the slope is found as the nullspace using SVD.
  • Field Details

    • solver

      public org.ejml.interfaces.SolveNullSpace<org.ejml.data.FMatrixRMaj> solver
  • Constructor Details

    • FitLineParametricSvd_F32

      public FitLineParametricSvd_F32()
  • Method Details

    • fit

      public boolean fit(List<Point2D_F32> points, LineParametric2D_F32 line)
      Fits a line to the points
      Parameters:
      points - Set of points being fit
      line - (Output) best fit line
      Returns:
      true if successful