Class DilationKernel
Object
Kernel
BinaryKernel
BinaryKernelMorphological
DilationKernel
Morphological dilation with a 3x3 or 3x3x3 kernel size.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionDilationKernel
(boolean bigNeighborhood) Creates with a type of neighborhood. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
doesNeighborQualify
(boolean inside, KernelPointCursor point, Supplier<UnsignedByteBuffer> buffer, int zShift) Does a particular neighboring-point satisfy the conditions.protected boolean
firstCheck
(KernelPointCursor point, UnsignedByteBuffer buffer) The first check done on the kernel center-point, before checking any neighbors.Methods inherited from class org.anchoranalysis.image.voxel.kernel.morphological.BinaryKernelMorphological
calculateAt, notifyBuffer
-
Constructor Details
-
DilationKernel
public DilationKernel(boolean bigNeighborhood) Creates with a type of neighborhood.- Parameters:
bigNeighborhood
- if true, a big neighborhood is used 2D-plane (8-connected instead of 4-connected), but not in Z-direction (remains always 2-connected).
-
-
Method Details
-
firstCheck
Description copied from class:BinaryKernelMorphological
The first check done on the kernel center-point, before checking any neighbors.- Specified by:
firstCheck
in classBinaryKernelMorphological
- Parameters:
point
- a kernel focused on a particular point.buffer
- the associated buffer.- Returns:
- true if the check passed, and false otherwise.
-
doesNeighborQualify
protected boolean doesNeighborQualify(boolean inside, KernelPointCursor point, Supplier<UnsignedByteBuffer> buffer, int zShift) Description copied from class:BinaryKernelMorphological
Does a particular neighboring-point satisfy the conditions.- 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.
-