How do i map the temperature for the colors ,i.e RGB respectively from a Falsely colored image ( my own code using for loops) ?

3 次查看(过去 30 天)
I have UINT16 image from a tau2 camera. The variation in the pixel values(adjacent) of the sample images is less, hence the image appears to be black. I convert the image matrix to a grayscale image and then apply false coloring . Now i want to map the colors to temperatures , assuming red to be the hottest region , how do i do the same ?

回答(1 个)

Neil Guertin
Neil Guertin 2018-5-16
You can change the colors in the figure by using a different colormap. A list of built in colormaps are available in our documentation here: https://www.mathworks.com/help/matlab/ref/colormap.html?s_tid=srchtitle#buc3wsn-1-map
You can create your own colormap by using the Colormap Editor: https://www.mathworks.com/help/matlab/ref/colormapeditor.html
You can also create a colormap manually by building an Nx3 array of values in the range 0 to 1.

类别

Help CenterFile Exchange 中查找有关 Colormaps 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by