Package georegression.fitting.curves
Class FitConicA_F64
java.lang.Object
georegression.fitting.curves.FitConicA_F64
- All Implemented Interfaces:
FitShapeToPoints<Point2D_F64,
,ConicGeneral_F64> FitShapeToPoints_F64<Point2D_F64,
ConicGeneral_F64>
public class FitConicA_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 A. More numerically stable than
FitConicAtA_F64
but slower.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.ejml.interfaces.SolveNullSpace<org.ejml.data.DMatrixRMaj>
boolean
process
(List<Point2D_F64> points, double[] weights, ConicGeneral_F64 output) Fits the conic to the weighted set of points.boolean
process
(List<Point2D_F64> points, ConicGeneral_F64 output) Fits the conic to the points.void
setSolver
(org.ejml.interfaces.SolveNullSpace<org.ejml.data.DMatrixRMaj> solver)
-
Constructor Details
-
FitConicA_F64
public FitConicA_F64()
-
-
Method Details
-
process
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 interfaceFitShapeToPoints<Point2D_F64,
ConicGeneral_F64> - Parameters:
points
- (Input) pointsoutput
- (Output) found conic- Returns:
- true if successful or false if it failed
-
process
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 interfaceFitShapeToPoints_F64<Point2D_F64,
ConicGeneral_F64> - Parameters:
points
- (Input) pointsoutput
- (Output) found conicweights
- (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)
-