There is a Look up table from the image analysis software MetaMorph I want to import and use in MATLAB as a 256X3 colormap. I was trying to see if I can 1) import LUT files (.lut extension) directly to MATLAB or 2) extract the colormap from a colored image. Has anyone had experience of doing this? I am aware of the function of rgb2ind, which can return [indexed_image, colormap], with a colormap that can map the indexed_image to the colored image. However is there a way I can do it for any other grayscale image I want to apply the colormap to? Please let me know if you have any suggestions. Thanks.