Class Identity
A voxel score that can optionally normalize and adjust the intensity values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecalculate(int[] voxelIntensities) Calculates a score for a set of voxel intensities.intThe index of the energy channel to use for calculations.doubleThe factor to apply for values above 0.5 when normalizing.doubleThe factor to apply for values below 0.5 when normalizing.booleanWhether to keep extreme values (0 and 1) unchanged when normalizing.booleanWhether to normalize the voxel intensity values.voidsetEnergyChannelIndex(int energyChannelIndex) The index of the energy channel to use for calculations.voidsetFactorHigh(double factorHigh) The factor to apply for values above 0.5 when normalizing.voidsetFactorLow(double factorLow) The factor to apply for values below 0.5 when normalizing.voidsetKeepExtremes(boolean keepExtremes) Whether to keep extreme values (0 and 1) unchanged when normalizing.voidsetNormalize(boolean normalize) Whether to normalize the voxel intensity values.Methods inherited from class org.anchoranalysis.image.feature.bean.VoxelScore
initializeMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods 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:VoxelScoreCalculates a score for a set of voxel intensities.- Specified by:
calculatein 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.
-