フィルターのクリア

Creating a colormap for an image

3 ビュー (過去 30 日間)
Lucaci Diana
Lucaci Diana 2021 年 2 月 26 日
回答済み: Simon Allosserie 2021 年 2 月 26 日
Hi
I am trying to do a simulation of an infrared camera and what I need to do now is to create a color map. What I was suggested to do was to assign each colour from a visible band image a certain temperature and then work with the HSV. My coordinator suggested me something like 'hue value = temperature' and so on. And the function that helps me change them is this:
temperatureImage = minTemp + (maxTemp - minTemp)*image_h;
where 'image_h' is the hue value of the actual image. I was thinking of creating an if statement that will have HSV, but I don't know how to properly do that.
Can anyone suggest how to do that? I would much appreciate.
Thank you so much!

採用された回答

Simon Allosserie
Simon Allosserie 2021 年 2 月 26 日
You will probably want to use something like a jet colormap. See this page for more details: https://nl.mathworks.com/help/matlab/ref/colormap.html
Then use caxis for implementing your minimum and maximum temperature limits https://nl.mathworks.com/help/matlab/ref/caxis.html

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRed についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by