SIP Toolbox
ind2rgb - Convert indexed images to truecolor storage
Calling Sequence
- RGB = ind2rgb(Index, map)
Parameters
-
index:
and map M x N indexed image and its M x 3 colormap.
-
RGB:
M x N x 3 truecolor image in the 0-1 range.
Description
Function ind2rgb converts indexed image storage to RGB
(direct) truecolor storage.
Examples
initial_dir = PWD;
chdir (SIPDIR + 'images');
[Img,map] = imread('indian.bmp');
xbasc()
imshow(Img, map);
RGB = ind2rgb(Img, map);
imshow(RGB);
chdir(initial_dir);
Authors
-
Ricardo Fabbri <ricardofabbri (AT) users DOT sf DOT net>
Availability
The latest version of the Scilab Image Processing toolbox can be found at
http://siptoolbox.sourceforge.net
See Also
im2gray, im2bw,