1r.composite(1)              GRASS GIS User's Manual             r.composite(1)
2
3
4

NAME

6       r.composite   -  Combines red, green and blue raster maps into a single
7       composite raster map.
8

KEYWORDS

10       raster, composite, RGB
11

SYNOPSIS

13       r.composite
14       r.composite --help
15       r.composite  [-dc]  red=name  green=name  blue=name    [levels=integer]
16       [level_red=integer]      [level_green=integer]     [level_blue=integer]
17       output=name  [--overwrite]  [--help]  [--verbose]  [--quiet]  [--ui]
18
19   Flags:
20       -d
21           Dither
22
23       -c
24           Use closest color
25
26       --overwrite
27           Allow output files to overwrite existing files
28
29       --help
30           Print usage summary
31
32       --verbose
33           Verbose module output
34
35       --quiet
36           Quiet module output
37
38       --ui
39           Force launching GUI dialog
40
41   Parameters:
42       red=name [required]
43           Name of raster map to be used for <red>
44
45       green=name [required]
46           Name of raster map to be used for <green>
47
48       blue=name [required]
49           Name of raster map to be used for <blue>
50
51       levels=integer
52           Number of levels to be used for each component
53           Options: 1-256
54           Default: 32
55
56       level_red=integer
57           Number of levels to be used for <red>
58           Options: 1-256
59
60       level_green=integer
61           Number of levels to be used for <green>
62           Options: 1-256
63
64       level_blue=integer
65           Number of levels to be used for <blue>
66           Options: 1-256
67
68       output=name [required]
69           Name for output raster map
70

DESCRIPTION

72       This program combines three raster maps to form a  composite  RGB  map.
73       For  each  input  map layer, the corresponding component from the map’s
74       color table is used (e.g. for the red map, the red component  is  used,
75       and so on). In general, the maps should use a grey-scale color table.
76

NOTES

78       The  default  number  of intensity levels for each component is 32, re‐
79       sulting in a total of 32768 possible colors (equivalent to 15 bits  per
80       pixel).  If significantly more levels than this are used, not only will
81       r.composite take longer to run, but displaying the resulting layer with
82       d.rast will also be significantly slower.
83
84       Floyd-Steinberg dithering is optionally used with the -d flag.
85

EXAMPLES

87   RGB composite of three satellite bands
88       Color composite of a LANDSAT scene (North Carolina sample dataset):
89       g.region raster=lsat7_2002_10
90       r.composite blue=lsat7_2002_10 green=lsat7_2002_20 red=lsat7_2002_30 \
91                   output=lsat7_2002_rgb
92
93   RGB composite with dithering
94       Creating  a  composite RGB raster using 32 color levels per layer, with
95       dithering:
96       r.composite -d red=elevation.r green=elevation.g blue=elevation.b \
97                   output=elev.composite
98

SEE ALSO

100        d.rast, d.rgb, r.blend, r.colors, r.rgb
101
102        Wikipedia Entry: Floyd-Steinberg dithering
103

AUTHOR

105       Glynn Clements
106

SOURCE CODE

108       Available at: r.composite source code (history)
109
110       Accessed: Saturday Jan 21 20:38:21 2023
111
112       Main index | Raster index | Topics index | Keywords index  |  Graphical
113       index | Full index
114
115       © 2003-2023 GRASS Development Team, GRASS GIS 8.2.1 Reference Manual
116
117
118
119GRASS 8.2.1                                                     r.composite(1)
Impressum