Class BinarySegmentationUnary
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,ImageInitialization>
org.anchoranalysis.image.bean.ImageBean<T>
org.anchoranalysis.image.bean.segment.SegmentationBean<BinarySegmentation>
org.anchoranalysis.image.bean.segment.binary.BinarySegmentation
org.anchoranalysis.image.bean.segment.binary.BinarySegmentationUnary
public abstract class BinarySegmentationUnary extends BinarySegmentation
An implementation of
BinarySegmentation that delegates to one other BinarySegmentation.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description BinarySegmentationUnary() -
Method Summary
Modifier and Type Method Description BinarySegmentationgetSegment()The delegateBinarySegmentationthat may be called.org.anchoranalysis.image.voxel.binary.BinaryVoxels<org.anchoranalysis.image.voxel.buffer.primitive.UnsignedByteBuffer>segment(org.anchoranalysis.image.voxel.VoxelsUntyped voxels, BinarySegmentationParameters parameters, Optional<org.anchoranalysis.image.voxel.object.ObjectMask> objectMask)Performs a segmentation on voxels so that each voxel has an on or off state after the operation.protected abstract org.anchoranalysis.image.voxel.binary.BinaryVoxels<org.anchoranalysis.image.voxel.buffer.primitive.UnsignedByteBuffer>segmentFromExistingSegmentation(org.anchoranalysis.image.voxel.VoxelsUntyped voxels, BinarySegmentationParameters parameters, Optional<org.anchoranalysis.image.voxel.object.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 org.anchoranalysis.image.voxel.binary.BinaryVoxels<org.anchoranalysis.image.voxel.buffer.primitive.UnsignedByteBuffer> segment(org.anchoranalysis.image.voxel.VoxelsUntyped voxels, BinarySegmentationParameters parameters, Optional<org.anchoranalysis.image.voxel.object.ObjectMask> objectMask) throws SegmentationFailedExceptionDescription 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 org.anchoranalysis.image.voxel.binary.BinaryVoxels<org.anchoranalysis.image.voxel.buffer.primitive.UnsignedByteBuffer> segmentFromExistingSegmentation(org.anchoranalysis.image.voxel.VoxelsUntyped voxels, BinarySegmentationParameters parameters, Optional<org.anchoranalysis.image.voxel.object.ObjectMask> objectMask, BinarySegmentation segment) throws SegmentationFailedExceptionPerforms 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.
-