Class BinarySegmentationThreshold


public class BinarySegmentationThreshold
extends BinarySegmentation
Implementation of BinarySegmentation that performs global thresholding.
Author:
Owen Feehan
  • Constructor Details

  • 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 SegmentationFailedException
      Description copied from class: BinarySegmentation
      Performs a segmentation on voxels so that each voxel has an on or off state after the operation.
      Specified by:
      segment in class BinarySegmentation
      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

      public Thresholder getThresholder()
      Performs the global thresholding.
    • setThresholder

      public void setThresholder​(Thresholder thresholder)
      Performs the global thresholding.