Package georegression.fitting.line
Class FitLineParametricSvd_F64
java.lang.Object
georegression.fitting.line.FitLineParametricSvd_F64
Fits a
LineParametric2D_F64
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 Summary
Modifier and TypeFieldDescriptionorg.ejml.interfaces.SolveNullSpace<org.ejml.data.DMatrixRMaj>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
fit
(List<Point2D_F64> points, LineParametric2D_F64 line) Fits a line to the points
-
Field Details
-
solver
public org.ejml.interfaces.SolveNullSpace<org.ejml.data.DMatrixRMaj> solver
-
-
Constructor Details
-
FitLineParametricSvd_F64
public FitLineParametricSvd_F64()
-
-
Method Details
-
fit
Fits a line to the points- Parameters:
points
- Set of points being fitline
- (Output) best fit line- Returns:
- true if successful
-