Class CalculateEllipseLeastSquares

Object
org.anchoranalysis.feature.calculate.part.CalculationPart<ObjectWithEllipse,​org.anchoranalysis.image.feature.input.FeatureInputSingleObject>
org.anchoranalysis.plugin.points.calculate.ellipse.CalculateEllipseLeastSquares
All Implemented Interfaces:
org.anchoranalysis.feature.calculate.cache.ResettableCalculation

public class CalculateEllipseLeastSquares
extends org.anchoranalysis.feature.calculate.part.CalculationPart<ObjectWithEllipse,​org.anchoranalysis.image.feature.input.FeatureInputSingleObject>
Calculates the best-fit ellipse for an ObjectMask using linear least squares.

This class fits an Ellipse to the center of gravity slice of the input object.

  • Constructor Details

  • Method Details

    • execute

      protected ObjectWithEllipse execute​(org.anchoranalysis.image.feature.input.FeatureInputSingleObject input) throws org.anchoranalysis.feature.calculate.FeatureCalculationException
      Specified by:
      execute in class org.anchoranalysis.feature.calculate.part.CalculationPart<ObjectWithEllipse,​org.anchoranalysis.image.feature.input.FeatureInputSingleObject>
      Throws:
      org.anchoranalysis.feature.calculate.FeatureCalculationException
    • equals

      public boolean equals​(Object o)
      Specified by:
      equals in class org.anchoranalysis.feature.calculate.part.CalculationPart<ObjectWithEllipse,​org.anchoranalysis.image.feature.input.FeatureInputSingleObject>
    • canEqual

      protected boolean canEqual​(Object other)
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class org.anchoranalysis.feature.calculate.part.CalculationPart<ObjectWithEllipse,​org.anchoranalysis.image.feature.input.FeatureInputSingleObject>