Class BinarySegmentationUnary
An implementation of
BinarySegmentation that delegates to one other BinarySegmentation.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe delegateBinarySegmentationthat may be called.segment(VoxelsUntyped voxels, BinarySegmentationParameters parameters, Optional<ObjectMask> objectMask) Performs a segmentation on voxels so that each voxel has an on or off state after the operation.protected abstract BinaryVoxels<UnsignedByteBuffer> segmentFromExistingSegmentation(VoxelsUntyped voxels, BinarySegmentationParameters parameters, Optional<ObjectMask> objectMask, BinarySegmentation segment) Performs a binary-segmentation, in a similar manner toBinarySegmentation.segment(org.anchoranalysis.image.voxel.VoxelsUntyped, org.anchoranalysis.image.bean.nonbean.segment.BinarySegmentationParameters, java.util.Optional<org.anchoranalysis.image.voxel.object.ObjectMask>)but with the delegate as additional argument.voidsetSegment(BinarySegmentation segment) The delegateBinarySegmentationthat may be called.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
-
BinarySegmentationUnary
public BinarySegmentationUnary()
-
-
Method Details
-
segment
public BinaryVoxels<UnsignedByteBuffer> segment(VoxelsUntyped voxels, BinarySegmentationParameters parameters, Optional<ObjectMask> objectMask) throws SegmentationFailedException Description copied from class:BinarySegmentationPerforms a segmentation on voxels so that each voxel has an on or off state after the operation.- Specified by:
segmentin classBinarySegmentation- Parameters:
voxels- voxels to segment.parameters- parameters to guide the algorithm.objectMask- 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.
-
segmentFromExistingSegmentation
protected abstract BinaryVoxels<UnsignedByteBuffer> segmentFromExistingSegmentation(VoxelsUntyped voxels, BinarySegmentationParameters parameters, Optional<ObjectMask> objectMask, BinarySegmentation segment) throws SegmentationFailedException Performs a binary-segmentation, in a similar manner toBinarySegmentation.segment(org.anchoranalysis.image.voxel.VoxelsUntyped, org.anchoranalysis.image.bean.nonbean.segment.BinarySegmentationParameters, java.util.Optional<org.anchoranalysis.image.voxel.object.ObjectMask>)but with the delegate as additional argument.- Parameters:
voxels- voxels to segment.parameters- parameters to guide the algorithm.objectMask- if present, segmentation only occurs inside this object.segment- the delegateBinarySegmentation.- 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.
-
getSegment
The delegateBinarySegmentationthat may be called. -
setSegment
The delegateBinarySegmentationthat may be called.
-