Class Quantile
Calculates the threshold value from a quantile of a histogram.
By default, it calculates the median i.e. quantile of 0.5
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcalculateLevel(Histogram histogram) Determines a voxel intensity that can be used for thresholding.protected booleanbooleandoubleinthashCode()booleanisAddOne()voidsetAddOne(boolean addOne) voidsetQuantile(double quantile) Methods inherited from class org.anchoranalysis.bean.NullParametersBean
initializeRecursive, onInitialization, onInitializationMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitializedMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
Quantile
public Quantile()
-
-
Method Details
-
calculateLevel
Description copied from class:CalculateLevelDetermines a voxel intensity that can be used for thresholding.- Specified by:
calculateLevelin classCalculateLevel- Parameters:
histogram- a histogram of voxel-intensities from which a threshold-level can be derived.- Returns:
- the threshold-level.
- Throws:
OperationFailedException- if a level cannot be successfully calculated.
-
equals
- Specified by:
equalsin classCalculateLevel
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCodein classCalculateLevel
-
getQuantile
public double getQuantile() -
setQuantile
public void setQuantile(double quantile) -
isAddOne
public boolean isAddOne() -
setAddOne
public void setAddOne(boolean addOne)
-