Class MaskFactory
Object
MaskFactory
Helper routines to create new instances of
Mask
.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic Mask
createMaskOff
(Dimensions dimensions) Creates a binary-mask for specific dimensions with all voxels set to off.static Mask
createMaskOff
(Dimensions dimensions, BinaryValuesInt binaryValues) Creates a binary-mask for specific dimensions with all voxels set to off.static Mask
createMaskOn
(Dimensions dimensions) Creates a binary-mask for specific dimensions with all voxels set to on.static Mask
createMaskOn
(Dimensions dimensions, BinaryValuesInt binaryValues) Creates a binary-mask for specific dimensions with all voxels set to on.
-
Method Details
-
createMaskOff
Creates a binary-mask for specific dimensions with all voxels set to off.The mask uses default binary-values of off (0) and on (255).
- Parameters:
dimensions
- the dimensions to create the mask for.- Returns:
- a newly created binary-mask with newly-created buffers.
-
createMaskOff
Creates a binary-mask for specific dimensions with all voxels set to off.- Parameters:
dimensions
- the dimensions to create the mask for.binaryValues
- binary-values.- Returns:
- a newly created binary-mask with newly-created buffers.
-
createMaskOn
Creates a binary-mask for specific dimensions with all voxels set to on.The mask uses default binary-values of off (0) and on (255).
- Parameters:
dimensions
- the dimensions to create the mask for.- Returns:
- a newly created binary-mask with newly-created buffers.
-
createMaskOn
Creates a binary-mask for specific dimensions with all voxels set to on.- Parameters:
dimensions
- the dimensions to create the mask for.binaryValues
- binary-values.- Returns:
- a newly created binary-mask with newly-created buffers.
-