Reproducing absorption spectra of pH indicators from RGB values of microscopic images.