Class PrincipalAxisLength
The length of a principal-axis (as defined by Image Moments).
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected double
Calculates the result for the specific moment identified by index.protected String
Generates an error message when there are too few pixels to calculate moments.Methods inherited from class org.anchoranalysis.plugin.image.feature.bean.object.single.moments.SpecificAxisBase
calculateFromAllMoments, getIndex, setIndex
Methods inherited from class org.anchoranalysis.plugin.image.feature.bean.object.single.moments.ImageMomentsBase
calculate, getValueIfTooFewVoxels, isSuppressZ, setSuppressZ, setValueIfTooFewVoxels
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
-
PrincipalAxisLength
public PrincipalAxisLength()
-
-
Method Details
-
calculateFromSpecificMoment
protected double calculateFromSpecificMoment(EigenvalueAndVector moment) throws FeatureCalculationException Description copied from class:SpecificAxisBase
Calculates the result for the specific moment identified by index.- Specified by:
calculateFromSpecificMoment
in classSpecificAxisBase
- Parameters:
moment
- theEigenvalueAndVector
for the specific moment- Returns:
- the calculated result as a
Double
- Throws:
FeatureCalculationException
- if the calculation fails
-
errorMessageIfTooFewPixels
Description copied from class:ImageMomentsBase
Generates an error message when there are too few pixels to calculate moments.- Specified by:
errorMessageIfTooFewPixels
in classImageMomentsBase
- Returns:
- the error message as a
String
- Throws:
FeatureCalculationException
- if generating the error message fails
-