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 java.lang.Object implements ModelFitter<Cylinder3D_F64,Point3D_F64>
UnconstrainedLeastSquaresfitting of 3D points to acylinder.
-
-
Constructor Summary
Constructors Constructor and Description FitCylinderToPoints_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
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanfitModel(java.util.List<Point3D_F64> dataSet, Cylinder3D_F64 initial, Cylinder3D_F64 found)Fits a model to a set of points.
-
-
-
Constructor Detail
-
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 Detail
-
fitModel
public boolean fitModel(java.util.List<Point3D_F64> dataSet, Cylinder3D_F64 initial, Cylinder3D_F64 found)
Description copied from interface:ModelFitterFits a model to a set of points. Note that initial and found can be the same instance.- Specified by:
fitModelin interfaceModelFitter<Cylinder3D_F64,Point3D_F64>- Parameters:
dataSet- Set of points the model is being fit to.initial- Initial hypothesisfound- The found model. Can be the same instance as initial.- Returns:
- true if a model was found and false if one was not.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG