public abstract class FromDictionaryBase extends SingleChannel
Constructor and Description |
---|
FromDictionaryBase() |
Modifier and Type | Method and Description |
---|---|
protected static double |
extractAsDouble(Dictionary dictionary,
String key) |
void |
initialize(List<Histogram> histograms,
Optional<Dictionary> dictionary)
Initializes the voxels-score.
|
protected abstract void |
setupDictionary(Dictionary dictionary) |
calculate, deriveScoreFromVoxel, 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 abstract void setupDictionary(Dictionary dictionary) throws InitializeException
InitializeException
protected static double extractAsDouble(Dictionary dictionary, String key) throws InitializeException
InitializeException
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.