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.
- The restriction on where to iterate (e.g. object-mask, bounding-box etc.)
- One or more
Voxels
to provide buffers orVoxelBuffer
. - A functional-interface called a processor that is applied to each matching voxel.
-
ClassesClassDescriptionUtilities for iterating over all voxels in one or more
Voxels
.Utilities for iterating over the subset of image voxels within a bounding-box.LikeIterateVoxelsAll
but specifically for equal-to operations onVoxels
of typeUnsignedByteBuffer
.Utilities for iterating over the subset of voxels corresponding to an on state in anObjectMask
.Utilities for iterating over the subset of voxels corresponding to an on state in an optionalObjectMask
.Utilities for iterating over remaining voxels in one or moreVoxelBuffer
s.The minimum and maximum associated with a range of values.