Several sample color palettes are provided. The user can easily generate her own palettes. Palette files are simple text files defining the RGB values of the palette entries (see below). The samples provided were taken from the public-domain package FractInt and are probably not optimal for pseudocoloring applications. The user is encouraged to develop her own palette optimized for the intended application. Users are encouraged to send me any palettes they create for inclusion in the sample package (I will credit your contributions).
Nina Cording has very kindly sent in a really cool utility for making palettes. Check it out!
Here is an example showing application of the supplied topo palette to a Landsat image:
red green blue
where red, green, and blue are integers in the range 0-255.
The first line in the file will correspond to palette index 0, the second to palette index 1, etc.
The luminance value of a source pixel, L, will be in the range 0-255 and will map to the user-defined palette as follows, where N is the number of lines in the palette file and P is the palette index that will be used to map the source pixel:
P = (L * N) / 256
The supplied palette threshold shows an application using a palette with only two entries. Luminance values less than 128 are mapped to black and those equal to or above 128 are mapped to white.
Have a look at the supplied palette files if you find this explanation unclear.
Version 1.0 [Source code]
Version 1.0 is the first released version.
[up to home page]