<< imnorm Image Types and Color Space Conversions mat2gray >>

IPCV >> Image Types and Color Space Conversions > ind2rgb

ind2rgb

Convert index image to RGB image

Syntax

imout = ind2rgb(imin,map)

Parameters

imin :

Source indexed image

map :

Colormap

imout :

Output rgb image

Description

This function convert the index image to RGB image with its' index and colormap. The output image is in double format.

Examples

S = imread(fullpath(getIPCVpath() + "/images/puffin.png"));
[X,map] = rgb2ind(S,8);
imshow(X,map);
S2 = ind2rgb(X,map);
scf();imshow(S2)

See also

Authors


Report an issue
<< imnorm Image Types and Color Space Conversions mat2gray >>