Class VoxelBufferFactory
Object
org.anchoranalysis.image.voxel.buffer.VoxelBufferFactory
public class VoxelBufferFactory extends Object
Creating voxel-buffers and arrays of voxel-buffers of various types.
- Author:
- Owen Feehan
-
Method Summary
Modifier and Type Method Description static org.anchoranalysis.image.voxel.buffer.VoxelBufferFloatallocateFloat(int capacity)Allocates a new float voxel-buffers of given size.static VoxelBuffer<FloatBuffer>[]allocateFloatArray(int size)Creates an array of float voxel-buffers of given size.static VoxelBuffer<UnsignedByteBuffer>allocateUnsignedByte(int capacity)Allocates a new unsigned byte voxel-buffer of given size.static VoxelBuffer<UnsignedByteBuffer>[]allocateUnsignedByteArray(int size)Creates an array of unsigned byte voxel-buffers of given size.static org.anchoranalysis.image.voxel.buffer.VoxelBufferUnsignedIntallocateUnsignedInt(int capacity)Allocates a new unsigned int voxel-buffers of given size.static VoxelBuffer<UnsignedIntBuffer>[]allocateUnsignedIntArray(int size)Creates an array of unsigned int voxel-buffers of given size.static VoxelBuffer<UnsignedShortBuffer>allocateUnsignedShort(int capacity)Allocates a new unsigned short voxel-buffers of given size.static VoxelBuffer<UnsignedShortBuffer>[]allocateUnsignedShortArray(int size)Creates an array of unsigned short voxel-buffers of given size.
-
Method Details
-
allocateUnsignedByte
Allocates a new unsigned byte voxel-buffer of given size.- Parameters:
capacity- the capacity (size).- Returns:
- a new
VoxelBufferwith newly allocated (non-direct) memory.
-
allocateUnsignedByteArray
Creates an array of unsigned byte voxel-buffers of given size.- Parameters:
size- the size of the array- Returns:
- a newly created array (with elements set to null).
-
allocateUnsignedShort
Allocates a new unsigned short voxel-buffers of given size.- Parameters:
capacity- the capacity (size).- Returns:
- a new
VoxelBufferwith newly allocated (non-direct) memory.
-
allocateUnsignedShortArray
Creates an array of unsigned short voxel-buffers of given size.- Parameters:
size- the size of the array- Returns:
- a newly created array (with elements set to null).
-
allocateUnsignedInt
public static org.anchoranalysis.image.voxel.buffer.VoxelBufferUnsignedInt allocateUnsignedInt(int capacity)Allocates a new unsigned int voxel-buffers of given size.- Parameters:
capacity- the capacity (size).- Returns:
- a new
VoxelBufferwith newly allocated (non-direct) memory.
-
allocateUnsignedIntArray
Creates an array of unsigned int voxel-buffers of given size.- Parameters:
size- the size of the array- Returns:
- a newly created array (with elements set to null).
-
allocateFloat
public static org.anchoranalysis.image.voxel.buffer.VoxelBufferFloat allocateFloat(int capacity)Allocates a new float voxel-buffers of given size.- Parameters:
capacity- the capacity (size).- Returns:
- a new
VoxelBufferwith newly allocated (non-direct) memory.
-
allocateFloatArray
Creates an array of float voxel-buffers of given size.- Parameters:
size- the size of the array- Returns:
- a newly created array (with elements set to null).
-