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 string
Get the iou of two bounding boxes
Get the iou of two bounding boxes
if groundTruth is isCrowd
Get the iou of two bounding boxes
Get the iou of two bounding boxes
Ground truth x1
Ground truth y1
Ground truth x2
Ground truth y2
Detection x1
Detection y1
Detection x2
Detection y2
if ground truth is is crowd
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
the RLEs
if true, do intersection; else find union
the merged RLE
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 of the image
width of the image
The converted RLEs
Calculate the intersection over union (IOU) of two RLEs
Calculate the intersection over union (IOU) of two RLEs
the detection RLE
the ground truth RLE
if groundTruth is isCrowd
IOU
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
the RLE string
height of the image
width of the image
RLE string
Convert an unsigned int to long (note: int may overflow)
Convert an unsigned int to long (note: int may overflow)