- Convert the Image to a hsv color space to capture hue values of the image. This can be done using 'rgb2hsv' function.
- Define a color-to-temperature mapping
- Use 'ginput' function to capture the mouse pointer and accordingly display the temperature of that point depending on the Color-to-Temperature mapping defined on the basis of 'hue'. Using a 'while true' loop enables the user to measure temperature of different areas of the image repeatedly unless stopped.