r.composite.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <h2>DESCRIPTION</h2>
  2. This program combines three raster maps to form a
  3. composite RGB map. For each input map layer, the corresponding
  4. component from the map's color table is used (e.g. for
  5. the red map, the red component is used, and so on). In
  6. general, the maps should use a grey-scale color table.
  7. <h2>NOTES</h2>
  8. The default number of intensity levels for each component is 32,
  9. resulting in a total of 32768 possible colors (equivalent to 15 bits
  10. per pixel). If significantly more levels than this are used, not only
  11. will <em>r.composite</em> take longer to run, but displaying the
  12. resulting layer with <em><a href="d.rast.html">d.rast</a></em> will
  13. also be significantly slower.
  14. <p>Floyd-Steinberg dithering is optionally used with the <b>-d</b> flag.
  15. <h2>EXAMPLES</h2>
  16. <h3>RGB composite of three satellite bands</h3>
  17. Color composite of a LANDSAT scene (North Carolina sample dataset):
  18. <div class="code"><pre>
  19. g.region raster=lsat7_2002_10
  20. r.composite blue=lsat7_2002_10 green=lsat7_2002_20 red=lsat7_2002_30 \
  21. output=lsat7_2002_rgb
  22. </pre></div>
  23. <h3>RGB composite with dithering</h3>
  24. Creating a composite RGB raster using 32 color levels per layer, with dithering:
  25. <div class="code"><pre>
  26. r.composite -d red=elevation.r green=elevation.g blue=elevation.b \
  27. output=elev.composite
  28. </pre></div>
  29. <h2>SEE ALSO</h2>
  30. <em>
  31. <a href="d.rast.html">d.rast</a>,
  32. <a href="d.rgb.html">d.rgb</a>,
  33. <a href="r.blend.html">r.blend</a>,
  34. <a href="r.colors.html">r.colors</a>,
  35. <a href="r.rgb.html">r.rgb</a>
  36. </em>
  37. <p><em>
  38. <a href="http://en.wikipedia.org/wiki/Floyd-Steinberg_dithering">Wikipedia Entry: Floyd-Steinberg dithering</a>
  39. </em>
  40. <h2>AUTHOR</h2>
  41. Glynn Clements
  42. <p><i>Last changed: $Date$</i>