public class PrincipalAxisEccentricity extends ImageMomentsBase
Specifically, this is:
sqrt( 1 - eigenvalue2/eigenvalue1)where
eigenvalue1
is the eigen-value with first highest-magnitude, and
eigenvalue2
is second-highest etc.
See Image moment on Wikipedia for the precise calculation.
Constructor and Description |
---|
PrincipalAxisEccentricity() |
Modifier and Type | Method and Description |
---|---|
static double |
calculateEccentricity(double eigenvalSmaller,
double eigenvalLarger) |
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
public static double calculateEccentricity(double eigenvalSmaller, double eigenvalLarger)
protected String errorMessageIfTooFewPixels()
errorMessageIfTooFewPixels
in class ImageMomentsBase
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.