Package georegression.fitting.cylinder
Class FitCylinderToPoints_F64
java.lang.Object
georegression.fitting.cylinder.FitCylinderToPoints_F64
- All Implemented Interfaces:
ModelFitter<Cylinder3D_F64,
Point3D_F64>
public class FitCylinderToPoints_F64
extends Object
implements ModelFitter<Cylinder3D_F64,Point3D_F64>
UnconstrainedLeastSquares
fitting of 3D points to a cylinder
.-
Constructor Summary
ConstructorDescriptionFitCylinderToPoints_F64
(int maxIterations) Simplified constructor.FitCylinderToPoints_F64
(UnconstrainedLeastSquares optimizer, int maxIterations, double ftol, double gtol) Constructor which provides access to all tuning parameters -
Method Summary
Modifier and TypeMethodDescriptionboolean
fitModel
(List<Point3D_F64> dataSet, Cylinder3D_F64 initial, Cylinder3D_F64 found) double
-
Constructor Details
-
FitCylinderToPoints_F64
public FitCylinderToPoints_F64(UnconstrainedLeastSquares optimizer, int maxIterations, double ftol, double gtol) Constructor which provides access to all tuning parameters- Parameters:
optimizer
- Optimization algorithmmaxIterations
- Maximum number of iterations that the optimizer can perform. Try 100ftol
- Convergence tolerance. SeeUnconstrainedLeastSquares
.gtol
- Convergence tolerance. SeeUnconstrainedLeastSquares
.
-
FitCylinderToPoints_F64
public FitCylinderToPoints_F64(int maxIterations) Simplified constructor. Only process access to the maximum number of iterations.- Parameters:
maxIterations
- Maximum number of iterations. Try 100
-
-
Method Details
-
fitModel
- Specified by:
fitModel
in interfaceModelFitter<Cylinder3D_F64,
Point3D_F64>
-
getFitScore
public double getFitScore()- Specified by:
getFitScore
in interfaceModelFitter<Cylinder3D_F64,
Point3D_F64>
-