public abstract class CalculateLevel extends NullParametersBean<CalculateLevel>
A well-behaved CalculateLevel
should implements equals(java.lang.Object)
and hashCode()
.
If this is not possible, these methods should instead throw a run-time exception.
Modifier | Constructor and Description |
---|---|
protected |
CalculateLevel() |
Modifier and Type | Method and Description |
---|---|
abstract int |
calculateLevel(Histogram histogram)
Determines a voxel intensity that can be used for thresholding.
|
abstract boolean |
equals(Object obj) |
abstract int |
hashCode() |
initializeRecursive, onInitialization, onInitialization
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public abstract int calculateLevel(Histogram histogram) throws OperationFailedException
histogram
- a histogram of voxel-intensities from which a threshold-level can be
derived.OperationFailedException
- if a level cannot be successfully calculated.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.