Package org.anchoranalysis.image.voxel.iterator


package org.anchoranalysis.image.voxel.iterator
Utilities to iterate over voxel-locations in images and sub-regions of images.

The classes are named by the space over which they iterate (all voxels, within a bounding box, or object etc.)

They have static functions that indicate what kind of parameters are made available to the function called for each voxel:

  • withPoint for when only a Point3i is provided.
  • withVoxelBuffer for when additionally a VoxelBuffer for the respective-slice is provided.
  • withBuffer for when additionally a buffer (as used within VoxelBuffer) for the respective-slice is provided.

Conventionally, the static functions order their parameters.

  1. The restriction on where to iterate (e.g. object-mask, bounding-box etc.)
  2. One or more Voxels to provide buffers or VoxelBuffer.
  3. A functional-interface called a processor that is applied to each matching voxel.