Class CountKernelNeighborhoodMask

Object
Kernel
CountKernel
CountKernelNeighborhoodMask

public class CountKernelNeighborhoodMask extends CountKernel
The number of touching-faces of a voxel with a neighbor, so long as the neighbor is part of an ObjectMask.

i.e. the sum of all faces of a voxel that touch the face of a voxel belonging to a neighboring pixel

Author:
Owen Feehan
  • Constructor Details

    • CountKernelNeighborhoodMask

      public CountKernelNeighborhoodMask(ObjectMask objectRequireHigh)
      Create with object-mask.
      Parameters:
      objectRequireHigh - an object with coordinates relative to the BinaryVoxels the kernel is being applied on, only on whose on voxels is a neighboring voxel considered.
  • Method Details

    • doesNeighborVoxelQualify

      protected boolean doesNeighborVoxelQualify(Point3i point)
      Description copied from class: CountKernel
      Whether a particular neighboring voxel is accepted or not.
      Specified by:
      doesNeighborVoxelQualify in class CountKernel
      Parameters:
      point - the neighboring point which is queried if it qualifies or not.
      Returns:
      true iff the point qualifies.