Convert label matrix into RGB image
converts a label image, RGB
= label2rgb(L
)L
into an RGB color image for the
purpose of visualizing the labeled regions. The label2rgb
function determines the color to assign to each object based on the number of
objects in the label matrix. The label2rgb
function picks colors
from the entire range of the color map.
enables you to specify that the function return a list of unique colors instead of
an RGB image.RGB
= label2rgb(___,'OutputFormat',outputFormat
)
bwconncomp
| bwlabel
| bwlabeln
| colormap
| ismember
| labelmatrix
| watershed