public class WalkPredicate extends Object
NeighborPredicate
to determine if a
neighbor satisfies conditions.
As soon as any neighbor matches the predicate, a true value is returned for the voxel. A false is returned only if no neighbors match the predicate.
Constructor and Description |
---|
WalkPredicate(KernelPointCursor point,
NeighborPredicate predicate,
boolean bigNeighborhood) |
Modifier and Type | Method and Description |
---|---|
boolean |
walk(UnsignedByteBuffer buffer,
BufferRetriever bufferRetriever)
Do any neighboring voxels in any direction satisfy the predicate?
|
public WalkPredicate(KernelPointCursor point, NeighborPredicate predicate, boolean bigNeighborhood)
public boolean walk(UnsignedByteBuffer buffer, BufferRetriever bufferRetriever)
buffer
- the buffer associated with the current slicebufferRetriever
- a means of retrieving buffers for other slices, accepting a relative
shift compared to current slice (e.g. -1, +1) etc.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.