Packages

object MaskUtils

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MaskUtils
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. def RLE2String(rle: RLEMasks): String

    Convert "uncompressed" RLE to "compact" RLE string of COCO Implementation based on COCO's MaskApi.c

    Convert "uncompressed" RLE to "compact" RLE string of COCO Implementation based on COCO's MaskApi.c

    returns

    RLE string

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def bboxIOU(groundTruth: (Float, Float, Float, Float), detection: (Float, Float, Float, Float), isCrowd: Boolean): Float

    Get the iou of two bounding boxes

    Get the iou of two bounding boxes

    isCrowd

    if groundTruth is isCrowd

  7. def bboxIOU(gtx1: Float, gty1: Float, gtx2: Float, gty2: Float, dtx1: Float, dty1: Float, dtx2: Float, dty2: Float, isCrowd: Boolean): Float

    Get the iou of two bounding boxes

    Get the iou of two bounding boxes

    gtx1

    Ground truth x1

    gty1

    Ground truth y1

    gtx2

    Ground truth x2

    gty2

    Ground truth y2

    dtx1

    Detection x1

    dty1

    Detection y1

    dtx2

    Detection x2

    dty2

    Detection y2

    isCrowd

    if ground truth is is crowd

  8. def binaryToRLE(binaryMask: Tensor[Float]): RLEMasks
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def mergeRLEs(R: Array[RLEMasks], intersect: Boolean): RLEMasks

    Merge multiple RLEs into one (union or intersect) Implementation based on COCO's MaskApi.c

    Merge multiple RLEs into one (union or intersect) Implementation based on COCO's MaskApi.c

    R

    the RLEs

    intersect

    if true, do intersection; else find union

    returns

    the merged RLE

  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 poly2RLE(poly: PolyMasks, height: Int, width: Int): Array[RLEMasks]

    Convert a PolyMasks to an array of RLEMasks.

    Convert a PolyMasks to an array of RLEMasks. Note that a PolyMasks may have multiple polygons. This function does not merge them. Instead, it returns the RLE for each polygon. Implementation based on COCO's MaskApi.c

    height

    height of the image

    width

    width of the image

    returns

    The converted RLEs

  21. def polyToSingleRLE(poly: PolyMasks, height: Int, width: Int): RLEMasks
  22. def rleIOU(detection: RLEMasks, groundTruth: RLEMasks, isCrowd: Boolean): Float

    Calculate the intersection over union (IOU) of two RLEs

    Calculate the intersection over union (IOU) of two RLEs

    detection

    the detection RLE

    groundTruth

    the ground truth RLE

    isCrowd

    if groundTruth is isCrowd

    returns

    IOU

  23. def string2RLE(s: String, h: Int, w: Int): RLEMasks

    Convert "compact" RLE string of COCO to "uncompressed" RLE Implementation based on COCO's MaskApi.c

    Convert "compact" RLE string of COCO to "uncompressed" RLE Implementation based on COCO's MaskApi.c

    s

    the RLE string

    h

    height of the image

    w

    width of the image

    returns

    RLE string

  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. def uint2long(i: Int): Long

    Convert an unsigned int to long (note: int may overflow)

  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped