Class Ellipsoidicity
Calculates the ellipsoidicity of an object by fitting an
Ellipsoid
to it.
Ellipsoidicity is a measure of how closely the object resembles an ellipsoid. A value of 1.0 indicates a perfect ellipsoid, while lower values indicate deviations from an ellipsoidal shape.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected double
calculateWithEllipsoid
(FeatureInputSingleObject input, Ellipsoid ellipsoid) Calculates a feature value based on the fittedEllipsoid
.Methods inherited from class org.anchoranalysis.plugin.points.bean.feature.EllipsoidBase
calculate, isSuppressZ, setSuppressZ
Methods inherited from class org.anchoranalysis.image.feature.bean.object.single.FeatureSingleObject
inputType
Methods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toString
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
-
Constructor Details
-
Ellipsoidicity
public Ellipsoidicity()
-
-
Method Details
-
calculateWithEllipsoid
protected double calculateWithEllipsoid(FeatureInputSingleObject input, Ellipsoid ellipsoid) throws FeatureCalculationException Description copied from class:EllipsoidBase
Calculates a feature value based on the fittedEllipsoid
.- Specified by:
calculateWithEllipsoid
in classEllipsoidBase
- Parameters:
input
- the input objectellipsoid
- the fitted ellipsoid- Returns:
- the calculated feature value
- Throws:
FeatureCalculationException
- if the calculation fails
-