0

I have the following image:

img

Each bin has the respective RGB. Given the RGB, and a minimum and maximum value (minv and maxv), how can I convert the RGB to a value?

rocker996
  • 113
  • 2
  • 7
  • You can't. You need to know the exact conversion formula first. – Jongware May 13 '20 at 11:17
  • Does this answer your question? [How to reverse a color map image to scalar values?](https://stackoverflow.com/questions/3720840/how-to-reverse-a-color-map-image-to-scalar-values) – JohanC May 13 '20 at 12:19
  • @JohanC not quite – rocker996 May 13 '20 at 13:56
  • What do you mean by *"not quite"*? Did you try it? Which part worked? What errors did you get? What is wrong with the approaches in the linked questions, but that might work i adapted? .... – JohanC May 13 '20 at 14:17
  • @JohanC the answers in the post you mentioned work when you do know what colormap was used, here _it seems to me_ that that info is not available but I may be wrong, maybe the OP could clarify this aspect of the problem – gboffi May 13 '20 at 19:06
  • 1
    If you don't know the colormap, how do you expect a program to know it? Your first work should be to try to find out the colormap used. – JohanC May 13 '20 at 19:08

0 Answers0