MATLAB: Conversion of a greyscale thermal image to pseudo colour thermal image

Image Processing Toolboxpseudo colourthermal image

How can a grayscale thermal image be converted to a pseudo colour thermal image as per standard colour coding conventions that are used for representing thermal images? Matlab code for achieving this task would be highly appreciated.

Best Answer

There is no standard coloring convention. Thermal camera software will give you the ability to choose from several colormaps. You can turn your grayscale thermal image into an RGB pseudocolored image with the function ind2rgb(). For example
myColorMap = summer(256); % Whatever you want.
rgbImage = ind2rgb(thermalImage, myColorMap);