public final class DilationKernel extends BinaryKernelMorphological
Constructor and Description |
---|
DilationKernel(boolean bigNeighborhood)
Creates with a type of neighborhood.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
doesNeighborQualify(boolean inside,
KernelPointCursor point,
java.util.function.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.
|
calculateAt, notifyBuffer
public DilationKernel(boolean bigNeighborhood)
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).protected boolean firstCheck(KernelPointCursor point, UnsignedByteBuffer buffer)
BinaryKernelMorphological
firstCheck
in class BinaryKernelMorphological
point
- a kernel focused on a particular point.buffer
- the associated buffer.protected boolean doesNeighborQualify(boolean inside, KernelPointCursor point, java.util.function.Supplier<UnsignedByteBuffer> buffer, int zShift)
BinaryKernelMorphological
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.