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 Summary
Constructors Constructor Description CalculateEllipseLeastSquares()Creates a new instance ofCalculateEllipseLeastSquares. -
Method Summary
-
Constructor Details
-
CalculateEllipseLeastSquares
public CalculateEllipseLeastSquares()Creates a new instance ofCalculateEllipseLeastSquares.
-
-
Method Details
-
execute
protected ObjectWithEllipse execute(org.anchoranalysis.image.feature.input.FeatureInputSingleObject input) throws org.anchoranalysis.feature.calculate.FeatureCalculationException- Specified by:
executein classorg.anchoranalysis.feature.calculate.part.CalculationPart<ObjectWithEllipse,org.anchoranalysis.image.feature.input.FeatureInputSingleObject>- Throws:
org.anchoranalysis.feature.calculate.FeatureCalculationException
-
equals
- Specified by:
equalsin classorg.anchoranalysis.feature.calculate.part.CalculationPart<ObjectWithEllipse,org.anchoranalysis.image.feature.input.FeatureInputSingleObject>
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCodein classorg.anchoranalysis.feature.calculate.part.CalculationPart<ObjectWithEllipse,org.anchoranalysis.image.feature.input.FeatureInputSingleObject>
-