Class OutlineKernel
Object
Kernel
BinaryKernel
BinaryKernelMorphological
OutlineKernelBase
OutlineKernel
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.Methods inherited from class org.anchoranalysis.image.voxel.kernel.outline.OutlineKernelBase
firstCheck
Methods inherited from class org.anchoranalysis.image.voxel.kernel.morphological.BinaryKernelMorphological
calculateAt, notifyBuffer
-
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 classBinaryKernelMorphological
- 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.
-