object MaskUtils
- Alphabetic
- By Inheritance
- MaskUtils
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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
-
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
- def binaryToRLE(binaryMask: Tensor[Float]): RLEMasks
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
- def polyToSingleRLE(poly: PolyMasks, height: Int, width: Int): RLEMasks
-
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
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
uint2long(i: Int): Long
Convert an unsigned int to long (note: int may overflow)
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )