[Date Index] [Thread Index] [Author Index]
Converting colors to height values
The Lunar Orbiter Laser Altimeter has a website http://lro.gsfc.nasa.gov/lola/science.html where jpegs are posted of regions of the moon. I would like to convert the color information to height values. A scale is posted with the images that looks a lot like Rainbow, a ColorFunction. I have Inserted the jpeg of Copernicus into a mathematica notebook. It has 5 dimensions, which look like rows, columns, and RGB, where RGB runs from 0 to 255. How can I convert an RGB Rainbow triple to a single number?