algorithm for a RGB color spectrum?

algorithm for a RGB color spectrum?

Post by Nicholas Gessl » Mon, 31 May 1999 04:00:00



Hi, can anyone provide a pointer to an algorithm which will produce a
false-color representation of a range of integers?  I'm thinking of a
false-color spectrum representing elevation, like the one used in the recent
color digital elevation map created of MARS by laser rangefinding.

Essentially, the problem is this:  Given a normalized elevation range, say
from 1-256, is there a convenient algorithm available to produce RGB values
which will produce more-or-less visually equal spacing on a color "spectrum?"

I realize there is no simple straight path through the RGB color cube which
will produce a perfectly visually ordered transitional set of colors.  But is
there one that is even close?

Thanks in advance for your help...

Nick


             0/  0/  ARTIFICIAL CULTURE:  \0  \0
            /#  /#     Experiments  in    #\  #\
             /\  /\       Synthetic      /\  /\
           """"""""""    Anthropology   """"""""""
               (in preparation for MIT Press)

               Founding Member - Coordinator
         COMPUTATIONAL EVOLUTION AND ECOLOGY GROUP
  CENTER FOR THE STUDY OF EVOLUTION AND THE ORIGIN OF LIFE
                  Department of Anthropology
          University of California at Los Angeles
                            c/o
  11152 Lucerne Avenue, Culver City, California 90230-4244
                  Phone/FAX:  310-559-6661
         http://www.sscnet.ucla.edu/anthro/gessler

 
 
 

1. an RGB false-color spectrum

Hi, can anyone provide a pointer to an algorithm which will produce a
false-color representation of a range of integers?  I'm thinking of a
false-color spectrum representing elevation, like the one used in the recent
color digital elevation map created of MARS by laser rangefinding.

Essentially, the problem is this:  Given a normalized elevation range, say
from 1-256, is there a convenient algorithm available to produce RGB values
which will produce more-or-less visually equal spacing on a color "spectrum?"

I realize there is no simple straight path through the RGB color cube which
will produce a perfectly visually ordered transitional set of colors.  But is
there one that is even close?

Thanks in advance for your help...

Nick


             0/  0/  ARTIFICIAL CULTURE:  \0  \0
            /#  /#     Experiments  in    #\  #\
             /\  /\       Synthetic      /\  /\
           """"""""""    Anthropology   """"""""""
               (in preparation for MIT Press)

               Founding Member - Coordinator
         COMPUTATIONAL EVOLUTION AND ECOLOGY GROUP
  CENTER FOR THE STUDY OF EVOLUTION AND THE ORIGIN OF LIFE
                  Department of Anthropology
          University of California at Los Angeles
                            c/o
  11152 Lucerne Avenue, Culver City, California 90230-4244
                  Phone/FAX:  310-559-6661
         http://www.sscnet.ucla.edu/anthro/gessler

2. DEC sixel format to PS, tiff, ppm ... wanted

3. help with a color spectrum in RGB

4. WHo need ILL7.0 & KPT3.0

5. Visible spectrum and RGB color

6. TTreeView

7. continuous spectrum to RGB color

8. Optional New Service for your Pager!!!

9. Algorithm for a Color Spectrum

10. Algorithm for a Color Spectrum?

11. fast algorithm to conver RGB Values to Dos Colors 16 /256 colors

12. RGB color maping in a RGB color table

13. Median Cut Algorithm (RGB->16 colors)