Class FromShort
Object
FromShort
- All Implemented Interfaces:
SliceBufferIndex<UnsignedShortBuffer>
Implementation of
SliceBufferIndex with voxels of type unsigned short.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic SliceBufferIndex<UnsignedShortBuffer> createInitialized(Extent extent) Create a buffer of a particular size, that has been initialized.static SliceBufferIndex<UnsignedShortBuffer> createUninitialized(Extent extent) Create a buffer of a particular size, that has not been initialized.extent()The size of each buffer.voidreplaceSlice(int z, VoxelBuffer<UnsignedShortBuffer> sliceToAssign) Replaces the voxels for a particular z-slice.slice(int z) AVoxelBuffercorresponding to a particular z-slice.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:SliceBufferIndexReplaces the voxels for a particular z-slice.- Specified by:
replaceSlicein interfaceSliceBufferIndex<UnsignedShortBuffer>- Parameters:
z- the index of z-slice to replace.sliceToAssign- the voxels for the new slice to assign.
-
slice
Description copied from interface:SliceBufferIndexAVoxelBuffercorresponding to a particular z-slice.- Specified by:
slicein interfaceSliceBufferIndex<UnsignedShortBuffer>- Parameters:
z- the index (beginning at 0) of all z-slices.- Returns:
- the corresponding buffer for
z.
-
extent
Description copied from interface:SliceBufferIndexThe size of each buffer.- Specified by:
extentin interfaceSliceBufferIndex<UnsignedShortBuffer>- Returns:
- the size.
-