public class OutlineKernelNeighborMatchValue extends OutlineKernelBase
Specifically, voxels on the object are set only to on if they neighbor a off voxel and this neighboring voxel is on in the binary-mask. Otherwise a voxel is off.
Constructor and Description |
---|
OutlineKernelNeighborMatchValue(BinaryVoxels<UnsignedByteBuffer> mask)
Creates for an object.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
doesNeighborQualify(boolean inside,
KernelPointCursor point,
java.util.function.Supplier<UnsignedByteBuffer> buffer,
int zShift)
Checks whether a particular neighbor voxel qualifies to make the current voxel an outline
voxel.
|
void |
notifyBuffer(LocalSlices slices,
int sliceIndex)
Called to inform the
Kernel of buffers that are currently being processed. |
firstCheck
calculateAt
public OutlineKernelNeighborMatchValue(BinaryVoxels<UnsignedByteBuffer> mask)
mask
- the mask defining possible neighbors, defined on the same coordinate space as
object
.public void notifyBuffer(LocalSlices slices, int sliceIndex)
Kernel
Kernel
of buffers that are currently being processed.
Only a single z-slice is processed at a particular time.
This should be repeatedly called each time the focus changes to a different z-slice.
notifyBuffer
in class BinaryKernelMorphological
slices
- slices that can be processed by the kernel, localized to a current local
area of focus.sliceIndex
- the global z-index of the slice that is currently the focus of the kernel.protected boolean doesNeighborQualify(boolean inside, KernelPointCursor point, java.util.function.Supplier<UnsignedByteBuffer> buffer, int zShift)
doesNeighborQualify
in class BinaryKernelMorphological
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.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.