RGB= label2rgb(l)Converts a label image,l进入RGB颜色图像,目的是可视化标记区域。这label2rgbfunction determines the color to assign to each object based on the number of objects in the label matrix. Thelabel2rgb功能从整个Colormap的范围中挑选颜色。
RGB= label2rgb(l,,,,cmap)specifies the colormapcmapto be used in the RGB image.