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) AVoxelsResizerthat is suitable for resizing a binary raster-image, restricted to two possible intensity values only.static VoxelsResizerFactorySingleton instance ofVoxelsResizerFactory.AVoxelsResizerthat 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
AVoxelsResizerthat is effectively disabled, and performs no interpolation, copying a single (minimal corner) value for each voxel.- Returns:
- a corresponding interpolator.
-
binaryResizer
AVoxelsResizerthat 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.
-