Class VoxelsResizerFactory

Object
VoxelsResizerFactory

public class VoxelsResizerFactory extends Object
Creates instances of VoxelsResizer to match particular circumstances.

This is a singleton class.

Author:
Owen Feehan
  • Method Details

    • getInstance

      public static VoxelsResizerFactory getInstance()
      Singleton instance of VoxelsResizerFactory.
      Returns:
      a single instance of this class.
    • noInterpolation

      public VoxelsResizer noInterpolation()
      A VoxelsResizer that is effectively disabled, and performs no interpolation, copying a single (minimal corner) value for each voxel.
      Returns:
      a corresponding interpolator.
    • binaryResizer

      public VoxelsResizer binaryResizer(int outOfBoundsValue)
      A VoxelsResizer that is suitable for resizing a binary raster-image, restricted to two possible intensity values only.
      Parameters:
      outOfBoundsValue - a value used to represent out-of-bounds voxels to provide context for the interpolation at boundaries. This should be one of the two permitted binary states.
      Returns:
      a corresponding VoxelsResizer.