Hi
You can use colormap property of labeloverlay function to indicate the different pixel labels with different colors. For more information, you can refer to this documentation.
Hope it will help!
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!