Class RejectIfIntensityLessThan
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,org.anchoranalysis.image.bean.nonbean.init.ImageInitialization>
org.anchoranalysis.image.bean.ImageBean<org.anchoranalysis.image.feature.bean.VoxelScore>
org.anchoranalysis.image.feature.bean.VoxelScore
org.anchoranalysis.plugin.image.feature.bean.score.RejectIfIntensityLessThan
public class RejectIfIntensityLessThan
extends org.anchoranalysis.image.feature.bean.VoxelScore
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 Constructor Description RejectIfIntensityLessThan() -
Method Summary
Modifier and Type Method Description doublecalculate(int[] voxelIntensities)intgetEnergyChannelIndex()The index of the energy channel to check for intensity.org.anchoranalysis.image.feature.bean.VoxelScoregetItem()TheVoxelScoreto use for calculating the score if the intensity is not rejected.intgetMinIntensity()The minimum intensity threshold.voidsetEnergyChannelIndex(int energyChannelIndex)The index of the energy channel to check for intensity.voidsetItem(org.anchoranalysis.image.feature.bean.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.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
-
Constructor Details
-
RejectIfIntensityLessThan
public RejectIfIntensityLessThan()
-
-
Method Details
-
calculate
public double calculate(int[] voxelIntensities) throws org.anchoranalysis.feature.calculate.FeatureCalculationException- Specified by:
calculatein classorg.anchoranalysis.image.feature.bean.VoxelScore- Throws:
org.anchoranalysis.feature.calculate.FeatureCalculationException
-
getItem
public org.anchoranalysis.image.feature.bean.VoxelScore getItem()TheVoxelScoreto use for calculating the score if the intensity is not rejected. -
setItem
public void setItem(org.anchoranalysis.image.feature.bean.VoxelScore item)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).
-