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 intgetEnergyIndexX()Index of the channel in the energy stack to use for the X-component of the gradient.intgetEnergyIndexY()Index of the channel in the energy stack to use for the Y-component of the gradient.intgetEnergyIndexZ()Index of the channel in the energy stack to use for the Z-component of the gradient.intgetSubtractConstant()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 aCalculationPartfor calculating the gradient from the specified channels.voidsetEnergyIndexX(int energyIndexX)Index of the channel in the energy stack to use for the X-component of the gradient.voidsetEnergyIndexY(int energyIndexY)Index of the channel in the energy stack to use for the Y-component of the gradient.voidsetEnergyIndexZ(int energyIndexZ)Index of the channel in the energy stack to use for the Z-component of the gradient.voidsetSubtractConstant(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
inputTypeMethods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, calculate, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toStringMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
-
Constructor Details
-
IntensityGradientBase
public IntensityGradientBase()
-
-
Method Details
-
gradientCalculation
protected org.anchoranalysis.feature.calculate.part.CalculationPart<List<org.anchoranalysis.spatial.point.Point3d>,org.anchoranalysis.image.feature.input.FeatureInputSingleObject> gradientCalculation()Creates aCalculationPartfor calculating the gradient from the specified channels.- Returns:
- a
CalculationPartthat calculates a list ofPoint3drepresenting 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.
-