Package georegression.fitting.curves
Class FitConicAtA_F32
java.lang.Object
georegression.fitting.curves.FitConicAtA_F32
- All Implemented Interfaces:
FitShapeToPoints<Point2D_F32,
,ConicGeneral_F32> FitShapeToPoints_F32<Point2D_F32,
ConicGeneral_F32>
@Generated("georegression.fitting.curves.FitConicAtA_F64")
public class FitConicAtA_F32
extends Object
implements FitShapeToPoints_F32<Point2D_F32,ConicGeneral_F32>
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.ejml.interfaces.SolveNullSpace<org.ejml.data.FMatrixRMaj>
boolean
process
(List<Point2D_F32> points, float[] weights, ConicGeneral_F32 output) Fits the conic to the weighted set of points.boolean
process
(List<Point2D_F32> points, ConicGeneral_F32 output) Fits the conic to the points.void
setSolver
(org.ejml.interfaces.SolveNullSpace<org.ejml.data.FMatrixRMaj> solver)
-
Constructor Details
-
FitConicAtA_F32
public FitConicAtA_F32()
-
-
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_F32,
ConicGeneral_F32> - 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_F32<Point2D_F32,
ConicGeneral_F32> - 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.FMatrixRMaj> getSolver() -
setSolver
public void setSolver(org.ejml.interfaces.SolveNullSpace<org.ejml.data.FMatrixRMaj> solver)
-