I need to detect temperature from thermal image without converting it into gray scale
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have code which convert a thermal image into gray scale image and then the temperature can be detected ...but I am looking for a code that can directly detect temperature from thermal image without it to Gray scale image
0 Kommentare
Antworten (1)
Walter Roberson
am 5 Jun. 2021
This has been discussed a few times in the past.
The most difficult part of this is in converting the color into a temperature. Thermal images that are in color are always "false color", and most of the time, there is no linear component -- for example converting to L*ab and examining the Chroma turns out to not be linear, and converting to HSV and examining the Hue turns out to not be linear, and so on.
A lot of the time, companies do not publish the key or the color table. One of the major thermal imaging manufacturers historically did not even put a colorbar on the images.
So... you have to go through a calibration phase to figure out what temperature shows up as what color. Unless, that is, there is a color bar, in which case you have to spend time doing image analysis of the color bar in order to build a look-up table relating color and temperature.
There are some manufacturers that are very conscientious about using colors that can be analyzed and converted directly to temperature. Some manufacturers of thermal imaging products produce both a pseudo-color image and a floating point array, stored in the same TIFF file, so that the color data can be read out directly.
But there are a lot of other manufacturers that care more about mass sales to consumers who do not need to do scientific processing of the resulting images.
7 Kommentare
Walter Roberson
am 8 Jun. 2021
After that what you need to read about is ginput().
Or set up a ButtonDownFcn callback https://www.mathworks.com/help/matlab/ref/matlab.ui.figureappd-properties.html#bu4i700-1-ButtonDownFcn https://www.mathworks.com/help/matlab/ref/matlab.ui.figureappd-properties.html#bu4i700-1-CurrentPoint uifigure() CurrentPoint property
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!