Class FromInt
Object
FromInt
- All Implemented Interfaces:
SliceBufferIndex<UnsignedIntBuffer>
Implementation of
SliceBufferIndex
with voxels of type unsigned int.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic SliceBufferIndex
<UnsignedIntBuffer> createInitialized
(Extent extent) Create a buffer of a particular size, that has been initialized.static SliceBufferIndex
<UnsignedIntBuffer> createUninitialized
(Extent extent) Create a buffer of a particular size, that has not been initialized.extent()
The size of each buffer.void
replaceSlice
(int z, VoxelBuffer<UnsignedIntBuffer> sliceToAssign) Replaces the voxels for a particular z-slice.slice
(int z) AVoxelBuffer
corresponding to a particular z-slice.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.anchoranalysis.image.voxel.buffer.slice.SliceBufferIndex
iterateOverSlices, iterateOverSlicesAndOffsets, sliceBuffer
-
Method Details
-
createInitialized
Create a buffer of a particular size, that has been initialized.- Parameters:
extent
- the size of buffer to create.- Returns:
- the newly created buffer.
-
createUninitialized
Create a buffer of a particular size, that has not been initialized.- Parameters:
extent
- the size of buffer to create.- Returns:
- the newly created buffer.
-
replaceSlice
Description copied from interface:SliceBufferIndex
Replaces the voxels for a particular z-slice.- Specified by:
replaceSlice
in interfaceSliceBufferIndex<UnsignedIntBuffer>
- Parameters:
z
- the index of z-slice to replace.sliceToAssign
- the voxels for the new slice to assign.
-
slice
Description copied from interface:SliceBufferIndex
AVoxelBuffer
corresponding to a particular z-slice.- Specified by:
slice
in interfaceSliceBufferIndex<UnsignedIntBuffer>
- Parameters:
z
- the index (beginning at 0) of all z-slices.- Returns:
- the corresponding buffer for
z
.
-
extent
Description copied from interface:SliceBufferIndex
The size of each buffer.- Specified by:
extent
in interfaceSliceBufferIndex<UnsignedIntBuffer>
- Returns:
- the size.
-