Class ConvertToVoxelBuffer

Object
org.anchoranalysis.io.imagej.convert.ConvertToVoxelBuffer

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

    Modifier and Type Method Description
    static org.anchoranalysis.image.voxel.buffer.VoxelBuffer<org.anchoranalysis.image.voxel.buffer.primitive.UnsignedByteBuffer> asByte​(ij.process.ImageProcessor processor)
    Convert a ImageProcessor to VoxelBuffer<UnsignedByteBuffer>
    static org.anchoranalysis.image.voxel.buffer.VoxelBuffer<FloatBuffer> asFloat​(ij.process.ImageProcessor processor)
    Convert a ImageProcessor to VoxelBuffer<FloatBuffer>
    static org.anchoranalysis.image.voxel.buffer.VoxelBuffer<org.anchoranalysis.image.voxel.buffer.primitive.UnsignedShortBuffer> asShort​(ij.process.ImageProcessor processor)
    Convert a ImageProcessor to VoxelBuffer<UnsignedShortBuffer>

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • asByte

      public static org.anchoranalysis.image.voxel.buffer.VoxelBuffer<org.anchoranalysis.image.voxel.buffer.primitive.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 org.anchoranalysis.image.voxel.buffer.VoxelBuffer<org.anchoranalysis.image.voxel.buffer.primitive.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 org.anchoranalysis.image.voxel.buffer.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)