ind2rgb - convert indexed images to truecolor storage |
RGB = ind2rgb(Index, map) |
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. |
Function ind2rgb converts indexed image storage to RGB (direct) truecolor storage.
initial_dir = PWD; chdir (SIPDIR + 'images'); [Img,map] = imread('indian.bmp'); xbasc() imshow(Img, map); RGB = ind2rgb(Img, map); imshow(RGB); chdir(initial_dir); |
Ricardo Fabbri <rfabbri@if.sc.usp.br> |
The latest version of the Scilab Image Processing toolbox can be found at |
http://siptoolbox.sourceforge.net |
im2gray, im2bw |