1Pamshadedrelief User Manual(0)                  Pamshadedrelief User Manual(0)
2
3
4

NAME

6       pamshadedrelief - generate shaded relief image from an elevation map
7
8

SYNOPSIS

10       pamshadedrelief
11
12       [-gamma g]
13
14
15

DESCRIPTION

17       This program is part of Netpbm(1).
18
19       pamshadedrelief creates a shaded relief image from an elevation map.  A
20       shaded relief image is a visual image of terrain, showing  the  terrain
21       as  if  illuminated by oblique light and viewed from above, so that the
22       brightess of each spot depends upon its slope.  A common example  of  a
23       shaded relief image is a relief map of the Earth, which shows mountains
24       and valleys.
25
26       The image pamshadedrelief creates is as if illumated by a light  source
27       from the left.
28
29       The output image is a PAM with tuple type GRAYSCALE.
30
31       The  program  pamcrater is a good thing to use to demonstrate the func‐
32       tion of pamshadedrelief.  It generates a  terrain  map  of  a  cratered
33       landscape.
34
35           $ pamcrater | pamshadedrelief | pamx
36
37
38
39
40

OPTIONS

42       In  addition  to  the options common to all programs based on libnetpbm
43       (most notably -quiet, see
44        Common Options ⟨index.html#commonoptions⟩  ),  pamshadedrelief  recog‐
45       nizes the following command line option:
46
47
48
49       -gamma factor
50
51       -g factor
52              The  specified  factor  is used to gamma adjust the image in the
53              same manner as performed by pnmgamma.  The default value is 1.0,
54              which  results in a medium contrast image.  Values larger than 1
55              lighten the image and reduce contrast, while values less than  1
56              darken the image, increasing contrast.
57
58              Note  that  this  is  separate from the gamma correction that is
59              part of the definition of the PAM GRAYSCALE format.   The  image
60              pamshadedrelief  generates  is  a  genuine,  gamma-corrected PAM
61              GRAYSCALE image in any case.  This  option  simply  changes  the
62              contrast  and  may compensate for a display device that does not
63              correctly render PAM GRAYSCALE images.
64
65
66
67

DESIGN NOTES

69       The-gamma option isn't really necessary since you can achieve the  same
70       effect  by  piping  the  output  from pamshadedrelief through pnmgamma.
71       However, pamshadedrelief performs an internal gamma map anyway  in  the
72       process of rendering the elevation array into the PAM GRAYSCALE format,
73       so there's no additional overhead in allowing an additional  gamma  ad‐
74       justment.
75
76
77

SEE ALSO

79       ppmrelief(1) pnmgamma(1), pnmsmooth(1) pamcrater(1) pam(1),
80
81
82

AUTHOR

84       pgmcrater, from which this is derived, was written by John Walker:
85
86       John Walker
87       Autodesk SA
88       Avenue des Champs-Montants 14b
89       CH-2074 MARIN
90       Suisse/Schweiz/Svizzera/Svizra/Switzerland
91           Usenet:kelvin@Autodesk.com
92           Fax:038/33 88 15
93           Voice:038/33 76 33
94
95
96       Permission  to  use, copy, modify, and distribute this software and its
97       documentation for any purpose and without fee is hereby granted,  with‐
98       out  any conditions or restrictions.  This software is provided "as is"
99       without express or implied warranty.
100
101
102

HISTORY

104       pgmcrater was split into pamshadedrelief and pamcrater in Netpbm  10.68
105       (September  2014).  See the history section of the pamcrater manual for
106       details.
107

DOCUMENT SOURCE

109       This manual page was generated by the Netpbm tool 'makeman'  from  HTML
110       source.  The master documentation is at
111
112              http://netpbm.sourceforge.net/doc/pamshadedrelief.html
113
114netpbm documentation             26 July 2014   Pamshadedrelief User Manual(0)
Impressum