Class ScaleAndThresholdVoxels

Object
ScaleAndThresholdVoxels

public class ScaleAndThresholdVoxels extends Object
Scales the size of a Voxels<FloatBuffer> and then thresholds it.
Author:
Owen Feehan
  • Method Details

    • scaleAndThreshold

      public static BinaryVoxels<UnsignedByteBuffer> scaleAndThreshold(Voxels<FloatBuffer> voxels, Extent targetSize, VoxelsResizer resizer, float maskMinValue)
      Scales voxels representing a mask to a target size, and then thresholds.
      Parameters:
      voxels - voxels before any scaling.
      targetSize - the desired size of the voxels after scaling.
      resizer - the interpolator to use for scaling.
      maskMinValue - the minimum voxel value to accept (and all above it) as on voxels in the mask.
      Returns:
      a mask, of size targetSize, corresponding to a scaled and thresholded voxels.