How do I get the temperatures from a thermal image taken with a FLIR ONE camera?
8 views (last 30 days)
Show older comments
I have purchased a FLIR ONE camera and I've taken an image with it. I wanted to know how to get the highest temperature in the image using image processing on MATLAB.
0 Comments
Answers (3)
Image Analyst
on 11 Sep 2018
Edited: Image Analyst
on 24 Jan 2019
See attached demo.
2 Comments
Gautam Pradhan
on 23 Jan 2019
Edited: Walter Roberson
on 27 Jan 2019
Hi,
Thant was a wonderful code. I am pretty new to MATLAB. I tried to save the image files generated by your code to my hard drive, but it is giving me complete white image only. I used following code;
ShortFileName = 'C:\123thermal_image.png';
imwrite(thermalImage, ShortFileName);
The thermalImage means "Floating Point Thermal (Temperature) Image.
Thank you.
GoPrad
Image Analyst
on 24 Jan 2019
Edited: Image Analyst
on 24 Jan 2019
Gautam, please attach the PNG image with the paper clip icon. I'm not sure how you saved those two white images you attached so give me the original images from the FLIR one.
And Heba, I never heard back from you. Did my demo help you? Please "Accept this answer" if it did.
Gautam Pradhan
on 27 Jan 2019
Edited: Image Analyst
on 27 Jan 2019
Hi,
Ok, the original file is "thermal_image.png": this is the demo image file you supplied.
The image I wanted to save in my hard drive is a "Floating Point Thermal (Temperature) Image, which was generated when I used your codes.
I included two more codes to save that:
ShortFileName = 'C:\123thermal_image.png';
imwrite(thermalImage, ShortFileName);
But I got a saved file which is white only. This is attached as 12345thermal_image.png.
If it worked, I actually wanted to use your code on my original FLIR jpeg image which is: OriginalThermalFLIRImage.jpg.
Thank you so much.
Gautam
1 Comment
Image Analyst
on 27 Jan 2019
This won't work:
ShortFileName = 'C:\123thermal_image.png';
imwrite(thermalImage, ShortFileName);
thermalImage is a floating point image, not an integer image so you have to save it in a .mat file
fullFileName = 'C:\123thermal_image.mat';
save(fullFileName, 'thermalImage');
Then, to recall:
s = load(fullFileName);
thermalImage = s.thermalImage;
Gautam Pradhan
on 28 Jan 2019
Hi,
Thank you!
I could successfully save the image as 123thermal_image.mat and recalled it. However, I have two questions:
- The recalled data did not have 31.6 value; which is the max temperature.
- Is it possible to create an image from this 123thermal_image.mat file?
Gautam
1 Comment
Image Analyst
on 28 Jan 2019
It should work but I don't know what you did to make it not work.
Attach your original image and your source code in a new thread, rather than Heba's year old thread.
See Also
Categories
Find more on Image Processing and Computer Vision 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!