Debian Codegraph @

userguide/pamsharpmap.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN">
2 <html><head><title>Pamsharpmap User Manual</title></head>
3 <body>
4 <h1>pamsharpmap</h1>
5 Updated: 07 February 2004
6 <br>
7
8 <a href="#index">Table Of Contents</a>
9
10 <h2>NAME</h2>
11 pamsharpmap - create map of sharpness in a PNM/PAM image
12
13 <h2 id="synopsis">SYNOPSIS</h2>
14 <b>pamsharpmap</b> [<i>imagefile</i>]
15
16 <h2 id="description">DESCRIPTION</h2>
17
18 <p>This program is part of <a href="index.html">Netpbm</a>.
19
20 <p><b>pamsharpmap</b> reads a Netpbm image (PNM or PAM) and produces
21 an image that shows how sharp it is at each location.
22
23 <p>Sharpness is a measure of how suddenly (in space) colors change in
24 the image. <b>pamsharpmap</b> computes the sharpness of each
25 component color (R, G, B) separately and produces a pixel whose
26 intensity of each component color is directly proportional to the
27 sharpness of that component color at the same location in the input
28 image. Thus, at a point where the image is very sharp in its red and
29 green components, but dull in its blue component, you will see a
30 yellow pixel in the output.
31
32 <p><b>pamsharpmap</b> computes sharpness at a point simply as the
33 average difference in intensity between the pixel at that point and
34 the 8 pixels surrounding it.
35
36 <p>At the edges of the image, where there are not 8 pixels surrounding
37 a pixel, <b>pamsharpmap</b> assumes the image is extended with a black
38 border.
39
40 <p><b>pamsharpmap</b> assumes that the image is a PNM or PNM
41 equivalent PAM. If it isn't, the results are not necessarily
42 meaningful.
43
44 <p>The output image is the same dimensions, depth, and tuple type as
45 the input, and has maxval 255.
46
47 <h2 id="options">OPTIONS</h2>
48
49 <p>There are no command line options defined specifically
50 for <b>pamsharpmap</b>, but it recognizes the options common to all
51 programs based on libnetpbm (See <a href="index.html#commonoptions">
52 Common Options</a>.)
53
54 <h2 id="seealso">SEE ALSO</h2>
55
56 <b><a href="pamsharpness.html">pamsharpness</a></b>,
57 <b><a href="pammasksharpen.html">pammasksharpen</a></b>,
58 <b><a href="pamedge.html">pamedge</a></b>,
59 <b><a href="pam.html">pam</a></b>,
60 <b><a href="pnm.html">pnm</a></b>
61
62 <h2 id="history">HISTORY</h2>
63
64 <p><b>pamsharpmap</b> was added to Netpbm in Release 10.21 (March
65 2004). Bryan Henderson derived it from the program <b>pnmsharp</b> by
66 B.W. van Schooten and distributed as part of the Photopnmtools
67 package.
68
69 <hr>
70 <h2 id="index">Table Of Contents</h2>
71 <ul>
72 <li><a href="#synopsis">SYNOPSIS</a>
73 <li><a href="#description">DESCRIPTION</a>
74 <li><a href="#options">OPTIONS</a>
75 <li><a href="#seealso">SEE ALSO</a>
76 <li><a href="#history">HISTORY</a>
77 </ul>
78 </body>
79 </html>