Class ColoredObject

Object
ColoredObject

public final class ColoredObject extends Object
An ObjectMask with an associated color.
Author:
Owen Feehan
  • Constructor Details

    • ColoredObject

      public ColoredObject(ObjectMask object, RGBColor color)
      Creates a new ColoredObject instance.
      Parameters:
      object - The object-mask.
      color - The RGB color.
  • Method Details

    • flattenZ

      public ColoredObject flattenZ()
      A maximum-intensity projection.

      This flattens across z-dimension, setting a voxel to on if it is on in any one slice.

      This is an immutable operation.

      Returns:
      a new ColoredObject flattened in Z dimension.
    • getObject

      public ObjectMask getObject()
      The object-mask.
    • getColor

      public RGBColor getColor()
      The RGB color.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object