— Function File: rgb = ind2rgb (x, map)
— Function File: [r, g, b] = ind2rgb (x, map)
Convert an indexed image to red, green, and blue color components.
If the colormap doesn't contain enough colors, pad it with the
last color in the map.
If map is omitted, the current colormap is used for the conversion.