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
Point3iis provided. - withVoxelBuffer for when additionally a
VoxelBufferfor 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.
- The restriction on where to iterate (e.g. object-mask, bounding-box etc.)
- One or more
Voxelsto provide buffers orVoxelBuffer. - A functional-interface called a processor that is applied to each matching voxel.
-
Class Summary Class Description IterateVoxelsAll Utilities for iterating over all voxels in one or moreVoxels.IterateVoxelsBoundingBox Utilities for iterating over the subset of image voxels within a bounding-box.IterateVoxelsEqualTo LikeIterateVoxelsAllbut specifically for equal-to operations onVoxelsof typeUnsignedByteBuffer.IterateVoxelsObjectMask Utilities for iterating over the subset of voxels corresponding to an on state in anObjectMask.IterateVoxelsObjectMaskOptional Utilities for iterating over the subset of voxels corresponding to an on state in an optionalObjectMask.IterateVoxelsRemaining Utilities for iterating over remaining voxels in one or moreVoxelBuffers.MinMaxRange The minimum and maximum associated with a range of values.