Interface ProcessVoxelNeighborAbsolute<T>

Type Parameters:
T - result-type that can be collected after processing
All Known Implementing Classes:
ProcessVoxelNeighborAbsoluteWithSlidingBuffer

public interface ProcessVoxelNeighborAbsolute<T>
Processes a point that is a neighbor of another - includes global (absolute) coordinates for this point.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
  • 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).

      It can be called repeatedly for different points (resetting state each time).

      Parameters:
      sourceValue - the intensity value of the source voxel.
      sourceOffsetXY - the offset of the source voxel in XY.
    • notifyChangeZ

      default void notifyChangeZ(int zChange, int z)
      Notifies the processor that there has been a change in z-coordinate.
      Parameters:
      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.
    • processPoint

      void processPoint(int xChange, int yChange, int x, int y)
      Processes a particular point.
      Parameters:
      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.
    • collectResult

      T collectResult()
      Collects the result of the operation after processing neighbor voxels.
      Returns:
      the result.