Class RatioPrincipalAxisLength

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.image.feature.bean.object.single.moments.ImageMomentsBase
org.anchoranalysis.plugin.image.feature.bean.object.single.moments.RatioPrincipalAxisLength

public class RatioPrincipalAxisLength
extends ImageMomentsBase
Calculates the ratio of prinicpal-axis length using Image Moments.

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.

Author:
Owen Feehan
  • Constructor Summary

    Constructors 
    Constructor Description
    RatioPrincipalAxisLength()  
  • Method Summary

    Modifier and Type Method Description
    protected double calculateFromAllMoments​(org.anchoranalysis.math.statistics.moment.ImageMoments moments)
    Calculates the feature value from the ImageMoments.
    protected String errorMessageIfTooFewPixels()
    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.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait