public class Quantile extends CalculateLevel
By default, it calculates the median i.e. quantile of 0.5
Constructor and Description |
---|
Quantile() |
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) |
double |
getQuantile() |
int |
hashCode() |
boolean |
isAddOne() |
void |
setAddOne(boolean addOne) |
void |
setQuantile(double quantile) |
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.public boolean equals(Object o)
equals
in class CalculateLevel
protected boolean canEqual(Object other)
public int hashCode()
hashCode
in class CalculateLevel
public double getQuantile()
public void setQuantile(double quantile)
public boolean isAddOne()
public void setAddOne(boolean addOne)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.