T
- result-type that can be collected after processing.public interface ProcessChangedPointAbsoluteMasked<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,
UnsignedByteBuffer objectMaskBuffer)
Notifies the processor that there has been a change in z-coordinate.
|
void |
processPoint(int xChange,
int yChange,
int x,
int y,
int objectMaskOffset)
Processes a particular point.
|
void initSource(int sourceValue, int sourceOffsetXY)
This function should always be called before processPoint(int, int, int, int, int)
.
It can be called repeatedly for different points (resetting state each time).
sourceValue
- the value of the source pixel.sourceOffsetXY
- the offset of the source pixel in XY.default void notifyChangeZ(int zChange, int z, UnsignedByteBuffer objectMaskBuffer)
zChange
- the relative change in the Z-dimension (relative to the original coordinate
value).z
- the absolute value in the Z-dimension of the point currently being processed.objectMaskBuffer
- the voxels for the particular z-slice of the object-mask being
processed.void processPoint(int xChange, int yChange, int x, int y, int objectMaskOffset)
xChange
- the relative change in the X-dimension (relative to the original coordinate
value).yChange
- the relative change in the Y-dimension (relative to the original coordinate
value).x
- the absolute value in the X-dimension of the point currently being processed.y
- the absolute value in the Y-dimension of the point currently being processed.objectMaskOffset
- the offset in the respective z-slice buffer for the object-mask being
processed.T collectResult()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.