core
vil
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
72
enum
color_theme
{
BWLIN1
=0,
BWLIN2
,
GRBW
,
REDTEMP
,
BGRY
,
GAMMA_II
,
PRISM
,
RED_PURPLE
,
73
GWLIN
,
GWEXP
,
GREENPINK
,
BLUERED
,
SIXTEENLEVEL
,
RAINBOW1
,
STEPS
,
STERN
,
74
HAZE
,
BLUE_PASTEL
,
RED_PASTEL
,
HSL1
,
HSL2
,
HSV1
,
HSV2
,
PURPLE_RED_STRIPES
,
75
BEACH
,
MAC
,
EOS_A
,
EOS_B
,
HARD_CANDY
,
NATURE
,
OCEAN
,
PEPPERMINT
,
PLASMA
,
76
BLUERED2
,
RAINBOW2
,
BLUE_WAVES
,
VOLCANO1
,
WAVES1
};
77
78
vil_rgb<vxl_byte>
color_value
(
int
theme,
int
color_index);
79
80
#endif
RAINBOW1
Definition:
vil_color_table.h:73
PEPPERMINT
Definition:
vil_color_table.h:75
color_value
vil_rgb< vxl_byte > color_value(int theme, int color_index)
Definition:
vil_color_table.cxx:3
PRISM
Definition:
vil_color_table.h:72
PURPLE_RED_STRIPES
Definition:
vil_color_table.h:74
vil_rgb.h
Pixel type for 24 bit images.
HSV1
Definition:
vil_color_table.h:74
GRBW
Definition:
vil_color_table.h:72
RAINBOW2
Definition:
vil_color_table.h:76
STEPS
Definition:
vil_color_table.h:73
RED_PURPLE
Definition:
vil_color_table.h:72
HSV2
Definition:
vil_color_table.h:74
GAMMA_II
Definition:
vil_color_table.h:72
OCEAN
Definition:
vil_color_table.h:75
color_theme
color_theme
Definition:
vil_color_table.h:72
BLUE_WAVES
Definition:
vil_color_table.h:76
MAC
Definition:
vil_color_table.h:75
EOS_B
Definition:
vil_color_table.h:75
REDTEMP
Definition:
vil_color_table.h:72
WAVES1
Definition:
vil_color_table.h:76
STERN
Definition:
vil_color_table.h:73
HARD_CANDY
Definition:
vil_color_table.h:75
BLUE_PASTEL
Definition:
vil_color_table.h:74
GWLIN
Definition:
vil_color_table.h:73
VOLCANO1
Definition:
vil_color_table.h:76
BLUERED2
Definition:
vil_color_table.h:76
BWLIN1
Definition:
vil_color_table.h:72
HSL2
Definition:
vil_color_table.h:74
PLASMA
Definition:
vil_color_table.h:75
HSL1
Definition:
vil_color_table.h:74
BWLIN2
Definition:
vil_color_table.h:72
EOS_A
Definition:
vil_color_table.h:75
RED_PASTEL
Definition:
vil_color_table.h:74
NATURE
Definition:
vil_color_table.h:75
GREENPINK
Definition:
vil_color_table.h:73
BGRY
Definition:
vil_color_table.h:72
HAZE
Definition:
vil_color_table.h:74
GWEXP
Definition:
vil_color_table.h:73
SIXTEENLEVEL
Definition:
vil_color_table.h:73
BLUERED
Definition:
vil_color_table.h:73
vil_rgb
This is the appropriate pixel type for 24-bit colour images.
Definition:
vil_fwd.h:14
BEACH
Definition:
vil_color_table.h:75
Generated by
1.8.15