Class PointsFitter
- All Implemented Interfaces:
CompatibleWithMark
- Direct Known Subclasses:
ConicFitterBase
,Reference
,ReflectInAxesWithinDistance
Abstract base class for fitting a mark (e.g., an ellipsoid) to a set of points.
This class extends PointsBean
and implements CompatibleWithMark
, providing a
framework for various point fitting algorithms.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
fit
(List<Point3f> points, Mark mark, Dimensions dimensions) Fits a mark to a set of points within given dimensions.Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.anchoranalysis.mpp.mark.CompatibleWithMark
isCompatibleWith
-
Constructor Details
-
PointsFitter
public PointsFitter()
-
-
Method Details
-
fit
public abstract void fit(List<Point3f> points, Mark mark, Dimensions dimensions) throws PointsFitterException, InsufficientPointsException Fits a mark to a set of points within given dimensions.- Parameters:
points
- the list of points to fit the mark tomark
- the mark to be fitted (will be modified)dimensions
- the dimensions within which the fitting occurs- Throws:
PointsFitterException
- if an error occurs during the fitting processInsufficientPointsException
- if there are not enough points to perform the fitting
-