Class PointsFitter
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,PointsInitialization>
org.anchoranalysis.mpp.bean.points.PointsBean<PointsFitter>
org.anchoranalysis.mpp.bean.points.fitter.PointsFitter
- All Implemented Interfaces:
CompatibleWithMark
public abstract class PointsFitter extends PointsBean<PointsFitter> implements CompatibleWithMark
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 Constructor Description PointsFitter() -
Method Summary
Modifier and Type Method Description abstract voidfit(List<org.anchoranalysis.spatial.point.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, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
PointsFitter
public PointsFitter()
-
-
Method Details
-
fit
public abstract void fit(List<org.anchoranalysis.spatial.point.Point3f> points, Mark mark, Dimensions dimensions) throws PointsFitterException, InsufficientPointsExceptionFits 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
-