Class IntensityMoments

Object
AnchorBean<FeatureListProvider<FeatureInputStack>>
InitializableBean<FeatureListProvider<FeatureInputStack>, FeatureRelatedInitialization>
FeatureRelatedBean<FeatureListProvider<FeatureInputStack>>
FeatureProviderBean<FeatureListProvider<FeatureInputStack>, FeatureList<FeatureInputStack>>
FeatureListProvider<FeatureInputStack>
IntensityMoments
All Implemented Interfaces:
Provider<FeatureList<FeatureInputStack>>

public class IntensityMoments extends FeatureListProvider<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:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    FeatureList<FeatureInputStack>
    get()
     
    int
    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

    • IntensityMoments

      public IntensityMoments()
  • Method Details

    • get

      public FeatureList<FeatureInputStack> get() throws ProvisionFailedException
      Throws:
      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.