public interface NeighborPredicate
Modifier and Type | Method and Description |
---|---|
boolean |
test(boolean inside,
KernelPointCursor point,
java.util.function.Supplier<UnsignedByteBuffer> buffer,
int zShift)
Tests if a neighbor satisfies a condition.
|
boolean test(boolean inside, KernelPointCursor point, java.util.function.Supplier<UnsignedByteBuffer> buffer, int zShift)
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).Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.