I have a .jpg of a 2d colorplot & colorbar, similar to something you might make with matplotlib's pcolormesh().
I'd like to 'reverse engineer' the data from the image. Meaning, I'd like to define some sampling grid on the image, pick the color of that sample, and interpolate it to a point on the color bar to obtain a scalar value of that pixel.
I'm wondering how much of this functionality already exists in some form, and how much I'll need to develop.