Class OutlineKernelNeighborMatchValue
Object
Kernel
BinaryKernel
BinaryKernelMorphological
OutlineKernelBase
OutlineKernelNeighborMatchValue
Outputs the outline of an object-mask, but only for voxels on the exterior which neighbor a
binary-mask.
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.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionCreates for an object. -
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.void
notifyBuffer
(LocalSlices slices, int sliceIndex) Called to inform theKernel
of buffers that are currently being processed.Methods inherited from class org.anchoranalysis.image.voxel.kernel.outline.OutlineKernelBase
firstCheck
Methods inherited from class org.anchoranalysis.image.voxel.kernel.morphological.BinaryKernelMorphological
calculateAt
-
Constructor Details
-
OutlineKernelNeighborMatchValue
Creates for an object.- Parameters:
mask
- the mask defining possible neighbors, defined on the same coordinate space asobject
.
-
-
Method Details
-
notifyBuffer
Description copied from class:Kernel
Called to inform theKernel
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.
- Overrides:
notifyBuffer
in classBinaryKernelMorphological
- Parameters:
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.
-
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.
-