Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 413e0bdb3c48563b2d8d9038d07d5533 > files > 1506

grass-6.3.0-15.fc13.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>GRASS GIS: d.his</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="grassdocs.css" type="text/css">
</head>
<body bgcolor="white">

<img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade>

<h2>NAME</h2>
<em><b>d.his</b></em>  - Displays the result obtained by combining hue, intensity, and saturation (his) values from user-specified input raster map layers.
<h2>KEYWORDS</h2>
display
<h2>SYNOPSIS</h2>
<b>d.his</b><br>
<b>d.his help</b><br>
<b>d.his</b> [-<b>n</b>] <b>h_map</b>=<em>string</em>  [<b>i_map</b>=<em>string</em>]   [<b>s_map</b>=<em>string</em>]   [<b>brighten</b>=<em>integer</em>]   [--<b>verbose</b>]  [--<b>quiet</b>] 

<h3>Flags:</h3>
<DL>
<DT><b>-n</b></DT>
<DD>Respect NULL values while drawing</DD>

<DT><b>--verbose</b></DT>
<DD>Verbose module output</DD>
<DT><b>--quiet</b></DT>
<DD>Quiet module output</DD>
</DL>

<h3>Parameters:</h3>
<DL>
<DT><b>h_map</b>=<em>string</em></DT>
<DD>Name of layer to be used for HUE</DD>

<DT><b>i_map</b>=<em>string</em></DT>
<DD>Name of layer to be used for INTENSITY</DD>

<DT><b>s_map</b>=<em>string</em></DT>
<DD>Name of layer to be used for SATURATION</DD>

<DT><b>brighten</b>=<em>integer</em></DT>
<DD>Percent to brighten intensity channel</DD>
<DD>Options: <em>-99-99</em></DD>
<DD>Default: <em>0</em></DD>

</DL>
<H2>DESCRIPTION</H2>

<EM>his</EM> stands for hue, intensity, and saturation.
This program produces a raster map layer providing a
visually pleasing combination of hue, intensity, and
saturation values from two or three user-specified raster
map layers.

<P>

The human brain automatically interprets the vast amount of
visual information available according to basic rules. 
Color, or <EM>hue</EM>, is used to categorize objects. 
Shading, or <EM>intensity</EM>, is interpreted as
three-dimensional texturing. Finally, the degree of
haziness, or <EM>saturation</EM>, is associated with
distance or depth. This program allows data from up to
three raster map layers to be combined into an image which
retains the original information in terms of <EM>hue</EM>,
<EM>intensity</EM>, and <EM>saturation</EM>.

<H2>OPTIONS</H2>

This program can be run non-interactively or
interactively.  It will run non-interactively if the user
specifies on the command line the name of a map containing
hue values (<B>h_map</B>), and the name(s) of map(s)
containing intensity values (<B>i_map</B>) and/or
saturation values (<B>s_map</B>).  The resulting image will
be displayed in the active display frame on the graphics
monitor.

<P>

Alternately, the user can run the program interactively by
typing <B>d.his</B> without naming parameter values on the
command line.  In this case, the program will prompt the
user for parameter values using the standard GRASS 
GUI interface.

<P>

While any raster map layer can be used to represent the hue
information, map layers with a few very distinct colors
work best.  Only raster map layers representing
continuously varying data like elevation, aspect, weights,
intensities, or amounts can suitably be used to provide
intensity and saturation information.

<P>

For example, a visually pleasing image can be
made by using a watershed map for the <EM>hue</EM> factor,
an aspect map for the <EM>intensity</EM> factor, and an
elevation map for <EM>saturation</EM>.  (The user may wish
to leave out the elevation information for a first try.)
Ideally, the resulting image should resemble the view from
an aircraft looking at a terrain on a sunny day with a bit
of haze in the valleys.

<P>
The <b>brighten</b> option does not truly represent a percentage,
but calling it that makes the option easy to understand, and it
sounds better than <i>Normalized Scaling Factor</i>.


<H2>THE PROCESS</H2>

Each map cell is processed individually. First, the working
color is set to the color of the corresponding cell in the
map layer chosen to represent <EM>HUE</EM>.  Second, this
color is multiplied by the <EM>red</EM> intensity of that
cell in the <EM>INTENSITY</EM> map layer.  This map layer
should have an appropriate gray-scale color table
associated with it. You can ensure this by using the color
manipulation capabilities of
<EM><A HREF="d.colors.html">d.colors</A></EM> or
<EM><A HREF="r.colors.html">r.colors</A></EM>.

Finally, the color is made somewhat gray-based on the
<EM>red</EM> intensity of that cell in the
<EM>SATURATION</EM> map layer.  Again, this map layer
should have a gray-scale color table associated with it.

<H2>NOTES</H2>

The name is misleading. The actual conversion used is

<PRE>
  <U>H</U>.i.s + <U>G</U>.(1-s)

where

  <U>H</U>   is the R,G,B color from the hue map
  i   is the red value from the intensity map
  s   is the red value from the saturation map
  <U>G</U>   is 50% gray (R = G = B = 0.5)

</PRE>

<P>

Either (but not both) of the intensity or the saturation
map layers may be omitted. This means that it is possible
to produce output images that represent combinations of
<EM>his, hi,</EM> or <EM>hs</EM>.

<P>
Users wishing to store the result in new raster map layers
instead of displaying it on the monitor should use the
program <EM><A HREF="r.his.html">r.his</A></EM>.


<H2>EXAMPLE</H2>
<h4>Spearfish dataset</h4>

<div class="code"><pre>
  g.region rast=elevation.dem
  r.shaded.relief map=elevation.dem shad=elev.shad_relf
  d.mon x1
  d.his h=elevation.dem i=elev.shad_relf brighten=50
</pre></div>
<BR>

<H2>SEE ALSO</H2>

<EM>
<A HREF="d.colors.html">d.colors</A>,
<A HREF="d.colortable.html">d.colortable</A>,
<A HREF="d.frame.html">d.frame</A>,
<A HREF="d.rgb.html">d.rgb</A>,
<A HREF="r.colors.html">r.colors</A>,
<A HREF="r.his.html">r.his</A>,
<A HREF="i.his.rgb.html">i.his.rgb</A>,
<A HREF="i.rgb.his.html">i.rgb.his</A>,
<A HREF="hsv.rgb.sh.html">hsv.rgb.sh</A>,
<A HREF="rgb.hsv.sh.html">rgb.hsv.sh</A>
</EM>

<H2>AUTHOR</H2>

James Westervelt, U.S. Army Construction Engineering Research Laboratory

<p>
<i>Last changed: $Date: 2007-05-16 07:17:40 +0200 (Wed, 16 May 2007) $</i>
<HR>
<P><a href="index.html">Main index</a> - <a href="display.html">display index</a> - <a href="full_index.html">Full index</a></P>
<P>&copy; 2003-2008 <a href="http://grass.osgeo.org">GRASS Development Team</a></p>
</body>
</html>