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 Details

  • 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:
      fit in class org.anchoranalysis.mpp.bean.points.fitter.PointsFitter
      Throws:
      org.anchoranalysis.mpp.bean.points.fitter.PointsFitterException
      org.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)