Functions
utils::mask_coco2voc Namespace Reference

Functions

def decodeMask
def mask_coco2voc
def segToMask

Function Documentation

Decode binary mask M encoded via run-length encoding.
:param   R (object RLE)    : run-length encoding of binary mask
:return: M (bool 2D array) : decoded binary mask

Definition at line 28 of file mask_coco2voc.py.

def utils.mask_coco2voc.mask_coco2voc (   coco_masks,
  im_height,
  im_width 
)

Definition at line 46 of file mask_coco2voc.py.

def utils.mask_coco2voc.segToMask (   S,
  h,
  w 
)
Convert polygon segmentation to binary mask.
:param   S (float array)   : polygon segmentation mask
:param   h (int)           : target mask height
:param   w (int)           : target mask width
:return: M (bool 2D array) : binary mask

Definition at line 11 of file mask_coco2voc.py.



rail_object_detector
Author(s):
autogenerated on Sat Jun 8 2019 20:26:31