public abstract class CalculateLevelBase extends SingleChannel
Constructor and Description |
---|
CalculateLevelBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
beforeCalcSetup(Histogram histogram,
int level) |
protected abstract double |
calculateForVoxel(int voxelIntensity,
int level) |
protected double |
deriveScoreFromVoxel(int voxelIntensity) |
CalculateLevel |
getCalculateLevel() |
int |
getHistogramChannelIndex() |
void |
initialize(List<Histogram> histograms,
Optional<Dictionary> dictionary)
Initializes the voxels-score.
|
void |
setCalculateLevel(CalculateLevel calculateLevel) |
void |
setHistogramChannelIndex(int histogramChannelIndex) |
calculate, getEnergyChannelIndex, setEnergyChannelIndex
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public void initialize(List<Histogram> histograms, Optional<Dictionary> dictionary) throws InitializeException
VoxelScore
Must be called before VoxelScore.calculate(int[])
.
initialize
in class VoxelScore
histograms
- one or more histograms associated with this calculationdictionary
- optional Dictionary
associated with this calculationInitializeException
- if anything goes wrongprotected double deriveScoreFromVoxel(int voxelIntensity)
deriveScoreFromVoxel
in class SingleChannel
protected abstract void beforeCalcSetup(Histogram histogram, int level) throws OperationFailedException
OperationFailedException
protected abstract double calculateForVoxel(int voxelIntensity, int level)
public CalculateLevel getCalculateLevel()
public void setCalculateLevel(CalculateLevel calculateLevel)
public int getHistogramChannelIndex()
public void setHistogramChannelIndex(int histogramChannelIndex)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.