ind2rgb

I = ind2rgb(I::GMTimage, cmap::GMTcpt=GMTcpt(), layout="BRPa")

keywords: GMT, Julia, image, indexed, RGB

Convert an indexed GMTimage I to RGB. If cmap is not provided, it uses the internal colormap to do the conversion. If neither them exists, the layer is replicated 3 times thus resulting in a gray scale image.

This function mimics the Matlab's ind2rgb cousin.

See Also

imagesc, image_cpt!, image_alpha!, makecpt