Indexed image, returned as a numeric array of the same dimensionality as
the input grayscale or binary image. If the colormap length is less than or
equal to 256, then the class of the output image is uint8
; otherwise it is uint16.
Data Types: uint8 | uint16
cmap — Color map c-by-3 numeric array
Color map associated with indexed image X, returned
as a c-by-3 numeric array. The color map produced is
equivalent to gray(c).
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.