summary refs log tree commit diff
path: root/pamshadedrelief.html
blob: 95e701cf4432c9f32db996dbf7c286933dc0d1a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN">
<html><head><title>Pamshadedrelief User Manual</title></head>
<body>
<h1>pamshadedrelief</h1>
Updated: 26 July 2014
<br>
<a href="#index">Table Of Contents</a>

<h2>NAME</h2>

pamshadedrelief - generate shaded relief image from an elevation map

<h2 id="synopsis">SYNOPSIS</h2>

<b>pamshadedrelief</b>

[<b>-gamma</b> <i>g</i>]


<h2 id="description">DESCRIPTION</h2>

<p>This program is part of <a href="index.html">Netpbm</a>.

<p><b>pamshadedrelief</b> creates a shaded relief image from an elevation map.
A shaded relief image is a visual image of terrain, showing the terrain as if
illuminated by oblique light and viewed from above, so that the brightess of
each spot depends upon its slope.  A common example of a shaded relief image
is a relief map of the Earth, which shows mountains and valleys.

<p>The image <b>pamshadedrelief</b> creates is as if illumated by a light
source from the left.

<p>The output image is a PAM with tuple type <b>GRAYSCALE</b>.

<p>The program <b>pamcrater</b> is a good thing to use to demonstrate the
function of <b>pamshadedrelief</b>.  It generates a terrain map of a cratered
landscape.

<pre>
<kbd>
    $ pamcrater | pamshadedrelief | pamx
</kbd>  
</pre>


<h2 id="options">OPTIONS</h2>

<p>In addition to the options common to all programs based on libnetpbm
(most notably <b>-quiet</b>, see <a href="index.html#commonoptions">
Common Options</a>), <b>pamshadedrelief</b> recognizes the following
command line option:

<dl compact>
<dt><b>-gamma</b> <i>factor</i>
<dt><b>-g</b> <i>factor</i>

<dd>The specified <i>factor</i> is used to gamma adjust the image in
the same manner as performed by <b>pnmgamma</b>.  The default value is
1.0, which results in a medium contrast image.  Values larger than 1
lighten the image and reduce contrast, while values less than 1 darken
the image, increasing contrast.

<p>Note that this is separate from the gamma correction that is part of the
definition of the PAM GRAYSCALE format.  The image <b>pamshadedrelief</b>
generates is a genuine, gamma-corrected PAM GRAYSCALE image in any case.  This
option simply changes the contrast and may compensate for a display device
that does not correctly render PAM GRAYSCALE images.

</dl>

<h2 id="designnotes">DESIGN NOTES</h2>

The<b>-gamma</b> option isn't really necessary since you can achieve
the same effect by piping the output from <b>pamshadedrelief</b> through
<b>pnmgamma</b>.  However, <b>pamshadedrelief</b> performs an internal gamma
map anyway in the process of rendering the elevation array into the PAM
GRAYSCALE format, so there's no additional overhead in allowing an additional
gamma adjustment.


<h2 id="seealso">SEE ALSO</h2>

<b><a href="ppmrelief.html">ppmrelief</a></b>

<b><a href="pnmgamma.html">pnmgamma</a></b>,

<b><a href="pnmsmooth.html">pnmsmooth</a></b>

<b><a href="pamcrater.html">pamcrater</a></b>

<b><a href="pam.html">pam</a></b>,


<h2 id="author">AUTHOR</h2>

<p><b>pgmcrater</b>, from which this is derived, was written by John Walker:

<pre>
John Walker
Autodesk SA
Avenue des Champs-Montants 14b
CH-2074 MARIN
Suisse/Schweiz/Svizzera/Svizra/Switzerland
    <b>Usenet:</b><a href="mailto:kelvin@Autodesk.com">kelvin@Autodesk.com</a>
    <b>Fax:</b>038/33 88 15
    <b>Voice:</b>038/33 76 33
</pre>

<p>Permission to use, copy, modify, and distribute this software and
its documentation for any purpose and without fee is hereby granted,
without any conditions or restrictions.  This software is provided
"as is" without express or implied warranty.


<h2 id="history">HISTORY</h2>

<p><b>pgmcrater</b> was split into <b>pamshadedrelief</b> and <b>pamcrater</b>
in Netpbm 10.68 (September 2014).  See the history section of the
<b>pamcrater</b> manual for details.


<hr>
<h2 id="index">Table Of Contents</h2>
<ul>
<li><a href="#synopsis">SYNOPSIS</a>
<li><a href="#description">DESCRIPTION</a>
<li><a href="#options">OPTIONS</a>
<li><a href="#designnotes">DESIGN NOTES</a>
<li><a href="#seealso">SEE ALSO</a>
<li><a href="#author">AUTHOR</a>
<li><a href="#history">HISTORY</a>
</ul>
</body>
</html>