d.rgb.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <h2>DESCRIPTION</h2>
  2. <em>RGB</em> stands for <b>red</b>, <b>green</b>,
  3. and <b>blue</b>. <em>d.rgb</em> visually combines three raster maps to
  4. form a color image. For each map, the corresponding component from the
  5. layer's color table is used (e.g. for the red layer, the red component
  6. is used, and so on). In general, the input raster maps should use a
  7. grey-scale color table.
  8. <h2>NOTES</h2>
  9. <em>d.rgb</em> does not attempt to quantize the combined image into a
  10. fixed number of colors. Nor does it have an option to generate a
  11. composite layer (see <em>r.composite</em> for that).
  12. The image and raster maps will not display properly if the graphics
  13. device does not have a reasonable sampling of the RGB color-space.
  14. <p>
  15. If color quality of satellite image color composites seems to appear
  16. poor, run <em><a href="i.colors.enhance.html">i.colors.enhance</a></em>
  17. on the selected satellite channels.
  18. <p>
  19. An alternative is the assignment of grey color tables to each band with
  20. <em><a href="r.colors.html">r.colors</a></em>:
  21. <div class="code"><pre>
  22. r.info -r image.1
  23. min=0
  24. max=255
  25. r.colors map=image.1 color=grey
  26. r.colors map=image.2 rast=image.1
  27. r.colors map=image.3 rast=image.1
  28. </pre></div>
  29. <p>
  30. To write out the color composite to a combined R/G/B raster maps, use
  31. <em><a href="r.composite.html">r.composite</a></em>.
  32. <h2>EXAMPLE</h2>
  33. Visual color composite of a LANDSAT scene (North Carolina sample dataset):
  34. <div class="code"><pre>
  35. g.region raster=lsat7_2002_10 -p
  36. d.rgb blue=lsat7_2002_10 green=lsat7_2002_20 red=lsat7_2002_30
  37. </pre></div>
  38. <h2>SEE ALSO</h2>
  39. <em>
  40. <a href="d.colortable.html">d.colortable</a>,
  41. <a href="d.his.html">d.his</a>,
  42. <a href="r.blend.html">r.blend</a>,
  43. <a href="r.mapcalc.html">r.mapcalc</a>,
  44. <a href="r.colors.html">r.colors</a>,
  45. <a href="r.composite.html">r.composite</a>
  46. </em>
  47. <h2>AUTHOR</h2>
  48. Glynn Clements
  49. <p>
  50. <i>Last changed: $Date$</i>