public class RatioPrincipalAxisLength extends ImageMomentsBase
Specifically this is the highest-magnitude eigen-value (normalized) to second-highest (normalized) eigen-value.
See Image moment on Wikipedia for the precise calculation.
See Stack overflow post for the normalization procedure.
Constructor and Description |
---|
RatioPrincipalAxisLength() |
Modifier and Type | Method and Description |
---|---|
protected double |
calculateFromAllMoments(ImageMoments moments) |
protected String |
errorMessageIfTooFewPixels() |
calculate, getValueIfTooFewVoxels, isSuppressZ, setSuppressZ, setValueIfTooFewVoxels
inputType
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toString
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
protected double calculateFromAllMoments(ImageMoments moments) throws FeatureCalculationException
calculateFromAllMoments
in class ImageMomentsBase
FeatureCalculationException
protected String errorMessageIfTooFewPixels()
errorMessageIfTooFewPixels
in class ImageMomentsBase
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.