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

0 Members and 1 Guest are viewing this topic.

Offline ShazTopic starter

  • Newbie
  • Posts: 7
  • Country: in
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
 

Online frenky

  • Supporter
  • ****
  • Posts: 1003
  • Country: si
    • Frenki.net
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

Offline ShazTopic starter

  • Newbie
  • Posts: 7
  • Country: in
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?
 

Offline joe-c

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: de
    • Joe-c.de
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


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf