Class 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 Details

    • IntensityMoments

      public IntensityMoments()
  • Method Details

    • get

      Description copied from interface: Provider
      Gets or creates an object of type T.
      Returns:
      the object returned by the provider.
      Throws:
      ProvisionFailedException - if the object cannot be returned.
    • 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.