https://ch.mathworks.com/help/images/ref/label2rgb.html
label2rgb - Convert label matrix into RGB image - MATLAB
This MATLAB function converts a label image, L into an RGB color image for the purpose of visualizing the labeled regions.
label matrixconvertrgbimagematlab