public abstract class Thresholder extends NullParametersBean<VoxelsThresholder>
Modifier | Constructor and Description |
---|---|
protected |
Thresholder() |
Modifier and Type | Method and Description |
---|---|
BinaryVoxels<UnsignedByteBuffer> |
threshold(VoxelsUntyped voxels)
Like
threshold(VoxelsUntyped) but using default binary-values. |
BinaryVoxels<UnsignedByteBuffer> |
threshold(VoxelsUntyped voxels,
BinaryValuesByte binaryValues)
Like
threshold(VoxelsUntyped, BinaryValuesByte, Optional, Optional) applying the
thresholding to the entire set of voxels. |
abstract BinaryVoxels<UnsignedByteBuffer> |
threshold(VoxelsUntyped voxels,
BinaryValuesByte binaryValues,
Optional<Histogram> histogram,
Optional<ObjectMask> objectMask)
Thresholds voxels (across a range of values) so that they have only binary range (i.e.
|
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 voxels) throws OperationFailedException
threshold(VoxelsUntyped)
but using default binary-values.
The default values are off(0) and on(255).
voxels
- the voxels to be thresholded.OperationFailedException
- if the thresholding operation cannot complete successfully.public BinaryVoxels<UnsignedByteBuffer> threshold(VoxelsUntyped voxels, BinaryValuesByte binaryValues) throws OperationFailedException
threshold(VoxelsUntyped, BinaryValuesByte, Optional, Optional)
applying the
thresholding to the entire set of voxels.
The thresholder does not accept a histogram as input.
voxels
- the voxels to be thresholded.binaryValues
- what binary values to be used in the output.OperationFailedException
- if the thresholding operation cannot complete successfully.public abstract BinaryVoxels<UnsignedByteBuffer> threshold(VoxelsUntyped voxels, BinaryValuesByte binaryValues, Optional<Histogram> histogram, Optional<ObjectMask> objectMask) throws OperationFailedException
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.
voxels
- 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.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.