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 aImageProcessortoVoxelBuffer<UnsignedByteBuffer>static VoxelBuffer<FloatBuffer> asFloat(ij.process.ImageProcessor processor) Convert aImageProcessortoVoxelBuffer<FloatBuffer>static VoxelBuffer<UnsignedShortBuffer> asShort(ij.process.ImageProcessor processor) Convert aImageProcessortoVoxelBuffer<UnsignedShortBuffer>
-
Method Details
-
asByte
Convert aImageProcessortoVoxelBuffer<UnsignedByteBuffer>- Parameters:
processor- the processor to convert- Returns:
- a voxel-buffer that reuses the memory of the processor (no duplication)
-
asShort
Convert aImageProcessortoVoxelBuffer<UnsignedShortBuffer>- Parameters:
processor- the processor to convert- Returns:
- a voxel-buffer that reuses the memory of the processor (no duplication)
-
asFloat
Convert aImageProcessortoVoxelBuffer<FloatBuffer>- Parameters:
processor- the processor to convert- Returns:
- a voxel-buffer that reuses the memory of the processor (no duplication)
-