SIP Toolbox

ind2rgb - Convert indexed images to truecolor storage

Calling Sequence

RGB = ind2rgb(Index, map)

Parameters

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,