Interface ProcessChangedPointAbsoluteMasked<T>
- Type Parameters:
T
- result-type that can be collected after processing.
public interface ProcessChangedPointAbsoluteMasked<T>
Processes a point which has been translated (changed) relative to another point - and includes
global coordinates and includes an object-mask buffer.
-
Method Summary
Modifier and TypeMethodDescriptionCollects 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.
-
Method Details
-
initSource
void initSource(int sourceValue, int sourceOffsetXY) The value and offset for the source point (around which we process neighbors).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).
- Parameters:
sourceValue
- the value of the source pixel.sourceOffsetXY
- the offset of the source pixel in XY.
-
notifyChangeZ
Notifies the processor that there has been a change in z-coordinate.- Parameters:
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.
-
processPoint
void processPoint(int xChange, int yChange, int x, int y, int objectMaskOffset) Processes a particular point.- Parameters:
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.
-
collectResult
T collectResult()Collects the result of the operation after processing neighbor voxels.- Returns:
- the result.
-