Class IdentityImposeValueRelationToHistogram
Object
AnchorBean<VoxelScore>
InitializableBean<VoxelScore, ImageInitialization>
ImageBean<VoxelScore>
VoxelScore
IdentityImposeValueRelationToHistogram
public class IdentityImposeValueRelationToHistogram
extends VoxelScore
A voxel score that imposes a value relation to a histogram.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecalculate(int[] voxelIntensities) intThe index of the energy channel to check.intThe index of the energy channel to use if the relation check fails.intThe index of the histogram to use for comparison.RelationBeanThe relation to test between the voxel value and the histogram value.doublegetValue()The value to return if the relation test passes.voidinitialize(List<Histogram> histograms, Optional<Dictionary> dictionary) booleanisMax()Whether to use the maximum (true) or minimum (false) value from the histogram.voidsetEnergyChannelIndexCheck(int energyChannelIndexCheck) The index of the energy channel to check.voidsetEnergyChannelIndexFail(int energyChannelIndexFail) The index of the energy channel to use if the relation check fails.voidsetHistogramIndex(int histogramIndex) The index of the histogram to use for comparison.voidsetMax(boolean max) Whether to use the maximum (true) or minimum (false) value from the histogram.voidsetRelation(RelationBean relation) The relation to test between the voxel value and the histogram value.voidsetValue(double value) The value to return if the relation test passes.Methods 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
-
IdentityImposeValueRelationToHistogram
public IdentityImposeValueRelationToHistogram()
-
-
Method Details
-
calculate
public double calculate(int[] voxelIntensities) throws FeatureCalculationException - Specified by:
calculatein classVoxelScore- Throws:
FeatureCalculationException
-
initialize
-
getEnergyChannelIndexCheck
public int getEnergyChannelIndexCheck()The index of the energy channel to check. -
setEnergyChannelIndexCheck
public void setEnergyChannelIndexCheck(int energyChannelIndexCheck) The index of the energy channel to check. -
getEnergyChannelIndexFail
public int getEnergyChannelIndexFail()The index of the energy channel to use if the relation check fails. -
setEnergyChannelIndexFail
public void setEnergyChannelIndexFail(int energyChannelIndexFail) The index of the energy channel to use if the relation check fails. -
getHistogramIndex
public int getHistogramIndex()The index of the histogram to use for comparison. -
setHistogramIndex
public void setHistogramIndex(int histogramIndex) The index of the histogram to use for comparison. -
getRelation
public RelationBean getRelation()The relation to test between the voxel value and the histogram value. -
getValue
public double getValue()The value to return if the relation test passes. -
setValue
public void setValue(double value) The value to return if the relation test passes. -
isMax
public boolean isMax()Whether to use the maximum (true) or minimum (false) value from the histogram. -
setMax
public void setMax(boolean max) Whether to use the maximum (true) or minimum (false) value from the histogram.
-