Class MaskFactory

Object
MaskFactory

public class MaskFactory extends Object
Helper routines to create new instances of Mask.
Author:
Owen Feehan
  • Method Details

    • createMaskOff

      public static Mask createMaskOff(Dimensions dimensions)
      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

      public static Mask createMaskOff(Dimensions dimensions, BinaryValuesInt binaryValues)
      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

      public static Mask createMaskOn(Dimensions dimensions)
      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

      public static Mask createMaskOn(Dimensions dimensions, BinaryValuesInt binaryValues)
      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.