How to convert thermal image(From FLIR T400) into corresponding temperature in matlab?

19 views (last 30 days)
I have a thermal image with color code range.I am new to work with thermal image.I don't know how to convert the pixel value into corresponding temperature. Please send the matlab code or give some idea about it. Thanks

Answers (2)

Guillaume
Guillaume on 11 Sep 2018
Edited: Guillaume on 11 Sep 2018
The image you get from an infrared camera should be greyscale. Typically, the camera software may use false colours to make it easier to distinguish certain temperatures but the raw image is greyscale. If you have an image with false colours already applied it's going to be more difficult to process.
Of course, without a calibration that tells you how to translate pixel intensity to temperature it is completely impossible to do the conversion. So have you got such calibration?
  4 Comments
Image Analyst
Image Analyst on 2 Oct 2019
Make a plot with two points, a low temperature point and a high temperature point. Put gray level along the x axis, and actual temperature in degrees along the y axis. I think you'll know what to do. If not, then:
coefficients = polyfit(grayLevels, temperatures, 1)
slope = coefficients(1)
offset = coefficients(2)
where grayLevels and temperatures are 2 element vectors (or more if you want).
To get a predicted temperature from coefficients and a sample gray level, do
predictedTemperature = polyval(coefficients, grayLevel)

Sign in to comment.


Image Analyst
Image Analyst on 11 Sep 2018
See attached demo. Adapt as needed.

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!