1d.his(1) Grass User's Manual d.his(1)
2
3
4
6 d.his - Displays the result obtained by combining hue, intensity, and
7 saturation (his) values from user-specified input raster map layers.
8
10 display
11
13 d.his
14 d.his help
15 d.his [-n] h_map=string [i_map=string] [s_map=string]
16
17 Flags:
18 -n Respect NULL values while drawing
19
20 Parameters:
21 h_map=string
22 Name of layer to be used for HUE
23
24 i_map=string
25 Name of layer to be used for INTENSITY
26
27 s_map=string
28 Name of layer to be used for SATURATION
29
31 his stands for hue, intensity, and saturation. This program produces a
32 raster map layer providing a visually pleasing combination of hue,
33 intensity, and saturation values from two or three user-specified
34 raster map layers.
35
36 The human brain automatically interprets the vast amount of visual
37 information available according to basic rules. Color, or hue, is used
38 to categorize objects. Shading, or intensity, is interpreted as three-
39 dimensional texturing. Finally, the degree of haziness, or saturation,
40 is associated with distance or depth. This program allows data from up
41 to three raster map layers to be combined into an image which retains
42 the original information in terms of hue, intensity, and saturation.
43
45 This program can be run non-interactively or interactively. It will
46 run non-interactively if the user specifies on the command line the
47 name of a map containing hue values (h_map), and the name(s) of map(s)
48 containing intensity values (i_map) and/or saturation values (s_map).
49 The resulting image will be displayed in the active display frame on
50 the graphics monitor.
51
52 Alternately, the user can run the program interactively by typing d.his
53 without naming parameter values on the command line. In this case, the
54 program will prompt the user for parameter values using the standard
55 GRASS parser interface.
56
57 While any raster map layer can be used to represent the hue informa‐
58 tion, map layers with a few very distinct colors work best. Only
59 raster map layers representing continuously varying data like eleva‐
60 tion, aspect, weights, intensities, or amounts can suitably be used to
61 provide intensity and saturation information.
62
63 For example, a visually pleasing image can be made by using a watershed
64 map for the hue factor, an aspect map for the intensity factor, and an
65 elevation map for saturation. (The user may wish to leave out the ele‐
66 vation information for a first try.) Ideally, the resulting image
67 should resemble the view from an aircraft looking at a terrain on a
68 sunny day with a bit of haze in the valleys.
69
71 Each map cell is processed individually. First, the working color is
72 set to the color of the corresponding cell in the map layer chosen to
73 represent HUE. Second, this color is multiplied by the red intensity
74 of that cell in the INTENSITY map layer. This map layer should have an
75 appropriate gray-scale color table associated with it. You can ensure
76 this by using the color manipulation capabilities of d.colors or r.col‐
77 ors. Finally, the color is made somewhat gray-based on the red inten‐
78 sity of that cell in the SATURATION map layer. Again, this map layer
79 should have a gray-scale color table associated with it.
80
82 The name is misleading. The actual conversion used is
83 <U>H.i.s + <U>G.(1-s)
84 where
85 <U>H is the R,G,B color from the hue map
86 i is the red value from the intensity map
87 s is the red value from the saturation map
88 <U>G is 50% gray (R = G = B = 0.5)
89
90
91 Either (but not both) of the intensity or the saturation map layers may
92 be omitted. This means that it is possible to produce output images
93 that represent combinations of his, hi, or hs. Users wishing to store
94 the result in new raster map layers instead of displaying it on the
95 monitor should use the program r.his.
96
98 d.colors, d.colortable, r.colors, r.his, i.his.rgb, i.rgb.his,
99 hsv.rgb.sh, rgb.hsv.sh, parser
100
102 James Westervelt, U.S. Army Construction Engineering Research Labora‐
103 tory
104
105 Last changed: $Date: 2004/08/10 08:35:01 $
106
107 Full index
108
109
110
111GRASS 6.2.2 d.his(1)