Class SingleChannel
Object
AnchorBean<VoxelScore>
InitializableBean<VoxelScore, ImageInitialization>
ImageBean<VoxelScore>
VoxelScore
SingleChannel
- Direct Known Subclasses:
CalculateLevelBase,FromDictionaryBase,NormalizeByConstant,NormalizeByMax
public abstract class SingleChannel
extends VoxelScore
A score that is calculated on a single channel only.
This abstract class extends VoxelScore to provide a base for voxel scores that operate
on a single energy channel.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecalculate(int[] voxelIntensities) protected abstract doublederiveScoreFromVoxel(int voxelIntensity) Derives a score from a single voxel intensity.intThe index of the energy channel to use for score calculation.voidsetEnergyChannelIndex(int energyChannelIndex) The index of the energy channel to use for score calculation.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
-
SingleChannel
public SingleChannel()
-
-
Method Details
-
calculate
public double calculate(int[] voxelIntensities) throws FeatureCalculationException - Specified by:
calculatein classVoxelScore- Throws:
FeatureCalculationException
-
deriveScoreFromVoxel
protected abstract double deriveScoreFromVoxel(int voxelIntensity) Derives a score from a single voxel intensity.- Parameters:
voxelIntensity- the intensity of the voxel in the specified energy channel- Returns:
- the calculated score for the voxel
-
getEnergyChannelIndex
public int getEnergyChannelIndex()The index of the energy channel to use for score calculation. -
setEnergyChannelIndex
public void setEnergyChannelIndex(int energyChannelIndex) The index of the energy channel to use for score calculation.
-