Class FitConicAtA_F64

java.lang.Object
georegression.fitting.curves.FitConicAtA_F64
All Implemented Interfaces:
FitShapeToPoints<Point2D_F64,ConicGeneral_F64>, FitShapeToPoints_F64<Point2D_F64,ConicGeneral_F64>

public class FitConicAtA_F64 extends Object implements FitShapeToPoints_F64<Point2D_F64,ConicGeneral_F64>
Fit's a parabola to a set of points by finding the null space of AT*A. This is faster but less numerically stable than techniques which don't explicitly square the matrix.
  • Constructor Details

    • FitConicAtA_F64

      public FitConicAtA_F64()
  • Method Details

    • process

      public boolean process(List<Point2D_F64> points, ConicGeneral_F64 output)
      Fits the conic to the points. Strongly recommended that you transform the points such that they have zero mean and a standard deviation along x and y axis, independently.
      Specified by:
      process in interface FitShapeToPoints<Point2D_F64,ConicGeneral_F64>
      Parameters:
      points - (Input) points
      output - (Output) found conic
      Returns:
      true if successful or false if it failed
    • process

      public boolean process(List<Point2D_F64> points, double[] weights, ConicGeneral_F64 output)
      Fits the conic to the weighted set of points. Strongly recommended that you transform the points such that they have zero mean and a standard deviation along x and y axis, independently.
      Specified by:
      process in interface FitShapeToPoints_F64<Point2D_F64,ConicGeneral_F64>
      Parameters:
      points - (Input) points
      output - (Output) found conic
      weights - (Input) Weight of each point.
      Returns:
      true if successful or false if it failed
    • getSolver

      public org.ejml.interfaces.SolveNullSpace<org.ejml.data.DMatrixRMaj> getSolver()
    • setSolver

      public void setSolver(org.ejml.interfaces.SolveNullSpace<org.ejml.data.DMatrixRMaj> solver)