T
- result-type that can be collected after processingpublic interface ProcessVoxelNeighbor<T>
It assumes there is an associated sliding buffer containing voxel-values.
Modifier and Type | Method and Description |
---|---|
T |
collectResult()
Collects the result of the operation after processing neighbor pixels.
|
void |
initSource(Point3i pointSource,
int sourceValue,
int sourceOffsetXY)
Specify the source-point (of which all the processed points are neighbors).
|
default boolean |
notifyChangeZ(int zChange)
Notifies the processor that there has been a change in z-coordinate.
|
void |
processPoint(int xChange,
int yChange)
Processes a particular point.
|
void initSource(Point3i pointSource, int sourceValue, int sourceOffsetXY)
This must be called before any calls to processPoint(int, int)
.
pointSource
- the source point in global coordinates.sourceValue
- the value of the source pixel (in the associated sliding buffer).sourceOffsetXY
- the offset of the source pixel in XY (in the associated sliding
buffer).default boolean notifyChangeZ(int zChange)
zChange
- the change in the Z-dimension to reach this neighbor relative to the source
coordinate.void processPoint(int xChange, int yChange)
xChange
- the change in x-dimension to reach this neighbor relative to the source
coordinate.yChange
- the change in y-dimension to reach this neighbor relative to the source
coordinate.T collectResult()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.