Class LinearLeastSquaresEllipseFitter
- All Implemented Interfaces:
CompatibleWithMark
Fits a set of points to an ellipse using a linear least squares method.
Specifically, the approach of the georegression library is employed.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfit(List<Point3f> points, Mark mark, Dimensions dimensions) Fits a mark to a set of points within given dimensions.doublebooleanisCompatibleWith(Mark testMark) Tests if the implementing object is compatible with a mark of a particular type.voidsetMinRadius(double minRadius) Methods inherited from class org.anchoranalysis.plugin.points.bean.fitter.ConicFitterBase
assignTo, getInputPointShift, getScaleRadii, getShell, getSubtractRadii, setInputPointShift, setScaleRadii, setShell, setSubtractRadiiMethods 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
-
LinearLeastSquaresEllipseFitter
public LinearLeastSquaresEllipseFitter()
-
-
Method Details
-
fit
public void fit(List<Point3f> points, Mark mark, Dimensions dimensions) throws PointsFitterException, InsufficientPointsException Description copied from class:PointsFitterFits a mark to a set of points within given dimensions.- Specified by:
fitin classPointsFitter- 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
-
isCompatibleWith
Description copied from interface:CompatibleWithMarkTests if the implementing object is compatible with a mark of a particular type.- Parameters:
testMark- the mark to test for compatibility- Returns:
- true if the implementing object is compatible with the given mark, false otherwise
-
getMinRadius
public double getMinRadius() -
setMinRadius
public void setMinRadius(double minRadius)
-