com.intel.analytics.bigdl.dataset.segmentation

MaskUtils

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
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def RLE2String(rle: RLEMasks): String

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

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

    rle
    returns

    RLE string

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. 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

    groundTruth
    detection
    isCrowd

    if groundTruth is isCrowd

    returns

  9. 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

    returns

  10. def binaryToRLE(binaryMask: Tensor[Float]): RLEMasks

  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def mergeRLEs(R: Array[RLEMasks], intersect: Boolean): RLEMasks

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

    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

  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. 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

    poly
    height

    height of the image

    width

    width of the image

    returns

    The converted RLEs

  23. def polyToSingleRLE(poly: PolyMasks, height: Int, width: Int): RLEMasks

  24. 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

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

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

    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

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. def uint2long(i: Int): Long

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

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

    i
    returns

  29. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped