ind2gray
Convert indexed image to grayscale image
Syntax
Description
Examples
Input Arguments
Output Arguments
Algorithms
ind2gray
converts the colormap to NTSC coordinates usingrgb2ntsc
, and sets the hue and saturation components (IandQ) to zero, creating a gray colormap.ind2gray
then replaces the indices in the imageX
with the corresponding grayscale intensity values in the gray colormap.