Class SliceThresholder

Object
SliceThresholder
Direct Known Subclasses:
SliceThresholderMask, SliceThresholderWithoutMask

public abstract class SliceThresholder extends Object
Segmenting a z-Stack slice-by-slice.
Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
    SliceThresholder(BinaryValuesByte binaryValuesByte)
    Creates a new SliceThresholder instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    segmentAll(Voxels<?> voxelsIn, Voxels<?> voxelsThreshold, Voxels<UnsignedByteBuffer> voxelsOut)
    Segments all slices in the input voxels.
    protected final void
    writeOffByte(int offset, UnsignedByteBuffer bufferOut)
    Writes the 'off' binary value to the output buffer at the specified offset.
    protected final void
    writeThresholdedByte(int offset, UnsignedByteBuffer bufferOut, VoxelBuffer<?> bufferIn, VoxelBuffer<?> bufferThreshold)
    Writes a thresholded value to the output buffer based on the input and threshold buffers.

    Methods inherited from class java.lang.Object

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

    • SliceThresholder

      public SliceThresholder(BinaryValuesByte binaryValuesByte)
      Creates a new SliceThresholder instance.
      Parameters:
      binaryValuesByte - The binary values to use for the output.
  • Method Details

    • segmentAll

      public abstract void segmentAll(Voxels<?> voxelsIn, Voxels<?> voxelsThreshold, Voxels<UnsignedByteBuffer> voxelsOut)
      Segments all slices in the input voxels.
      Parameters:
      voxelsIn - the input Voxels
      voxelsThreshold - the threshold Voxels
      voxelsOut - the output Voxels
    • writeOffByte

      protected final void writeOffByte(int offset, UnsignedByteBuffer bufferOut)
      Writes the 'off' binary value to the output buffer at the specified offset.
      Parameters:
      offset - the offset in the buffer
      bufferOut - the output UnsignedByteBuffer
    • writeThresholdedByte

      protected final void writeThresholdedByte(int offset, UnsignedByteBuffer bufferOut, VoxelBuffer<?> bufferIn, VoxelBuffer<?> bufferThreshold)
      Writes a thresholded value to the output buffer based on the input and threshold buffers.
      Parameters:
      offset - the offset in the buffers
      bufferOut - the output UnsignedByteBuffer
      bufferIn - the input VoxelBuffer
      bufferThreshold - the threshold VoxelBuffer