d.his.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <h2>DESCRIPTION</h2>
  2. <em>HIS</em> stands for hue, intensity, and saturation.
  3. This program produces a raster map layer providing a
  4. visually pleasing combination of hue, intensity, and
  5. saturation values from two or three user-specified raster
  6. map layers.
  7. <p>
  8. The human brain automatically interprets the vast amount of
  9. visual information available according to basic rules.
  10. Color, or <em>hue</em>, is used to categorize objects.
  11. Shading, or <em>intensity</em>, is interpreted as
  12. three-dimensional texturing. Finally, the degree of
  13. haziness, or <em>saturation</em>, is associated with
  14. distance or depth. This program allows data from up to
  15. three raster map layers to be combined into an image which
  16. retains the original information in terms of <em>hue</em>,
  17. <em>intensity</em>, and <em>saturation</em>.
  18. <h2>OPTIONS</h2>
  19. This program can be run non-interactively or
  20. interactively. It will run non-interactively if the user
  21. specifies on the command line the name of a map containing
  22. hue values (<b>hue</b>), and the name(s) of map(s)
  23. containing intensity values (<b>intensity</b>) and/or
  24. saturation values (<b>saturation</b>). The resulting image will
  25. be displayed in the active display frame on the graphics
  26. monitor.
  27. <p>
  28. Alternately, the user can run the program interactively by
  29. typing <b>d.his</b> without naming parameter values on the
  30. command line. In this case, the program will prompt the
  31. user for parameter values using the standard GRASS
  32. GUI interface.
  33. <p>
  34. While any raster map layer can be used to represent the hue
  35. information, map layers with a few very distinct colors
  36. work best. Only raster map layers representing
  37. continuously varying data like elevation, aspect, weights,
  38. intensities, or amounts can suitably be used to provide
  39. intensity and saturation information.
  40. <p>
  41. For example, a visually pleasing image can be
  42. made by using a watershed map for the <em>hue</em> factor,
  43. an aspect map for the <em>intensity</em> factor, and an
  44. elevation map for <em>saturation</em>. (The user may wish
  45. to leave out the elevation information for a first try.)
  46. Ideally, the resulting image should resemble the view from
  47. an aircraft looking at a terrain on a sunny day with a bit
  48. of haze in the valleys.
  49. <p>The <b>brighten</b> option does not truly represent a percentage,
  50. but calling it that makes the option easy to understand, and it
  51. sounds better than <i>Normalized Scaling Factor</i>.
  52. <h2>THE PROCESS</h2>
  53. Each map cell is processed individually. First, the working
  54. color is set to the color of the corresponding cell in the
  55. map layer chosen to represent <em>hue</em>. Second, this
  56. color is multiplied by the <em>red</em> intensity of that
  57. cell in the <em>intensity</em> map layer. This map layer
  58. should have an appropriate gray-scale color table
  59. associated with it. You can ensure this by using the color
  60. manipulation capabilities of
  61. <em><a href="r.colors.html">r.colors</a></em>.
  62. Finally, the color is made somewhat gray-based on the
  63. <em>red</em> intensity of that cell in the
  64. <em>saturation</em> map layer. Again, this map layer
  65. should have a gray-scale color table associated with it.
  66. <h2>NOTES</h2>
  67. The name is misleading. The actual conversion used is
  68. <div class="code"><pre>
  69. <u>H</u>.i.s + <u>G</u>.(1-s)
  70. where
  71. <u>H</u> is the R,G,B color from the hue map
  72. i is the red value from the intensity map
  73. s is the red value from the saturation map
  74. <u>G</u> is 50% gray (R = G = B = 0.5)
  75. </pre></div>
  76. <p>
  77. Either (but not both) of the intensity or the saturation
  78. map layers may be omitted. This means that it is possible
  79. to produce output images that represent combinations of
  80. <em>his, hi,</em> or <em>hs</em>.
  81. <p>Users wishing to store the result in new raster map layers
  82. instead of displaying it on the monitor should use the
  83. command <em><a href="r.his.html">r.his</a></em>.
  84. <h2>EXAMPLE</h2>
  85. <div class="code"><pre>
  86. g.region raster=elevation
  87. r.relief input=elevation output=elevation_shaded_relief
  88. d.mon wx0
  89. d.his hue=elevation intensity=elevation_shaded_relief brighten=50
  90. </pre></div>
  91. <h2>SEE ALSO</h2>
  92. <em>
  93. <a href="d.colortable.html">d.colortable</a>,
  94. <a href="d.frame.html">d.frame</a>,
  95. <a href="d.rgb.html">d.rgb</a>,
  96. <a href="d.shade.html">d.shade</a>,
  97. <a href="r.colors.html">r.colors</a>,
  98. <a href="r.his.html">r.his</a>,
  99. <a href="i.his.rgb.html">i.his.rgb</a>,
  100. <a href="i.rgb.his.html">i.rgb.his</a>
  101. </em>
  102. <h2>AUTHOR</h2>
  103. James Westervelt, U.S. Army Construction Engineering Research Laboratory
  104. <p><i>Last changed: $Date$</i>