T
- result-type that can be collected after processingpublic interface ProcessVoxelNeighborAbsolute<T>
Modifier and Type | Method and Description |
---|---|
T |
collectResult()
Collects the result of the operation after processing neighbor voxels.
|
void |
initSource(int sourceValue,
int sourceOffsetXY)
The value and offset for the source point (around which we process neighbors).
|
default void |
notifyChangeZ(int zChange,
int z)
Notifies the processor that there has been a change in z-coordinate.
|
void |
processPoint(int xChange,
int yChange,
int x,
int y)
Processes a particular point.
|
void initSource(int sourceValue, int sourceOffsetXY)
This function should always be called before processPoint(int, int, int, int)
.
It can be called repeatedly for different points (resetting state each time).
sourceValue
- the intensity value of the source voxel.sourceOffsetXY
- the offset of the source voxel in XY.default void notifyChangeZ(int zChange, int z)
zChange
- the change in the Z-dimension to reach this neighbor relative to the source
coordinate.z
- the Z-dimension coordinates for this point (the neighboring point) in global
(absolute) terms i.e. not relative to a bounding-box.void processPoint(int xChange, int yChange, int x, int y)
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.x
- the X-dimension coordinates for this point (the neighboring point) in global
(absolute) terms i.e. not relative to a bounding-box.y
- the Y-dimension coordinates for this point (the neighboring point) in global
(absolute) terms i.e. not relative to a bounding-box.T collectResult()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.