label2rgb
skimage.color.label2rgb(label, image=None, colors=None, alpha=0.3, bg_label=-1, bg_color=(0, 0, 0), image_alpha=1, kind='overlay') [source]
Return an RGB image where color-coded labels are painted over the image. Parameters:
label : array, shape (M, N) Integer array of labels with the same shape as image. image : array, shape (M, N, 3), optional Image used as underlay for labels. If the input is an RGB image, it’s converted to grayscale before coloring. colors : list, optional