Class WalkRunnable
Object
org.anchoranalysis.image.voxel.iterator.neighbor.kernel.WalkRunnable
public class WalkRunnable extends Object
Walks in X, Y and Z directions from a point, executing a
Runnable if the neighbor
satisfies conditions.
The conditions are:
- An associated buffer for the point must have an off value, or if its outside
the scene, the
KernelApplicationParametersparameters must indicate off. - An additional predicate around the point.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description WalkRunnable(KernelPointCursor point, Predicate<Point3i> additionalPredicate, Runnable executeWhenSatisfied) -
Method Summary
Modifier and Type Method Description voidwalk(UnsignedByteBuffer buffer, BufferRetriever bufferRetriever)Walks in X and Y direction, and Z direction if enabled.
-
Constructor Details
-
WalkRunnable
public WalkRunnable(KernelPointCursor point, Predicate<Point3i> additionalPredicate, Runnable executeWhenSatisfied)
-
-
Method Details
-
walk
Walks in X and Y direction, and Z direction if enabled.- Parameters:
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.
-