Class LinearLeastSquaresEllipsoidFitter

All Implemented Interfaces:
CompatibleWithMark

public class LinearLeastSquaresEllipsoidFitter extends ConicFitterBase
Fits an ellipsoid to points using a linear least squares approach

Specifically the approach of Li and Griffiths in 'Least Squares Ellipsoid Specific Fitting' (2004) is employed.

Some references

Author:
Owen Feehan
  • Constructor Details

    • LinearLeastSquaresEllipsoidFitter

      public LinearLeastSquaresEllipsoidFitter()
  • Method Details

    • isCompatibleWith

      public boolean isCompatibleWith(Mark testMark)
      Description copied from interface: CompatibleWithMark
      Tests 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
    • fit

      public void fit(List<Point3f> points, Mark mark, Dimensions dimensions) throws PointsFitterException
      Description copied from class: PointsFitter
      Fits a mark to a set of points within given dimensions.
      Specified by:
      fit in class PointsFitter
      Parameters:
      points - the list of points to fit the mark to
      mark - 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 process
    • getMinRadius

      public double getMinRadius()
    • setMinRadius

      public void setMinRadius(double minRadius)
    • isSuppressZCovariance

      public boolean isSuppressZCovariance()
    • setSuppressZCovariance

      public void setSuppressZCovariance(boolean suppressZCovariance)