Interface NeighborPredicate
public interface NeighborPredicate
A predicate on whether a neighbor satisfies a condition in relation to a particular point that it
neighbors.
- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionboolean
test
(boolean inside, KernelPointCursor point, Supplier<UnsignedByteBuffer> buffer, int zShift) Tests if a neighbor satisfies a condition.
-
Method Details
-
test
boolean test(boolean inside, KernelPointCursor point, Supplier<UnsignedByteBuffer> buffer, int zShift) Tests if a neighbor satisfies a condition.- Parameters:
inside
- if true, the point is inside the image, and the buffer buffer is read. if false, the point is treated as outside the image.point
- the neighboring point.buffer
- a buffer describing the slice on which the neighbor lies.zShift
- the distance in z-dimension of the neighboring point from the source-point (around which neighbors exist).- Returns:
- true if the condition is satisfied, false otherwise.
-