Class VoxelsResizerNone
Object
VoxelsResizer
VoxelsResizerNone
Doesn't do any interpolation, just copies a single value for each voxel.
 
Specifically, each voxel in the destination buffer is copied from the corresponding (minimal in each dimension) voxel in the source-buffer.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns true if it's possible for values to be created after interpolation that aren't found in the input-image.resizeByte(VoxelBuffer<UnsignedByteBuffer> voxelsSource, VoxelBuffer<UnsignedByteBuffer> voxelsDestination, Extent extentSource, Extent extentDestination) Interpolates fromvoxelsSourcetovoxelsDestinationfor unsigned 8-bit buffers.resizeFloat(VoxelBuffer<FloatBuffer> voxelsSource, VoxelBuffer<FloatBuffer> voxelsDestination, Extent extentSource, Extent extentDestination) Interpolates fromvoxelsSourcetovoxelsDestinationfor float buffers.resizeShort(VoxelBuffer<UnsignedShortBuffer> voxelsSource, VoxelBuffer<UnsignedShortBuffer> voxelsDestination, Extent extentSource, Extent extentDestination) Interpolates fromvoxelsSourcetovoxelsDestinationfor unsigned 16-bit buffers.Methods inherited from class org.anchoranalysis.image.voxel.resizer.VoxelsResizerresize
- 
Constructor Details- 
VoxelsResizerNonepublic VoxelsResizerNone()
 
- 
- 
Method Details- 
resizeBytepublic VoxelBuffer<UnsignedByteBuffer> resizeByte(VoxelBuffer<UnsignedByteBuffer> voxelsSource, VoxelBuffer<UnsignedByteBuffer> voxelsDestination, Extent extentSource, Extent extentDestination) Description copied from class:VoxelsResizerInterpolates fromvoxelsSourcetovoxelsDestinationfor unsigned 8-bit buffers.Both buffers must be 2-dimensional, not 3-dimensional. - Specified by:
- resizeBytein class- VoxelsResizer
- Parameters:
- voxelsSource- voxels to interpolate from.
- voxelsDestination- voxels to write the interpolated values into.
- extentSource- extent corresponding to- voxelsSource.
- extentDestination- extent corresponding to- extentDestination.
- Returns:
- the destination buffer (either as passed, or a new one that was created).
 
- 
resizeShortpublic VoxelBuffer<UnsignedShortBuffer> resizeShort(VoxelBuffer<UnsignedShortBuffer> voxelsSource, VoxelBuffer<UnsignedShortBuffer> voxelsDestination, Extent extentSource, Extent extentDestination) Description copied from class:VoxelsResizerInterpolates fromvoxelsSourcetovoxelsDestinationfor unsigned 16-bit buffers.Both buffers must be 2-dimensional, not 3-dimensional. - Specified by:
- resizeShortin class- VoxelsResizer
- Parameters:
- voxelsSource- voxels to interpolate from.
- voxelsDestination- voxels to write the interpolated values into.
- extentSource- extent corresponding to- voxelsSource.
- extentDestination- extent corresponding to- extentDestination.
- Returns:
- the destination buffer (either as passed, or a new one that was created).
 
- 
resizeFloatpublic VoxelBuffer<FloatBuffer> resizeFloat(VoxelBuffer<FloatBuffer> voxelsSource, VoxelBuffer<FloatBuffer> voxelsDestination, Extent extentSource, Extent extentDestination) Description copied from class:VoxelsResizerInterpolates fromvoxelsSourcetovoxelsDestinationfor float buffers.Both buffers must be 2-dimensional, not 3-dimensional. - Specified by:
- resizeFloatin class- VoxelsResizer
- Parameters:
- voxelsSource- voxels to interpolate from.
- voxelsDestination- voxels to write the interpolated values into.
- extentSource- extent corresponding to- voxelsSource.
- extentDestination- extent corresponding to- extentDestination.
- Returns:
- the destination buffer (either as passed, or a new one that was created).
 
- 
canValueRangeChangepublic boolean canValueRangeChange()Description copied from class:VoxelsResizerReturns true if it's possible for values to be created after interpolation that aren't found in the input-image.- Specified by:
- canValueRangeChangein class- VoxelsResizer
- Returns:
- true if values can be created in the destination buffer that were not found in the source buffer.
 
 
-