Class IntensityGradientBase
- Direct Known Subclasses:
GradientMagnitude
,GradientMeanForAxis
Base class for features that calculate intensity gradients from multiple channels.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
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 aCalculationPart
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
-
Constructor Details
-
IntensityGradientBase
public IntensityGradientBase()
-
-
Method Details
-
gradientCalculation
Creates aCalculationPart
for calculating the gradient from the specified channels.- Returns:
- a
CalculationPart
that calculates a list ofPoint3d
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.
-