public class IterateVoxelsNeighbors extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
callEachPointInNeighborhood(Point3i sourcePoint,
Neighborhood neighborhood,
boolean do3D,
ProcessVoxelNeighbor<T> process,
int sourceValue,
int sourceOffsetXY)
Iterate over each point in the neighborhood of an existing point.
|
public static <T> T callEachPointInNeighborhood(Point3i sourcePoint, Neighborhood neighborhood, boolean do3D, ProcessVoxelNeighbor<T> process, int sourceValue, int sourceOffsetXY)
It also sets the source in process
.
sourcePoint
- the point to iterate over its neighborhood.neighborhood
- a definition of what constitutes the neighborhood.do3D
- whether to iterate in 2D or 3D.process
- is called for each voxel in the neighborhood of the source-point.sourceValue
- the value in the source buffer at sourcePoint
.sourceOffsetXY
- the offset of the source buffer corresponding to sourcePoint
.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.