Modifier and Type | Method and Description |
---|---|
static RunningSum |
calculateRunningSum(Mask mask,
Voxels<UnsignedByteBuffer> voxelsIntensity)
Calculates the sum and count across voxels intensity that correspond to on voxels on a
mask
|
static <T> void |
withBuffer(Mask mask,
Voxels<T> voxels,
ProcessBufferUnary<T> process)
Iterate over each voxel in a mask - with an associated buffer for each slice from a voxel-bo
|
public static <T> void withBuffer(Mask mask, Voxels<T> voxels, ProcessBufferUnary<T> process)
T
- buffer-type for voxelsmask
- the mask is used as a condition on what voxels to iterate i.e. only voxels within
these boundsvoxels
- voxels to iterate over (if the corresponding mask voxel is on)process
- is called for each voxel within the bounding-box using global
coordinates.public static RunningSum calculateRunningSum(Mask mask, Voxels<UnsignedByteBuffer> voxelsIntensity)
The mask
must have equal extent to voxelsIntensity
voxelsIntensity
- the voxels whose intensity we wish to find the mean of (subject to
mask
mask
- only voxels who correspond to an on voxels in the mask are includedCopyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.