Class VoxelsResizerFactory
Object
VoxelsResizerFactory
Creates instances of
VoxelsResizer
to match particular circumstances.
This is a singleton class.
- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionbinaryResizer
(int outOfBoundsValue) AVoxelsResizer
that is suitable for resizing a binary raster-image, restricted to two possible intensity values only.static VoxelsResizerFactory
Singleton instance ofVoxelsResizerFactory
.AVoxelsResizer
that is effectively disabled, and performs no interpolation, copying a single (minimal corner) value for each voxel.
-
Method Details
-
getInstance
Singleton instance ofVoxelsResizerFactory
.- Returns:
- a single instance of this class.
-
noInterpolation
AVoxelsResizer
that is effectively disabled, and performs no interpolation, copying a single (minimal corner) value for each voxel.- Returns:
- a corresponding interpolator.
-
binaryResizer
AVoxelsResizer
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
.
-