Converting colors to height values
- To: mathgroup at smc.vnet.net
- Subject: [mg109740] Converting colors to height values
- From: finkh <howardfink at gmail.com>
- Date: Fri, 14 May 2010 05:36:06 -0400 (EDT)
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?