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