Packages

class RLEMasks extends SegmentationMasks

A mask of regions defined by RLE. The masked object(s) should have the same label. This class corresponds to "uncompressed RLE" of COCO dataset. RLE is a compact format for binary masks. Binary masks defines the region by assigning a boolean to every pixel of the image. RLE compresses the binary masks by instead recording the runs of trues and falses in the binary masks. RLE is an array of integer. The first element is the length of run of falses staring from the first pixel. The second element of RLE is the is the length of first run of trues. e.g. binary masks: 00001110000011 RLE: ---4--3----5-2 ====> 4,3,5,2

Also note that we don't use COCO's "compact" RLE string here because this RLE class has better time & space performance.

Linear Supertypes
SegmentationMasks, Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RLEMasks
  2. SegmentationMasks
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RLEMasks(counts: Array[Int], height: Int, width: Int)

    counts

    the RLE counts

    height

    height of the image

    width

    width of the image

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. lazy val area: Long
    Annotations
    @transient()
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. lazy val bbox: (Float, Float, Float, Float)
    Annotations
    @transient()
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. val counts: Array[Int]
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(obj: Any): Boolean
    Definition Classes
    RLEMasks → AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def get(idx: Int): Long

    Get an element in the counts.

    Get an element in the counts. Process the overflowed int

  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    RLEMasks → AnyRef → Any
  15. val height: Int
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def size: (Int, Int)

    Get the height and width

    Get the height and width

    Definition Classes
    RLEMasksSegmentationMasks
  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toRLE: RLEMasks

    Convert to a RLE encoded masks

    Convert to a RLE encoded masks

    Definition Classes
    RLEMasksSegmentationMasks
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  27. val width: Int

Inherited from SegmentationMasks

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped