Link to home
Start Free TrialLog in
Avatar of websss
websssFlag for Kenya

asked on

semi transparent layer coloring image depending on heat/temperature reading

I have an image which is 640x480
The image is a JPEG with radiometeric data behind it (i.e. i can tell the heat temperature of each pixel)
This is used to see how hot or cold areas in the image are

What I need to do next is to have a semi-transparent layer over the image, and color the area
i.e.
0-50f = blue
51- 100f = red
101-300f = white

when you view the image, you will be able to see transparent blue red and white sections.

I was thinking of looping through every pixel, and reading the temperature, and then applying the associated colour
However I was thinking a foreach loop might take a while and was wondering if there was a more efficient/quiker solution?
Avatar of louisfr
louisfr

I wouldn't worry about looping over only 307200 pixels.
Avatar of websss

ASKER

Ok, so i'll just loop through these
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.