Class IntensityMoments

Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,​org.anchoranalysis.feature.initialization.FeatureRelatedInitialization>
org.anchoranalysis.feature.bean.FeatureRelatedBean<B>
org.anchoranalysis.feature.bean.provider.FeatureProviderBean<org.anchoranalysis.feature.bean.list.FeatureListProvider<T>,​org.anchoranalysis.feature.bean.list.FeatureList<T>>
org.anchoranalysis.feature.bean.list.FeatureListProvider<org.anchoranalysis.image.feature.input.FeatureInputStack>
org.anchoranalysis.plugin.image.feature.bean.list.IntensityMoments
All Implemented Interfaces:
org.anchoranalysis.bean.Provider<org.anchoranalysis.feature.bean.list.FeatureList<org.anchoranalysis.image.feature.input.FeatureInputStack>>

public class IntensityMoments
extends org.anchoranalysis.feature.bean.list.FeatureListProvider<org.anchoranalysis.image.feature.input.FeatureInputStack>
Calculate various moment-related statistics about the intensity of each channel of an image.

As the features are unaware of the number of channels in a particular stack, a large number of features are created, referring to successive channels. If a feature references a channel that does not exist in a particular image, then Double.NaN will be calculated.

For each channel, the following is calculated:

  1. sum (zeroth raw moment)
  2. mean (first raw moment)
  3. standard-deviation (square root of the variance)
  4. variance (second central moment)
  5. skewness (normalized third central moment)
  6. kurtosis (standardized fourth central moment)
Author:
Owen Feehan
See Also:
Moment (mathemathics), Image moment
  • Constructor Summary

    Constructors 
    Constructor Description
    IntensityMoments()  
  • Method Summary

    Modifier and Type Method Description
    org.anchoranalysis.feature.bean.list.FeatureList<org.anchoranalysis.image.feature.input.FeatureInputStack> get()  
    int getMaximumNumberChannels()
    An upper limit on the number of channels in the energy-stack for which we create features.
    void setMaximumNumberChannels​(int maximumNumberChannels)
    An upper limit on the number of channels in the energy-stack for which we create features.

    Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean

    getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • get

      public org.anchoranalysis.feature.bean.list.FeatureList<org.anchoranalysis.image.feature.input.FeatureInputStack> get() throws org.anchoranalysis.bean.xml.exception.ProvisionFailedException
      Throws:
      org.anchoranalysis.bean.xml.exception.ProvisionFailedException
    • getMaximumNumberChannels

      public int getMaximumNumberChannels()
      An upper limit on the number of channels in the energy-stack for which we create features.
    • setMaximumNumberChannels

      public void setMaximumNumberChannels​(int maximumNumberChannels)
      An upper limit on the number of channels in the energy-stack for which we create features.