Convert index image to RGB image
imout = ind2rgb(imin,map)
Source indexed image
Colormap
Output rgb image
This function convert the index image to RGB image with its' index and colormap. The output image is in double format.
S = imread(fullpath(getIPCVpath() + "/images/puffin.png")); [X,map] = rgb2ind(S,8); imshow(X,map); S2 = ind2rgb(X,map); scf();imshow(S2)