Class ScaleAndThresholdVoxels
Object
org.anchoranalysis.image.inference.segment.ScaleAndThresholdVoxels
public class ScaleAndThresholdVoxels extends Object
Scales the size of a
Voxels<FloatBuffer> and then thresholds it.- Author:
- Owen Feehan
-
Method Summary
Modifier and Type Method Description static org.anchoranalysis.image.voxel.binary.BinaryVoxels<org.anchoranalysis.image.voxel.buffer.primitive.UnsignedByteBuffer>scaleAndThreshold(org.anchoranalysis.image.voxel.Voxels<FloatBuffer> voxels, org.anchoranalysis.spatial.box.Extent targetSize, org.anchoranalysis.image.voxel.resizer.VoxelsResizer resizer, float maskMinValue)Scales voxels representing a mask to a target size, and then thresholds.
-
Method Details
-
scaleAndThreshold
public static org.anchoranalysis.image.voxel.binary.BinaryVoxels<org.anchoranalysis.image.voxel.buffer.primitive.UnsignedByteBuffer> scaleAndThreshold(org.anchoranalysis.image.voxel.Voxels<FloatBuffer> voxels, org.anchoranalysis.spatial.box.Extent targetSize, org.anchoranalysis.image.voxel.resizer.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.
-