Class IntensityMeanMaxSlice

Object
AnchorBean<Feature<FeatureInputSingleObject>>
InitializableBean<Feature<FeatureInputSingleObject>, FeatureInitialization>
Feature<FeatureInputSingleObject>
FeatureSingleObject
FeatureEnergyChannel
IntensityMeanMaxSlice

public class IntensityMeanMaxSlice extends FeatureEnergyChannel
Calculates the maximum mean intensity across all slices of an object in a channel.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected double
    calculateForChannel(FeatureCalculationInput<FeatureInputSingleObject> input, Channel channel)
    Calculates the maximum mean intensity across all slices of the object in the given channel.
    int
    The value to return when the object has no voxels in any slice.
    boolean
    If true, zero-valued voxels are excluded from the mean intensity calculation.
    void
    setEmptyValue(int emptyValue)
    The value to return when the object has no voxels in any slice.
    void
    setExcludeZero(boolean excludeZero)
    If true, zero-valued voxels are excluded from the mean intensity calculation.

    Methods inherited from class org.anchoranalysis.plugin.image.feature.bean.object.single.intensity.FeatureEnergyChannel

    calculate, getEnergyIndex, setEnergyIndex

    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
  • Constructor Details

    • IntensityMeanMaxSlice

      public IntensityMeanMaxSlice()
  • Method Details

    • calculateForChannel

      protected double calculateForChannel(FeatureCalculationInput<FeatureInputSingleObject> input, Channel channel) throws FeatureCalculationException
      Calculates the maximum mean intensity across all slices of the object in the given channel.
      Specified by:
      calculateForChannel in class FeatureEnergyChannel
      Parameters:
      input - the FeatureCalculationInput containing the FeatureInputSingleObject
      channel - the Channel to calculate the intensity from
      Returns:
      the maximum mean intensity across all slices, or emptyValue if the object has no voxels
      Throws:
      FeatureCalculationException - if the calculation fails
    • isExcludeZero

      public boolean isExcludeZero()
      If true, zero-valued voxels are excluded from the mean intensity calculation.
    • setExcludeZero

      public void setExcludeZero(boolean excludeZero)
      If true, zero-valued voxels are excluded from the mean intensity calculation.
    • getEmptyValue

      public int getEmptyValue()
      The value to return when the object has no voxels in any slice.
    • setEmptyValue

      public void setEmptyValue(int emptyValue)
      The value to return when the object has no voxels in any slice.