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 TypeMethodDescriptiondouble
calculate
(int[] voxelIntensities) Calculates a score for a set of voxel intensities.int
The index of the energy channel to check for intensity.getItem()
TheVoxelScore
to use for calculating the score if the intensity is not rejected.int
The minimum intensity threshold.void
setEnergyChannelIndex
(int energyChannelIndex) The index of the energy channel to check for intensity.void
setItem
(VoxelScore item) TheVoxelScore
to use for calculating the score if the intensity is not rejected.void
setMinIntensity
(int minIntensity) The minimum intensity threshold.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
-
RejectIfIntensityLessThan
public RejectIfIntensityLessThan()
-
-
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
-
getItem
TheVoxelScore
to use for calculating the score if the intensity is not rejected. -
setItem
TheVoxelScore
to 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).
-