public final class ErosionKernel extends BinaryKernelMorphological
Erosion with a 3x3 or 3x3x3 kernel size.
Author:
Owen Feehan
  • Constructor Details

    • ErosionKernel

      public ErosionKernel()
      Default constructor.
  • Method Details

    • doesNeighborQualify

      protected boolean doesNeighborQualify(boolean inside, KernelPointCursor point, Supplier<UnsignedByteBuffer> buffer, int zShift)
      Checks whether a particular neighbor voxel qualifies to make the current voxel an outline voxel.
      Specified by:
      doesNeighborQualify in class BinaryKernelMorphological
      Parameters:
      inside - true iff the neighboring-point is inside the scene.
      point - the point.
      buffer - the associated buffer.
      zShift - the buffer associated with the current point.
      Returns:
      true if the neighboring-point satisfied the conditions.
    • firstCheck

      protected boolean firstCheck(KernelPointCursor point, UnsignedByteBuffer buffer)
      Description copied from class: BinaryKernelMorphological
      The first check done on the kernel center-point, before checking any neighbors.
      Specified by:
      firstCheck in class BinaryKernelMorphological
      Parameters:
      point - a kernel focused on a particular point.
      buffer - the associated buffer.
      Returns:
      true if the check passed, and false otherwise.