How to convert image pixels values to the temperature values?

14 views (last 30 days)
Hello,
How to convert image pixels values to the temperature values?, in image I found pixel value, like 255, and I know that it match 37,4 C, how to export that value to the screen?

Answers (1)

Image Analyst
Image Analyst on 19 May 2014
You have to convert your entire image to a floating point image knowing at least two temperatures, not just one. Just because 255 = 37.4 does not tell us what what temperature zero gray levels is at.
After that
imshow(temperatureImage, []); % Use [] because it's floating point
impixelInfo('Position', [x,y,width,height]);
impixelinfo() will let you mouse around the image and it will report the temperature on your GUI.
  14 Comments
Bipasha Kundu
Bipasha Kundu on 17 Nov 2021
Hello Sir,
I am working on a project which is quite similar to this. I would like to know how to get the High and Low temperature. Thank you
Image Analyst
Image Analyst on 17 Nov 2021
@Bipasha Kundu to get the max and min temperature you can use max() and min() on your temperature image:
maxTemp = max(temperatureImage(:));
minTemp = min(temperatureImage(:));

Sign in to comment.

Categories

Find more on Convert Image Type in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!