Class Ellipsoidicity
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<org.anchoranalysis.feature.bean.Feature<T>,org.anchoranalysis.feature.initialization.FeatureInitialization>
org.anchoranalysis.feature.bean.Feature<org.anchoranalysis.image.feature.input.FeatureInputSingleObject>
org.anchoranalysis.image.feature.bean.object.single.FeatureSingleObject
org.anchoranalysis.plugin.points.bean.feature.EllipsoidBase
org.anchoranalysis.plugin.points.bean.feature.Ellipsoidicity
public class Ellipsoidicity extends EllipsoidBase
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 Constructor Description Ellipsoidicity() -
Method Summary
Modifier and Type Method Description protected doublecalculateWithEllipsoid(org.anchoranalysis.image.feature.input.FeatureInputSingleObject input, org.anchoranalysis.mpp.mark.conic.Ellipsoid ellipsoid)Calculates a feature value based on the fittedEllipsoid.Methods inherited from class org.anchoranalysis.plugin.points.bean.feature.EllipsoidBase
calculate, isSuppressZ, setSuppressZMethods inherited from class org.anchoranalysis.image.feature.bean.object.single.FeatureSingleObject
inputTypeMethods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toStringMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
-
Constructor Details
-
Ellipsoidicity
public Ellipsoidicity()
-
-
Method Details
-
calculateWithEllipsoid
protected double calculateWithEllipsoid(org.anchoranalysis.image.feature.input.FeatureInputSingleObject input, org.anchoranalysis.mpp.mark.conic.Ellipsoid ellipsoid) throws org.anchoranalysis.feature.calculate.FeatureCalculationExceptionDescription copied from class:EllipsoidBaseCalculates a feature value based on the fittedEllipsoid.- Specified by:
calculateWithEllipsoidin classEllipsoidBase- Parameters:
input- the input objectellipsoid- the fitted ellipsoid- Returns:
- the calculated feature value
- Throws:
org.anchoranalysis.feature.calculate.FeatureCalculationException- if the calculation fails
-