public class ScaleAndThresholdVoxels extends Object
Voxels<FloatBuffer>
and then thresholds it.Modifier and Type | Method and Description |
---|---|
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.
|
public static BinaryVoxels<UnsignedByteBuffer> scaleAndThreshold(Voxels<FloatBuffer> voxels, Extent targetSize, VoxelsResizer resizer, float maskMinValue)
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.targetSize
, corresponding to a scaled and thresholded voxels
.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.