Class ObjectVertex

Object
ObjectVertex

public class ObjectVertex extends Object
A vertex in a merge graph representing an object (and an associated payload).
  • Constructor Details

    • ObjectVertex

      public ObjectVertex(ObjectMask object, double payload)
      Creates a new ObjectVertex instance.
      Parameters:
      object - The ObjectMask represented by this vertex.
      payload - The payload associated with this vertex.
  • Method Details

    • numberVoxels

      public int numberVoxels()
      Gets the number of voxels in the object.

      This value is calculated lazily on the first call to this method.

      Returns:
      the number of voxels in the ObjectMask
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getObject

      public ObjectMask getObject()
      The ObjectMask represented by this vertex.
    • getPayload

      public double getPayload()
      The payload associated with this vertex.