Name
ind2rgb — convert indexed image to true color image
Calling Sequence
rgb = ind2rgb(ind,cmap)
Parameters
- rgb
-
MxNx3 true color image in the 0-1 range
- ind
-
MxN indexed image, integer matrix
- cmap
-
color map
Description
ind2rgb utility function converts an indexed image to true color image for pseudo color visualization.
Examples
a=[1:0.05:16];
b=int32(a'*a);
cmap=jetcolormap(256);
c=ind2rgb(b,cmap);
imshow(c);
Availability
The latest version of SIVP can be found at
http://sivp.sf.net