How do I determine heat in a thermal image using image processing?
Show older comments
Hi!
I have a project. What happens is that I put a thermal image in image processor and then I want MATLAB to determine where in the image is the heat (the red-yellow) part of the image.
can you please help me?
2 Comments
Panda
on 22 May 2017
Image Analyst can you teach me. now i want to change thermal image to temperature scale by matlab
Image Analyst
on 22 May 2017
I don't know what that means. The thermal image already has units of temperature, or some factor times temperature.
Accepted Answer
More Answers (4)
If I have understood your question correctly, it simply means you need to identify the red pixels from the image, since they are indicative of heat. I assume the thermal image has been subjected to some colour palette representing heat map of the image. From image processing point of view, channel split functions can segregate the RGB channels, and you can simply use the Red channel image for your purpose.
3 Comments
Image Analyst
on 11 Apr 2017
Edited: Image Analyst
on 13 Apr 2020
No, you can't as you'll realize once you think about it. You have to use the full colormap. I attach a demo.

Jai Sri
on 13 Apr 2020
Error in the thermal_image_color_to_gray scale.m program.The error line is histogram(thermalImage,'Normalizaton', 'probability'): How to solve this problem?
Image Analyst
on 13 Apr 2020
Edited: Image Analyst
on 13 Apr 2020
I just ran it again and it ran fine. For some reason you accidentally deleted an i in Normalization.
Change 'Normalizaton' to 'Normalization' and it should work.
But I'm attaching the newest version which gives the histogram in degrees rather than gray levels.

mohammed ahmed
on 23 Oct 2016
Edited: Walter Roberson
on 23 Oct 2016
0 votes
this example its might useful for you
Piotr Murawski
on 9 Dec 2016
0 votes
This is a little bit more complicated than "go to other color palete". Flir save at the moment radiometric data as a radiometric jpeg file which is an extension of standard image jpeg file. The problem is that in file are only energy value not a themperature value. I try to use Flir SDK for Matlab at the moment but I do not have any results yet. There is not exacly true about "RAW Data", if You have FLIR ResearchIR You can export themperature value as a for example csv file and read them in Matlab. Of cource there are not raw data but You can calculate heat flow.
Mohammed Jaddoa
on 26 Feb 2018
0 votes
Bro I used to have this question for long time till I reach solution, you can extract temperature by using mat file that its generate it by thermal camera after that you can convert it to image and deal with it as image but when you want obtain temperature you must use mat files, for FLIR camera they have platform which deal with matlab effectively http://www.flir.com.au/science/display/?id=74637 please have look and check their code , good luck :)
1 Comment
Image Analyst
on 13 Apr 2020
Thank you Mohammed. It looks like that will be very useful to people using FLIR cameras.
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!