vil_color_table.h
Go to the documentation of this file.
1 // This is core/vil/vil_color_table.h
2 #ifndef vil_color_table_h_
3 #define vil_color_table_h_
4 //:
5 // \file
6 // \brief Color tables for applying false color to greyscale images.
7 // \author brooksby@research.ge.com
8 // \date 08 Nov 2005
9 // \verbatim
10 // Modifications
11 // 8 Nov 2005 Initial port from TargetJr.
12 // \endverbatim
13 //
14 // This file provides a way to load color tables directly, rather than computing them.
15 // It was created from the predefined color tables in IDL. It provides a way of adding
16 // pseudo-color to data for visualization purposes.
17 //
18 // These tables are provided courtesy of Research Systems Incorporated (RSI),
19 // Boulder, CO and are used with permission. RSI is the developer of IDL.
20 //
21 // The number (ie REDx, GREENx, BLUEx) refer to the color table numbers from IDL.
22 // The IDL descriptions are as follows. I don't claim the names make sense, but
23 // at least they are unique and give a hint as to how they may display.
24 //
25 // - Nr Name
26 // - 0 Black & White Linear
27 // - 1 Blue/White Linear
28 // - 2 Green-Red-Blue-White
29 // - 3 Red Temperature
30 // - 4 Blue-Green-Red-Yellow
31 // - 5 Standard Gamma-II
32 // - 6 Prism
33 // - 7 Red-Purple
34 // - 8 Green/White Linear
35 // - 9 Green/White Exponential
36 // - 10 Green-Pink
37 // - 11 Blue-Red
38 // - 12 16 Level
39 // - 13 Rainbow
40 // - 14 Steps
41 // - 15 Stern Special
42 // - 16 Haze
43 // - 17 Blue-Pastel
44 // - 18 Red-Pastel
45 // - 19 Hue Sat Lightness 1
46 // - 20 Hue Sat Lightness 2
47 // - 21 Hue Sat Value 1
48 // - 22 Hue Sat Value 2
49 // - 23 Purple-Red + Stripes
50 // - 24 Beach
51 // - 25 Mac Style
52 // - 26 Eos A
53 // - 27 Eos B
54 // - 28 Hardcandy
55 // - 29 Nature
56 // - 30 Ocean
57 // - 31 Peppermint
58 // - 32 Plasma
59 // - 33 Blue-Red 2
60 // - 34 Rainbow 2
61 // - 35 Blue Waves
62 // - 36 Volcano
63 // - 37 Waves
64 //
65 // To understand how these color maps appear, compile and run the example
66 // program vil_color_tables.cxx. This executable will produce a color image
67 // for each of these tables representing a ramp from 0 to 255.
68 
69 #include <vil/vil_rgb.h>
70 #include <vxl_config.h> // for vxl_byte
71 
77 
78 vil_rgb<vxl_byte> color_value(int theme, int color_index);
79 
80 #endif
vil_rgb< vxl_byte > color_value(int theme, int color_index)
Pixel type for 24 bit images.
color_theme
This is the appropriate pixel type for 24-bit colour images.
Definition: vil_fwd.h:14