Class IntensityGradientBase

Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<org.anchoranalysis.feature.bean.Feature<T>,​org.anchoranalysis.feature.initialization.FeatureInitialization>
org.anchoranalysis.feature.bean.Feature<org.anchoranalysis.image.feature.input.FeatureInputSingleObject>
org.anchoranalysis.image.feature.bean.object.single.FeatureSingleObject
org.anchoranalysis.plugin.image.feature.bean.object.single.intensity.gradient.IntensityGradientBase
Direct Known Subclasses:
GradientMagnitude, GradientMeanForAxis

public abstract class IntensityGradientBase
extends org.anchoranalysis.image.feature.bean.object.single.FeatureSingleObject
Base class for features that calculate intensity gradients from multiple channels.
  • Constructor Summary

    Constructors 
    Constructor Description
    IntensityGradientBase()  
  • Method Summary

    Modifier and Type Method Description
    int getEnergyIndexX()
    Index of the channel in the energy stack to use for the X-component of the gradient.
    int getEnergyIndexY()
    Index of the channel in the energy stack to use for the Y-component of the gradient.
    int getEnergyIndexZ()
    Index of the channel in the energy stack to use for the Z-component of the gradient.
    int getSubtractConstant()
    A constant value to subtract from each voxel intensity before calculating the gradient.
    protected org.anchoranalysis.feature.calculate.part.CalculationPart<List<org.anchoranalysis.spatial.point.Point3d>,​org.anchoranalysis.image.feature.input.FeatureInputSingleObject> gradientCalculation()
    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

  • Method Details

    • gradientCalculation

      protected org.anchoranalysis.feature.calculate.part.CalculationPart<List<org.anchoranalysis.spatial.point.Point3d>,​org.anchoranalysis.image.feature.input.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.