Convert indexed image to grayscale image
I = ind2gray(X,map)
I = ind2gray(X,map) converts
X with colormap
a grayscale image
the hue and saturation information from the input image while retaining
Note: A grayscale image is also called a gray-scale, gray scale, or gray-level image.
X can be of class
map is double.
of the same class as
load trees I = ind2gray(X,map); imshow(X,map) figure,imshow(I)