Class CalculateEllipsoidLeastSquares
Object
org.anchoranalysis.feature.calculate.part.CalculationPart<org.anchoranalysis.mpp.mark.conic.Ellipsoid,org.anchoranalysis.image.feature.input.FeatureInputSingleObject>
org.anchoranalysis.plugin.points.calculate.ellipsoid.CalculateEllipsoidLeastSquares
- All Implemented Interfaces:
org.anchoranalysis.feature.calculate.cache.ResettableCalculation
public class CalculateEllipsoidLeastSquares
extends org.anchoranalysis.feature.calculate.part.CalculationPart<org.anchoranalysis.mpp.mark.conic.Ellipsoid,org.anchoranalysis.image.feature.input.FeatureInputSingleObject>
Calculates the best-fit
Ellipsoid for an object using linear least squares.-
Method Summary
Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)protected org.anchoranalysis.mpp.mark.conic.Ellipsoidexecute(org.anchoranalysis.image.feature.input.FeatureInputSingleObject input)inthashCode()static org.anchoranalysis.mpp.mark.conic.Ellipsoidof(org.anchoranalysis.feature.calculate.FeatureCalculationInput<org.anchoranalysis.image.feature.input.FeatureInputSingleObject> input, boolean suppressZCovariance)Calculates anEllipsoidfor the given input.
-
Method Details
-
of
public static org.anchoranalysis.mpp.mark.conic.Ellipsoid of(org.anchoranalysis.feature.calculate.FeatureCalculationInput<org.anchoranalysis.image.feature.input.FeatureInputSingleObject> input, boolean suppressZCovariance) throws org.anchoranalysis.feature.calculate.FeatureCalculationExceptionCalculates anEllipsoidfor the given input.- Parameters:
input- the feature calculation inputsuppressZCovariance- whether to suppress covariance in the Z direction- Returns:
- the calculated
Ellipsoid - Throws:
org.anchoranalysis.feature.calculate.FeatureCalculationException- if the calculation fails
-
execute
protected org.anchoranalysis.mpp.mark.conic.Ellipsoid execute(org.anchoranalysis.image.feature.input.FeatureInputSingleObject input) throws org.anchoranalysis.feature.calculate.FeatureCalculationException- Specified by:
executein classorg.anchoranalysis.feature.calculate.part.CalculationPart<org.anchoranalysis.mpp.mark.conic.Ellipsoid,org.anchoranalysis.image.feature.input.FeatureInputSingleObject>- Throws:
org.anchoranalysis.feature.calculate.FeatureCalculationException
-
equals
- Specified by:
equalsin classorg.anchoranalysis.feature.calculate.part.CalculationPart<org.anchoranalysis.mpp.mark.conic.Ellipsoid,org.anchoranalysis.image.feature.input.FeatureInputSingleObject>
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCodein classorg.anchoranalysis.feature.calculate.part.CalculationPart<org.anchoranalysis.mpp.mark.conic.Ellipsoid,org.anchoranalysis.image.feature.input.FeatureInputSingleObject>
-