Class OutsideRange
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.OutsideRange
public class OutsideRange
extends org.anchoranalysis.image.feature.bean.VoxelScore
Calculates a voxel score based on whether the voxel intensity is outside a specified range.
This class extends VoxelScore to provide a specific scoring mechanism for voxels.
-
Constructor Summary
Constructors Constructor Description OutsideRange() -
Method Summary
Modifier and Type Method Description doublecalculate(int[] voxelIntensities)intgetEnergyIndex()The index of the energy channel to use for intensity values.intgetMax()The maximum value of the range (exclusive).intgetMin()The minimum value of the range (inclusive).voidsetEnergyIndex(int energyIndex)The index of the energy channel to use for intensity values.voidsetMax(int max)The maximum value of the range (exclusive).voidsetMin(int min)The minimum value of the range (inclusive).Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
-
Constructor Details
-
OutsideRange
public OutsideRange()
-
-
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
-
getMin
public int getMin()The minimum value of the range (inclusive). -
setMin
public void setMin(int min)The minimum value of the range (inclusive). -
getMax
public int getMax()The maximum value of the range (exclusive). -
setMax
public void setMax(int max)The maximum value of the range (exclusive). -
getEnergyIndex
public int getEnergyIndex()The index of the energy channel to use for intensity values. -
setEnergyIndex
public void setEnergyIndex(int energyIndex)The index of the energy channel to use for intensity values.
-