Class Repeat

Object
AnchorBean<BinarySegmentation>
InitializableBean<BinarySegmentation, ImageInitialization>
ImageBean<BinarySegmentation>
SegmentationBean<BinarySegmentation>
BinarySegmentation
BinarySegmentationUnary
Repeat

public class Repeat extends BinarySegmentationUnary
Repeats a binary segmentation operation for a specified number of iterations.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The maximum number of iterations.
    BinaryVoxels<UnsignedByteBuffer>
    segmentFromExistingSegmentation(VoxelsUntyped voxels, BinarySegmentationParameters parameters, Optional<ObjectMask> objectMask, BinarySegmentation segment)
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Repeat

      public Repeat()
  • Method Details

    • segmentFromExistingSegmentation

      public BinaryVoxels<UnsignedByteBuffer> segmentFromExistingSegmentation(VoxelsUntyped voxels, BinarySegmentationParameters parameters, Optional<ObjectMask> objectMask, BinarySegmentation segment) throws SegmentationFailedException
      Specified by:
      segmentFromExistingSegmentation in class BinarySegmentationUnary
      Throws:
      SegmentationFailedException
    • 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.