|Image Processing Toolbox User's Guide|
9. Display the Label Matrix as a Pseudocolor Indexed Image
A good way to view a label matrix is to display it as a pseudocolor indexed image. In the pseudocolor image, the number that identifies each object in the label matrix maps to a different color in the associated colormap matrix. The colors in the image make objects easier to distinguish.
To view a label matrix in this way, use the
label2rgb function. Using this function, you can specify the colormap, the background color, and how objects in the label matrix map to colors in the colormap.
Label Matrix Displayed as Pseudocolor Image
|8. Examine the Label Matrix||10. Measure Object Properties in the Image|
© 1994-2005 The MathWorks, Inc.