Class MaskFromObjects

Object
MaskFromObjects

public class MaskFromObjects extends Object
Creates a Mask from one or more ObjectMasks.
Author:
Owen Feehan
  • Method Details

    • createFromObjects

      public static Mask createFromObjects(ObjectCollection objects, Dimensions dimensions, BinaryValuesInt outValues)
      Create a Mask corresponding to all on voxels in an ObjectCollection.
      Parameters:
      objects - the objects.
      dimensions - the overall dimensions of the scene, in which objects should reside, and which forms the size of the Mask.
      outValues - what binary-values to use in the created Mask.
      Returns:
      the created Mask.
    • createFromNotObjects

      public static Mask createFromNotObjects(ObjectCollection objects, Dimensions dimensions, BinaryValuesInt outValues)
      Create a Mask corresponding to all off voxels in an ObjectCollection.
      Parameters:
      objects - the objects.
      dimensions - the overall dimensions of the scene, in which objects should reside, and which forms the size of the Mask.
      outValues - what binary-values to use in the created Mask.
      Returns:
      the created Mask.