Class LinearLeastSquaresEllipseFitter
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,org.anchoranalysis.mpp.init.PointsInitialization>
org.anchoranalysis.mpp.bean.points.PointsBean<org.anchoranalysis.mpp.bean.points.fitter.PointsFitter>
org.anchoranalysis.mpp.bean.points.fitter.PointsFitter
org.anchoranalysis.plugin.points.bean.fitter.ConicFitterBase
org.anchoranalysis.plugin.points.bean.fitter.LinearLeastSquaresEllipseFitter
- All Implemented Interfaces:
org.anchoranalysis.mpp.mark.CompatibleWithMark
public class LinearLeastSquaresEllipseFitter extends ConicFitterBase
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 Constructor Description LinearLeastSquaresEllipseFitter() -
Method Summary
Modifier and Type Method Description voidfit(List<org.anchoranalysis.spatial.point.Point3f> points, org.anchoranalysis.mpp.mark.Mark mark, org.anchoranalysis.image.core.dimensions.Dimensions dimensions)doublegetMinRadius()booleanisCompatibleWith(org.anchoranalysis.mpp.mark.Mark testMark)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, onInitialization
-
Constructor Details
-
LinearLeastSquaresEllipseFitter
public LinearLeastSquaresEllipseFitter()
-
-
Method Details
-
fit
public void fit(List<org.anchoranalysis.spatial.point.Point3f> points, org.anchoranalysis.mpp.mark.Mark mark, org.anchoranalysis.image.core.dimensions.Dimensions dimensions) throws org.anchoranalysis.mpp.bean.points.fitter.PointsFitterException, org.anchoranalysis.mpp.bean.points.fitter.InsufficientPointsException- Specified by:
fitin classorg.anchoranalysis.mpp.bean.points.fitter.PointsFitter- Throws:
org.anchoranalysis.mpp.bean.points.fitter.PointsFitterExceptionorg.anchoranalysis.mpp.bean.points.fitter.InsufficientPointsException
-
isCompatibleWith
public boolean isCompatibleWith(org.anchoranalysis.mpp.mark.Mark testMark) -
getMinRadius
public double getMinRadius() -
setMinRadius
public void setMinRadius(double minRadius)
-