Class Repeat
Repeats a binary segmentation operation for a specified number of iterations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
The maximum number of iterations.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.void
setIterations
(int iterations) The maximum number of iterations.Methods inherited from class org.anchoranalysis.image.bean.segment.binary.BinarySegmentationUnary
getSegment, segment, setSegment
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
Repeat
public Repeat()
-
-
Method Details
-
segmentFromExistingSegmentation
public BinaryVoxels<UnsignedByteBuffer> segmentFromExistingSegmentation(VoxelsUntyped voxels, BinarySegmentationParameters parameters, Optional<ObjectMask> objectMask, BinarySegmentation segment) throws SegmentationFailedException Description copied from class:BinarySegmentationUnary
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.- Specified by:
segmentFromExistingSegmentation
in classBinarySegmentationUnary
- 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.
-
getIterations
public int getIterations()The maximum number of iterations.If the mask no longer has on voxels after fewer iterations, it will terminate earlier.
-
setIterations
public void setIterations(int iterations) The maximum number of iterations.If the mask no longer has on voxels after fewer iterations, it will terminate earlier.
-