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).