I am trying to figure out how I can convert a color image into numbers.
color image
For example, if I have an image like the one shown in figure (b), how can I get a output like figure (a) in to a text file?
figure (b)
figure (a)