You are here

Can gimp be used to accurately measure spectra from a photo?

http://www.asdlib.org/onlineArticles/elabware/Scheeline_Kelly_Spectropho... ,is there a way to get the intensity of RGB as a csv file and convert RGB to their wavelengths in nanometers.This question applies to astronomy as well where you need to measure the intensity of light from photos,can gimp be used for more than just editing?

Im not familiar with spectra measuring, but for the part of your question - if is it possible to export image as a bunch of RGB values in a text file - directly not, It would be possible, but somebody must write a plugin for this.
However, if somebody would write pluging for this, then he just might write standalone C application (no GUI, just tiny command line tool). Or if familiar, he can write it in python (will run slower, but might be no problem).

"... is there a way to get the intensity of RGB as a csv file and convert RGB to their wavelengths in nanometers."

I would assume this means that you want to get the intensity of the RGB from the image, convert them to wavelengths, and save them as a CSV file. (If you were to just get the intensities from a CSV file then there is little need for GIMP).

If my assumption is correct then, yes, GIMP could do that with a little bit of scripting. As a proof-of-concept along the same lines, you might consider this Hue Histogram script which renders a graphical representation of the hues in an image. Though there isn't a one-to-one correspondence between "hues" and "wavelengths", I think there should be a way to produce a similar histogram to represent the latter (and writing that data to a CSV file is trivial).

Subscribe to Comments for "Can gimp be used to accurately measure spectra from a photo?"