Name
ind2rgb — Converts indexed images to true color
Calling Sequence
rgb = ind2rgb(ind, cmap)
Parameters
- rgb
-
M x N x 3 true color image in the 0-1 range
- ind
-
M x N indexed image, integer matrix
- cmap
-
M x 3 color map
Description
ind2rgb
converts an 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.sf.net> |
Availability
The latest version of SIP can be found at
http://siptoolbox.sf.net