Class RejectIfIntensityLessThan
Rejects voxels with intensity less than a specified minimum, otherwise calculates a score using
another
VoxelScore.
This class extends VoxelScore to provide a specific scoring mechanism for voxels.
-
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 check for intensity.getItem()TheVoxelScoreto use for calculating the score if the intensity is not rejected.intThe minimum intensity threshold.voidsetEnergyChannelIndex(int energyChannelIndex) The index of the energy channel to check for intensity.voidsetItem(VoxelScore item) TheVoxelScoreto use for calculating the score if the intensity is not rejected.voidsetMinIntensity(int minIntensity) The minimum intensity threshold.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
-
RejectIfIntensityLessThan
public RejectIfIntensityLessThan()
-
-
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
-
getItem
TheVoxelScoreto use for calculating the score if the intensity is not rejected. -
setItem
TheVoxelScoreto use for calculating the score if the intensity is not rejected. -
getEnergyChannelIndex
public int getEnergyChannelIndex()The index of the energy channel to check for intensity. -
setEnergyChannelIndex
public void setEnergyChannelIndex(int energyChannelIndex) The index of the energy channel to check for intensity. -
getMinIntensity
public int getMinIntensity()The minimum intensity threshold. Voxels with intensity less than this are rejected (scored as 0). -
setMinIntensity
public void setMinIntensity(int minIntensity) The minimum intensity threshold. Voxels with intensity less than this are rejected (scored as 0).
-