Class ConvertToVoxelBuffer
Object
ConvertToVoxelBuffer
Converts a
ImageProcessor
to a voxel-buffer of particular data-type.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic VoxelBuffer
<UnsignedByteBuffer> asByte
(ij.process.ImageProcessor processor) Convert aImageProcessor
toVoxelBuffer<UnsignedByteBuffer>
static VoxelBuffer
<FloatBuffer> asFloat
(ij.process.ImageProcessor processor) Convert aImageProcessor
toVoxelBuffer<FloatBuffer>
static VoxelBuffer
<UnsignedShortBuffer> asShort
(ij.process.ImageProcessor processor) Convert aImageProcessor
toVoxelBuffer<UnsignedShortBuffer>
-
Method Details
-
asByte
Convert aImageProcessor
toVoxelBuffer<UnsignedByteBuffer>
- Parameters:
processor
- the processor to convert- Returns:
- a voxel-buffer that reuses the memory of the processor (no duplication)
-
asShort
Convert aImageProcessor
toVoxelBuffer<UnsignedShortBuffer>
- Parameters:
processor
- the processor to convert- Returns:
- a voxel-buffer that reuses the memory of the processor (no duplication)
-
asFloat
Convert aImageProcessor
toVoxelBuffer<FloatBuffer>
- Parameters:
processor
- the processor to convert- Returns:
- a voxel-buffer that reuses the memory of the processor (no duplication)
-