Class IntensityGradientBase

Object
AnchorBean<Feature<FeatureInputSingleObject>>
InitializableBean<Feature<FeatureInputSingleObject>, FeatureInitialization>
Feature<FeatureInputSingleObject>
FeatureSingleObject
IntensityGradientBase
Direct Known Subclasses:
GradientMagnitude, GradientMeanForAxis

public abstract class IntensityGradientBase extends FeatureSingleObject
Base class for features that calculate intensity gradients from multiple channels.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Index of the channel in the energy stack to use for the X-component of the gradient.
    int
    Index of the channel in the energy stack to use for the Y-component of the gradient.
    int
    Index of the channel in the energy stack to use for the Z-component of the gradient.
    int
    A constant value to subtract from each voxel intensity before calculating the gradient.
    protected CalculationPart<List<Point3d>, FeatureInputSingleObject>
    Creates a CalculationPart for calculating the gradient from the specified channels.
    void
    setEnergyIndexX(int energyIndexX)
    Index of the channel in the energy stack to use for the X-component of the gradient.
    void
    setEnergyIndexY(int energyIndexY)
    Index of the channel in the energy stack to use for the Y-component of the gradient.
    void
    setEnergyIndexZ(int energyIndexZ)
    Index of the channel in the energy stack to use for the Z-component of the gradient.
    void
    setSubtractConstant(int subtractConstant)
    A constant value to subtract from each voxel intensity before calculating the gradient.

    Methods inherited from class org.anchoranalysis.image.feature.bean.object.single.FeatureSingleObject

    inputType

    Methods inherited from class org.anchoranalysis.feature.bean.Feature

    assignTo, beforeCalc, calculate, 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

    • IntensityGradientBase

      public IntensityGradientBase()
  • Method Details

    • gradientCalculation

      protected CalculationPart<List<Point3d>, FeatureInputSingleObject> gradientCalculation()
      Creates a CalculationPart for calculating the gradient from the specified channels.
      Returns:
      a CalculationPart that calculates a list of Point3d representing the gradient vectors
    • getEnergyIndexX

      public int getEnergyIndexX()
      Index of the channel in the energy stack to use for the X-component of the gradient. A value of -1 indicates that this component should not be used.
    • setEnergyIndexX

      public void setEnergyIndexX(int energyIndexX)
      Index of the channel in the energy stack to use for the X-component of the gradient. A value of -1 indicates that this component should not be used.
    • getEnergyIndexY

      public int getEnergyIndexY()
      Index of the channel in the energy stack to use for the Y-component of the gradient. A value of -1 indicates that this component should not be used.
    • setEnergyIndexY

      public void setEnergyIndexY(int energyIndexY)
      Index of the channel in the energy stack to use for the Y-component of the gradient. A value of -1 indicates that this component should not be used.
    • getEnergyIndexZ

      public int getEnergyIndexZ()
      Index of the channel in the energy stack to use for the Z-component of the gradient. A value of -1 indicates that this component should not be used.
    • setEnergyIndexZ

      public void setEnergyIndexZ(int energyIndexZ)
      Index of the channel in the energy stack to use for the Z-component of the gradient. A value of -1 indicates that this component should not be used.
    • getSubtractConstant

      public int getSubtractConstant()
      A constant value to subtract from each voxel intensity before calculating the gradient.
    • setSubtractConstant

      public void setSubtractConstant(int subtractConstant)
      A constant value to subtract from each voxel intensity before calculating the gradient.