rofunc.utils.visualab.image#

1.  Module Contents#

1.1.  Functions#

overlay_seg_w_img

Combines image and its segmentation mask into a single image.

show_anns

show_mask

show_star_points_w_labels

show_box

1.2.  Data#

color_lst

1.3.  API#

rofunc.utils.visualab.image.color_lst = [(255, 0, 0), (0, 255, 0), (0, 0, 255), (72, 209, 204), (238, 130, 238), (221, 160, 221), (139, 69, ...#
rofunc.utils.visualab.image.overlay_seg_w_img(image_rgb, image_seg, alpha=0.5)[source]#

Combines image and its segmentation mask into a single image.

Parameters:
  • image_rgb – WxHx3, np.ndarray

  • image_seg – WxH, np.ndarray

  • alpha – Segmentation mask’s transparency. float = 0.5,

Returns:

rofunc.utils.visualab.image.show_anns(anns)[source]#
rofunc.utils.visualab.image.show_mask(mask, ax, random_color=False)[source]#
rofunc.utils.visualab.image.show_star_points_w_labels(coords, labels, ax, marker_size=375)[source]#
rofunc.utils.visualab.image.show_box(box, ax)[source]#