MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

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?



  • Prev by Date: Plotting piecewise in 2D
  • Next by Date: Re: innerApply[{f, g}, {{a, b}, {c, d}}] = {f[a, b], g[c, d]} ?
  • Previous by thread: Re: Plotting piecewise in 2D
  • Next by thread: Re: Converting colors to height values