Debian Codegraph @

userguide/pamoil.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN">
2 <html><head><title>Pamoil User Manual</title></head>
3 <body>
4 <h1>pamoil</h1>
5 Updated: 25 June 2001
6 <br>
7 <a href="#index">Table Of Contents</a>
8
9 <h2>NAME</h2>
10
11 pamoil - turn a PAM image into an oil painting
12
13 <h2 id="synopsis">SYNOPSIS</h2>
14
15 <b>pamoil</b>
16
17 [<b>-n</b> <i>N</i>]
18
19 [<i>pamfile</i>]
20
21 <h2 id="description">DESCRIPTION</h2>
22
23 <p>This program is part of <a href="index.html">Netpbm</a>.
24
25 <p><b>pamoil</b> reads a Netpbm image as input and does an "oil
26 transfer", and writes the same type of Netpbm image as output.
27
28 <p>The oil transfer is described in "Beyond Photography" by
29 Holzmann, chapter 4, photo 7. It's a sort of localized smearing.
30
31 <p>The smearing works like this: First, assume a grayscale image. For
32 each pixel in the image, <b>pamoil</b> looks at a square neighborhood
33 around it. <b>pamoil</b> determines what is the most common pixel
34 intensity in the neighborhood, and puts a pixel of that intensity into
35 the output in the same position as the input pixel.
36
37 <p>For color images, or any arbitrary multi-channel image,
38 <b>pamoil</b> computes each channel (e.g. red, green, and blue)
39 separately the same way as the grayscale case above.
40
41 <p>At the edges of the image, where the regular neighborhood would run
42 off the edge of the image, <b>pamoil</b> uses a clipped neighborhood.
43
44 <h2 id="options">OPTIONS</h2>
45
46 <p>In addition to the options common to all programs based on libnetpbm
47 (most notably <b>-quiet</b>, see <a href="index.html#commonoptions">
48 Common Options</a>), <b>pamoil</b> recognizes the following
49 command line option:
50
51 <dl compact>
52 <dt><b>-n</b> <i>size</i>
53
54 <dd>This is the size of the neighborhood used in the smearing. The
55 neighborhood is this many pixels in all four directions.
56
57 <p>The default is 3.
58
59 </dl>
60
61 <h2 id="seealso">SEE ALSO</h2>
62
63 <b><a href="pgmbentley.html">pgmbentley</a></b>,
64
65 <b><a href="ppmrelief.html">ppmrelief</a></b>,
66
67 <b><a href="ppm.html">ppm</a></b>
68
69 <h2 id="author">AUTHOR</h2>
70
71 <p>This program is based on pgmoil Copyright (C) 1990 by Wilson Bent
72 (<a href="mailto:[email protected]">[email protected]</a>)
73
74 <p>Modified to ppm by Chris Sheppard, June 25, 2001
75
76 <p>Modified to pnm, using pam functions, by Bryan Henderson June 28,
77 2001.
78
79 <hr>
80 <h2 id="index">Table Of Contents</h2>
81 <ul>
82 <li><a href="#synopsis">SYNOPSIS</a>
83 <li><a href="#description">DESCRIPTION</a>
84 <li><a href="#options">OPTIONS</a>
85 <li><a href="#seealso">SEE ALSO</a>
86 <li><a href="#author">AUTHOR</a>
87 </ul>
88 </body>
89 </html>