Click here to Skip to main content
15,890,043 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a map that shows magnetic field strength and it uses a color scale so that when the colour is red on the map this means that the magnitude is approaching positive maximum and if its green then its close to 0 and when it gets to blue its approaching negative infinity, and i am looking for a way so that whenever i move the cursor on the map i would know the value of the magnetic field at that point based on the colour

What I have tried:

i tried converting the RGB scale to numerical data but that was stupid because i keep getting 3 different values for each point
Posted
Comments
Richard MacCutchan 14-Jun-19 7:20am    
You need to set some range values for the colours. So for example anything with more than 192 (as an example) in the Red field can be considered red. As an alternative you can smooth the final value by using a formula that blends the three numbers into the most appropriate value.

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