Class ThresholderAutoIJ
Object
AnchorBean<VoxelsThresholder>
InitializableBean<VoxelsThresholder, NullInitialization>
NullParametersBean<VoxelsThresholder>
Thresholder
ThresholderAutoIJ
public class ThresholderAutoIJ
extends Thresholder
Applies automatic thresholding using ImageJ's Auto_Threshold plugin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe thresholding method to use.booleanIf true, the thresholding algorithm will not consider black pixels (value 0) in its calculations.voidThe thresholding method to use.voidsetNoBlack(boolean noBlack) If true, the thresholding algorithm will not consider black pixels (value 0) in its calculations.BinaryVoxels<UnsignedByteBuffer> threshold(VoxelsUntyped inputBuffer, BinaryValuesByte binaryValues, Optional<Histogram> histogram, Optional<ObjectMask> objectMask) Methods inherited from class org.anchoranalysis.image.bean.threshold.Thresholder
threshold, thresholdMethods 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
-
ThresholderAutoIJ
public ThresholderAutoIJ()
-
-
Method Details
-
threshold
-
getMethod
The thresholding method to use.One of the following strings to identify ImageJ's thresholding algorithms: Default, Huang, "Intermodes", "IsoData", "Li", "MaxEntropy", "Mean", "MinError(I)", "Minimum", "Moments", "Otsu", "Percentile", "RenyiEntropy", "Shanbhag", "Triangle", "Yen"
An empty string will use the Default method.
-
setMethod
The thresholding method to use.One of the following strings to identify ImageJ's thresholding algorithms: Default, Huang, "Intermodes", "IsoData", "Li", "MaxEntropy", "Mean", "MinError(I)", "Minimum", "Moments", "Otsu", "Percentile", "RenyiEntropy", "Shanbhag", "Triangle", "Yen"
An empty string will use the Default method.
-
isNoBlack
public boolean isNoBlack()If true, the thresholding algorithm will not consider black pixels (value 0) in its calculations. -
setNoBlack
public void setNoBlack(boolean noBlack) If true, the thresholding algorithm will not consider black pixels (value 0) in its calculations.
-