How to convert Temperature maps into rgb images

조회 수: 4 (최근 30일)
Ioanna Thoma
Ioanna Thoma 2019년 9월 12일
댓글: Image Analyst 2019년 9월 13일
I am using satellite derived temperature values and I want to convert them to rgb so that I can perform superpixels clustering. I am trying to have the rgb values for each pixel (of the colormap). What do you suggest me to do?

채택된 답변

darova
darova 2019년 9월 12일
This should work
n = 100; % number of colors
mycolor = jet(n); % create a colormap
index = interp1([Tmin Tmax],[1 n],Tcur); % get index for current temperature
index = round(index);
mycolor(index,:) % color of a pixel
Let me know if it doesn't work
I am collecting reputation points to be the best here. Can you please help me and accept the answer?
  댓글 수: 8
Walter Roberson
Walter Roberson 2019년 9월 12일
I only earned about 1 1/4 points per hour over the last month. Only about 40% of my Answers get Accepted. I am getting older and will not be around forever. Someone will catch up some day.
Image Analyst
Image Analyst 2019년 9월 13일
Well Walter, unless you can continue from the afterlife, to stay in the lead you'd better get to work on that AI answerer robot that can answer posts automatically long after you're gone.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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