Class ScaleAndThresholdVoxels
Object
ScaleAndThresholdVoxels
Scales the size of a
Voxels<FloatBuffer> and then thresholds it.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic BinaryVoxels<UnsignedByteBuffer> scaleAndThreshold(Voxels<FloatBuffer> voxels, Extent targetSize, VoxelsResizer resizer, float maskMinValue) Scales voxels representing a mask to a target size, and then thresholds.
-
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 thevoxelsafter 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 thresholdedvoxels.
-