public abstract class CalculateLevelRelativeToThreshold extends CalculateLevelUnary
Constructor and Description |
---|
CalculateLevelRelativeToThreshold() |
Modifier and Type | Method and Description |
---|---|
int |
calculateLevel(Histogram histogram)
Determines a voxel intensity that can be used for thresholding.
|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
CalculateLevel |
getCalculateLevelElse() |
int |
getThreshold() |
int |
hashCode() |
void |
setCalculateLevelElse(CalculateLevel calculateLevelElse) |
void |
setThreshold(int threshold) |
protected abstract boolean |
useElseInstead(int level,
int threshold)
Uses
calculateLevelElse instead of the standard calculation-level approach |
calculateLevelFromDelegate, getCalculateLevel, setCalculateLevel
initializeRecursive, onInitialization, onInitialization
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public int calculateLevel(Histogram histogram) throws OperationFailedException
CalculateLevel
calculateLevel
in class CalculateLevel
histogram
- a histogram of voxel-intensities from which a threshold-level can be
derived.OperationFailedException
- if a level cannot be successfully calculated.protected abstract boolean useElseInstead(int level, int threshold)
calculateLevelElse
instead of the standard calculation-level approachpublic boolean equals(Object o)
equals
in class CalculateLevelUnary
protected boolean canEqual(Object other)
canEqual
in class CalculateLevelUnary
public int hashCode()
hashCode
in class CalculateLevelUnary
public CalculateLevel getCalculateLevelElse()
public void setCalculateLevelElse(CalculateLevel calculateLevelElse)
public int getThreshold()
public void setThreshold(int threshold)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.