Object

com.intel.analytics.bigdl.dataset.segmentation

MaskUtils

Related Doc: package segmentation

Permalink

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def RLE2String(rle: RLEMasks): String

    Permalink

    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

    Permalink
    Definition Classes
    Any
  6. def bboxIOU(groundTruth: (Float, Float, Float, Float), detection: (Float, Float, Float, Float), isCrowd: Boolean): Float

    Permalink

    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

    Permalink

    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

    Permalink
  9. def clone(): AnyRef

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

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

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

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

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

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

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

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. def poly2RLE(poly: PolyMasks, height: Int, width: Int): Array[RLEMasks]

    Permalink

    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

    Permalink
  22. def rleIOU(detection: RLEMasks, groundTruth: RLEMasks, isCrowd: Boolean): Float

    Permalink

    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

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

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

    Permalink

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

  27. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped