Convert an indexed image to red, green, and blue color components.
The image x must be an indexed image which will be converted using the colormap map. If map does not contain enough colors for the image, pixels in x outside the range are mapped to the last color in the map.
The output may be a single RGB image (MxNx3 matrix where M and N are the original image x dimensions, one for each of the red, green and blue channels). Alternatively, the individual red, green, and blue color matrices of size MxN may be returned.
Multi-dimensional indexed images (of size MxNx1xK) are also supported.
See also: rgb2ind, ind2gray, hsv2rgb, ntsc2rgb.
Package: octave