Class ThresholdAgainstChannel
Thresholds each voxels by comparing against another channel that has per-voxel thresholds
It sets an output voxel as high, if it is greater than or equal to the pixel in the threshold channel
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
segment
(VoxelsUntyped voxels, BinarySegmentationParameters parameters, Optional<ObjectMask> object) Performs a segmentation on voxels so that each voxel has an on or off state after the operation.void
setChannelThreshold
(ChannelProvider channelThreshold) void
setClearOutsideMask
(boolean clearOutsideMask) Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ThresholdAgainstChannel
public ThresholdAgainstChannel()
-
-
Method Details
-
segment
public BinaryVoxels<UnsignedByteBuffer> segment(VoxelsUntyped voxels, BinarySegmentationParameters parameters, Optional<ObjectMask> object) throws SegmentationFailedException Description copied from class:BinarySegmentation
Performs a segmentation on voxels so that each voxel has an on or off state after the operation.- Specified by:
segment
in classBinarySegmentation
- Parameters:
voxels
- voxels to segment.parameters
- parameters to guide the algorithm.object
- if present, segmentation only occurs inside this object.- Returns:
- voxels for a mask on the input-buffer, which may be newly-created, or may reuse the
input
voxels
, depending on implementation. - Throws:
SegmentationFailedException
- if the segmentation cannot be successfully completed.
-
getChannelThreshold
-
setChannelThreshold
-
isClearOutsideMask
public boolean isClearOutsideMask() -
setClearOutsideMask
public void setClearOutsideMask(boolean clearOutsideMask)
-