Convert indexed image to grayscale image
ind2gray converts the colormap to NTSC coordinates using rgb2ntsc, and sets the hue and saturation components
(I and Q) to zero, creating a gray
colormap. ind2gray then replaces the indices in the image
X with the corresponding grayscale intensity values in the gray
colormap.