Direct Known Subclasses:
GradientMagnitude, GradientMeanForAxis

public abstract class IntensityGradientBase extends FeatureSingleObject
Base class for features that calculate intensity gradients from multiple channels.
  • 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.