How to convert image pixels values to the temperature values?

77 views (last 30 days)
Dovile
Dovile on 19 May 2014
Commented: Image Analyst on 17 Nov 2021
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
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.

Community Treasure Hunt

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

Start Hunting!