Class OutlineKernel


public class OutlineKernel extends OutlineKernelBase
Sets voxels on the outline of an object to be on and otherwise off.

In other words, given a binary-mask, it retains any on pixel that touches an off pixel, and sets all other voxels to off.

Author:
Owen Feehan
  • Constructor Details

    • OutlineKernel

      public OutlineKernel()
  • 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.