public class ThresholdAgainstChannel extends BinarySegmentation
It sets an output voxel as high, if it is greater than or equal to the pixel in the threshold channel
Constructor and Description |
---|
ThresholdAgainstChannel() |
Modifier and Type | Method and Description |
---|---|
ChannelProvider |
getChannelThreshold() |
boolean |
isClearOutsideMask() |
BinaryVoxels<UnsignedByteBuffer> |
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) |
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public BinaryVoxels<UnsignedByteBuffer> segment(VoxelsUntyped voxels, BinarySegmentationParameters parameters, Optional<ObjectMask> object) throws SegmentationFailedException
BinarySegmentation
segment
in class BinarySegmentation
voxels
- voxels to segment.parameters
- parameters to guide the algorithm.object
- if present, segmentation only occurs inside this object.voxels
, depending on implementation.SegmentationFailedException
- if the segmentation cannot be successfully completed.public ChannelProvider getChannelThreshold()
public void setChannelThreshold(ChannelProvider channelThreshold)
public boolean isClearOutsideMask()
public void setClearOutsideMask(boolean clearOutsideMask)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.