Class Identity
A voxel score that can optionally normalize and adjust the intensity values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
calculate
(int[] voxelIntensities) Calculates a score for a set of voxel intensities.int
The index of the energy channel to use for calculations.double
The factor to apply for values above 0.5 when normalizing.double
The factor to apply for values below 0.5 when normalizing.boolean
Whether to keep extreme values (0 and 1) unchanged when normalizing.boolean
Whether to normalize the voxel intensity values.void
setEnergyChannelIndex
(int energyChannelIndex) The index of the energy channel to use for calculations.void
setFactorHigh
(double factorHigh) The factor to apply for values above 0.5 when normalizing.void
setFactorLow
(double factorLow) The factor to apply for values below 0.5 when normalizing.void
setKeepExtremes
(boolean keepExtremes) Whether to keep extreme values (0 and 1) unchanged when normalizing.void
setNormalize
(boolean normalize) Whether to normalize the voxel intensity values.Methods inherited from class org.anchoranalysis.image.feature.bean.VoxelScore
initialize
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
Identity
public Identity()
-
-
Method Details
-
calculate
Description copied from class:VoxelScore
Calculates a score for a set of voxel intensities.- Specified by:
calculate
in classVoxelScore
- Parameters:
voxelIntensities
- an array of voxel intensity values- Returns:
- the calculated score for the given voxel intensities
- Throws:
FeatureCalculationException
- if the calculation fails
-
getEnergyChannelIndex
public int getEnergyChannelIndex()The index of the energy channel to use for calculations. -
setEnergyChannelIndex
public void setEnergyChannelIndex(int energyChannelIndex) The index of the energy channel to use for calculations. -
isNormalize
public boolean isNormalize()Whether to normalize the voxel intensity values. -
setNormalize
public void setNormalize(boolean normalize) Whether to normalize the voxel intensity values. -
getFactorLow
public double getFactorLow()The factor to apply for values below 0.5 when normalizing. -
setFactorLow
public void setFactorLow(double factorLow) The factor to apply for values below 0.5 when normalizing. -
getFactorHigh
public double getFactorHigh()The factor to apply for values above 0.5 when normalizing. -
setFactorHigh
public void setFactorHigh(double factorHigh) The factor to apply for values above 0.5 when normalizing. -
isKeepExtremes
public boolean isKeepExtremes()Whether to keep extreme values (0 and 1) unchanged when normalizing. -
setKeepExtremes
public void setKeepExtremes(boolean keepExtremes) Whether to keep extreme values (0 and 1) unchanged when normalizing.
-