Class VoxelsResizerImageJ

Object
VoxelsResizer
VoxelsResizerImageJ

public class VoxelsResizerImageJ extends VoxelsResizer
Resizes with linear interpolation as implemented in ImageJ.
Author:
Owen Feehan
  • Constructor Details

    • VoxelsResizerImageJ

      public VoxelsResizerImageJ()
  • Method Details

    • canValueRangeChange

      public boolean canValueRangeChange()
      Description copied from class: VoxelsResizer
      Returns true if it's possible for values to be created after interpolation that aren't found in the input-image.
      Specified by:
      canValueRangeChange in class VoxelsResizer
      Returns:
      true if values can be created in the destination buffer that were not found in the source buffer.
    • resizeByte

      public VoxelBuffer<UnsignedByteBuffer> resizeByte(VoxelBuffer<UnsignedByteBuffer> voxelsSource, VoxelBuffer<UnsignedByteBuffer> voxelsDestination, Extent extentSource, Extent extentDestination)
      Description copied from class: VoxelsResizer
      Interpolates from voxelsSource to voxelsDestination for unsigned 8-bit buffers.

      Both buffers must be 2-dimensional, not 3-dimensional.

      Specified by:
      resizeByte in 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).
    • resizeShort

      public VoxelBuffer<UnsignedShortBuffer> resizeShort(VoxelBuffer<UnsignedShortBuffer> voxelsSource, VoxelBuffer<UnsignedShortBuffer> voxelsDestination, Extent extentSource, Extent extentDestination)
      Description copied from class: VoxelsResizer
      Interpolates from voxelsSource to voxelsDestination for unsigned 16-bit buffers.

      Both buffers must be 2-dimensional, not 3-dimensional.

      Specified by:
      resizeShort in 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).
    • resizeFloat

      public VoxelBuffer<FloatBuffer> resizeFloat(VoxelBuffer<FloatBuffer> voxelsSource, VoxelBuffer<FloatBuffer> voxelsDestination, Extent extentSource, Extent extentDestination)
      Description copied from class: VoxelsResizer
      Interpolates from voxelsSource to voxelsDestination for float buffers.

      Both buffers must be 2-dimensional, not 3-dimensional.

      Specified by:
      resizeFloat in 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).