Class VoxelsResizerFactory
Object
org.anchoranalysis.image.voxel.resizer.VoxelsResizerFactory
public class VoxelsResizerFactory extends Object
Creates instances of
VoxelsResizer to match particular circumstances.
This is a singleton class.
- Author:
- Owen Feehan
-
Method Summary
Modifier and Type Method Description VoxelsResizerbinaryResizer(int outOfBoundsValue)AVoxelsResizerthat is suitable for resizing a binary raster-image, restricted to two possible intensity values only.static VoxelsResizerFactorygetInstance()Singleton instance ofVoxelsResizerFactory.VoxelsResizernoInterpolation()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.
-