Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can anyone help me to convert gray-scale image into color image that look like thermal image using C#
Posted

1 solution

Search the web on pseudocoloring[^] Pseudocolor is derived from a grayscale image by mapping each intensity value to a color according to a table or function.
You should create a mapping that will connect your grayscale intensity (say 0 to 255 for 8 bit per pixel) to a spectrum color intensity (from a scale of your choosing; a very crude example could be 0-75 are tones of blue, 76-150 are tones of green, 151-225 are tones of red, 226-255 are tones of yellow. You can define these colors in RGB, but I believe HSV or HSL color spaces are easier, if you have knowledge of them.). Then you will apply this mapping to your grayscale image pixel by pixel (using two for loops in one another, for example).

A C++ example could be found here[^].
There is a c# example for emgu CV here[^].
 
Share this answer
 
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900