Class ThresholdAgainstChannel
Object
AnchorBean<BinarySegmentation>
InitializableBean<BinarySegmentation, ImageInitialization>
ImageBean<BinarySegmentation>
SegmentationBean<BinarySegmentation>
BinarySegmentation
ThresholdAgainstChannel
public class ThresholdAgainstChannel
extends BinarySegmentation
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 TypeMethodDescriptionChannelProviderbooleanBinaryVoxels<UnsignedByteBuffer> voidsetChannelThreshold(ChannelProvider channelThreshold) voidsetClearOutsideMask(boolean clearOutsideMask) Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods 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 - Specified by:
segmentin classBinarySegmentation- Throws:
SegmentationFailedException
-
getChannelThreshold
public ChannelProvider getChannelThreshold() -
setChannelThreshold
public void setChannelThreshold(ChannelProvider channelThreshold) -
isClearOutsideMask
public boolean isClearOutsideMask() -
setClearOutsideMask
public void setClearOutsideMask(boolean clearOutsideMask)
-