Class ConvertToVoxelBuffer

Object
ConvertToVoxelBuffer

public class ConvertToVoxelBuffer extends Object
Converts a ImageProcessor to a voxel-buffer of particular data-type.
Author:
Owen Feehan
  • Method Details

    • asByte

      public static VoxelBuffer<UnsignedByteBuffer> asByte(ij.process.ImageProcessor processor)
      Convert a ImageProcessor to VoxelBuffer<UnsignedByteBuffer>
      Parameters:
      processor - the processor to convert
      Returns:
      a voxel-buffer that reuses the memory of the processor (no duplication)
    • asShort

      public static VoxelBuffer<UnsignedShortBuffer> asShort(ij.process.ImageProcessor processor)
      Convert a ImageProcessor to VoxelBuffer<UnsignedShortBuffer>
      Parameters:
      processor - the processor to convert
      Returns:
      a voxel-buffer that reuses the memory of the processor (no duplication)
    • asFloat

      public static VoxelBuffer<FloatBuffer> asFloat(ij.process.ImageProcessor processor)
      Convert a ImageProcessor to VoxelBuffer<FloatBuffer>
      Parameters:
      processor - the processor to convert
      Returns:
      a voxel-buffer that reuses the memory of the processor (no duplication)