MATLAB: How to color objects red

color segmentationImage Processing Toolboxspecify object color

I know I can use the command label2rgb to color the objects with specified color maps but how would I go about making all objects red in an image?
Thank you in advance for any help that is provided.

Best Answer

relabeled = uint8(labeled_image > 0);
colormap = [0 0 0; 1 0 0]; %black and red
coloredimage = label2rgb(relabeled, colormap);