### Author Topic: assigning colour palette based on temperature values  (Read 2829 times)

0 Members and 1 Guest are viewing this topic.

#### Shaz

• Newbie
• Posts: 7
• Country:
##### assigning colour palette based on temperature values
« on: November 04, 2016, 11:17:12 am »
Can anyone specify how to Assign a value of RGB to a temperature value for creating an RGB (rainbow palette) thermal image? I am interested in knowing if there's any standard convention for doing so like some algorithm or formula?

Example of the type of RGB image that is needed as final output: PLEASE SEE ATTACHMENT

SOURCE OF ATTACHMENT: http://mediaserver.dwpub.com/press-release/29167/CST+bilat+hyperaemia+example.png

#### frenky

• Supporter
• Posts: 1003
• Country:
##### Re: assigning colour palette based on temperature values
« Reply #1 on: November 04, 2016, 12:05:15 pm »
In my seek-o-fix app I did it like this...

Read rgb values of a pallete image into matrix[3,1000].

Then calulate min and max temperature from sensor and map that values to the 0-1000 range.
Then draw colorful image like this: If mapped pixel value is 100, then go to matrix array and read out R,G,B values at index 100 and so forth...

Source files:
https://www.eevblog.com/forum/thermal-imaging/seekofix-new-windows-software-for-seekthermal/msg914515/#msg914515
« Last Edit: November 04, 2016, 12:07:43 pm by frenky »

The following users thanked this post: Shaz

#### Shaz

• Newbie
• Posts: 7
• Country:
##### Re: assigning colour palette based on temperature values
« Reply #2 on: November 05, 2016, 08:42:31 am »
Thanks a lot!
Can I get some help in terms of doing the same in Matlab?

#### joe-c

• Frequent Contributor
• Posts: 350
• Country:
##### Re: assigning colour palette based on temperature values
« Reply #3 on: November 05, 2016, 09:29:08 am »
Can I get some help in terms of doing the same in Matlab?
i don't know Matlab. but here is a c# source for pseudocolor from a grayscale image with aforge (open source image processing lib for .net).

http://joe-c.de/pages/posts/programm_pseudocolor_75.php
Freeware Thermal Analysis Software: ThermoVision_Joe-C
Some Thermal cameras: Kameras

The following users thanked this post: Shaz

Smf