public class ThresholderAutoIJ extends Thresholder
Constructor and Description |
---|
ThresholderAutoIJ() |
Modifier and Type | Method and Description |
---|---|
String |
getMethod()
One of the following strings to identify ImageJ's thresholding algorithms (or an empty string
for the default).
|
boolean |
isNoBlack() |
void |
setMethod(String method)
One of the following strings to identify ImageJ's thresholding algorithms (or an empty string
for the default).
|
void |
setNoBlack(boolean noBlack) |
BinaryVoxels<UnsignedByteBuffer> |
threshold(VoxelsUntyped inputBuffer,
BinaryValuesByte binaryValues,
Optional<Histogram> histogram,
Optional<ObjectMask> objectMask)
Thresholds voxels (across a range of values) so that they have only binary range (i.e.
|
threshold, threshold
initializeRecursive, onInitialization, onInitialization
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public BinaryVoxels<UnsignedByteBuffer> threshold(VoxelsUntyped inputBuffer, BinaryValuesByte binaryValues, Optional<Histogram> histogram, Optional<ObjectMask> objectMask) throws OperationFailedException
Thresholder
If a mask is used, the voxels outside the object-mask are left unchanged. They will be either identical to the input-volume or 0 if a new buffer needs to be created.
threshold
in class Thresholder
inputBuffer
- the voxels to be thresholded.binaryValues
- what binary values to be used in the output.histogram
- a histogram if it's available, which must exactly match the intensity-values
of voxels
after any object-mask is applied. This exists for calculation
efficiency.objectMask
- an object-mask to restrict thresholding to only some region(s) of the
voxels.OperationFailedException
- if the thresholding operation cannot complete successfully.public String getMethod()
Default, Huang, "Intermodes", "IsoData", "Li", "MaxEntropy", "Mean", "MinError(I)", "Minimum", "Moments", "Otsu", "Percentile", "RenyiEntropy", "Shanbhag", "Triangle", "Yen"
public void setMethod(String method)
Default, Huang, "Intermodes", "IsoData", "Li", "MaxEntropy", "Mean", "MinError(I)", "Minimum", "Moments", "Otsu", "Percentile", "RenyiEntropy", "Shanbhag", "Triangle", "Yen"
public boolean isNoBlack()
public void setNoBlack(boolean noBlack)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.