Main Content
ind2gray
Convert indexed image to grayscale image
Syntax
Description
Examples
Input Arguments
Output Arguments
Algorithms
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.