Class BinarySegmentationThreshold
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.BinarySegmentationThreshold
public class BinarySegmentationThreshold extends BinarySegmentation
Implementation of
BinarySegmentation that performs global
thresholding.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description BinarySegmentationThreshold() -
Method Summary
Modifier and Type Method Description ThresholdergetThresholder()Performs the global thresholding.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.voidsetThresholder(Thresholder thresholder)Performs the global thresholding.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
-
BinarySegmentationThreshold
public BinarySegmentationThreshold()
-
-
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.
-
getThresholder
Performs the global thresholding. -
setThresholder
Performs the global thresholding.
-