How to associate a color value to a number?

asked 2019-12-11 02:21:36 -0500

it_master gravatar image

I'm creating a module that would associate the average color value to a value, which is ranged from white to blue (based from a thermal picture). Now I need to a way to do this in code, and I definitely need help in this regard, since I have no clue as to how do I code this in the first place.

Any help would be appreciated.

Thanks in advance.

edit retag flag offensive close merge delete

Comments

1

I wasn't able to get the answer, so yes. Then there's the fact that I wasn't able to respond in time.

it_master gravatar imageit_master ( 2019-12-11 03:44:11 -0500 )edit

@it_master, however, please stop deleting your old questions and starting all over, since you also wreck anyone elses previous effort to help you.

berak gravatar imageberak ( 2019-12-11 04:36:27 -0500 )edit

Alright, I'm really sorry for this.

(Also, can you go back to the Dominant color thread, it seems that the reshape didn't work and it still displayed all 8 colors. Not to mention that I'm stuck as to how do I exclude black from the array.)

it_master gravatar imageit_master ( 2019-12-11 04:41:05 -0500 )edit