summary refs log tree commit diff
path: root/pamoil.html
blob: dbb5cda7fe86dab963b2e14e18994c861e24c965 (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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN">
<html><head><title>Pamoil User Manual</title></head>
<body>
<h1>pamoil</h1>
Updated: 25 June 2001
<br>
<a href="#index">Table Of Contents</a>

<h2>NAME</h2>

pamoil - turn a PAM image into an oil painting

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

<b>pamoil</b>

[<b>-n</b> <i>N</i>]

[<i>pamfile</i>]

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

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

<p><b>pamoil</b> reads a Netpbm image as input and does an "oil
transfer", and writes the same type of Netpbm image as output.

<p>The oil transfer is described in "Beyond Photography" by
Holzmann, chapter 4, photo 7.  It's a sort of localized smearing.

<p>The smearing works like this: First, assume a grayscale image.  For
each pixel in the image, <b>pamoil</b> looks at a square neighborhood
around it.  <b>pamoil</b> determines what is the most common pixel
intensity in the neighborhood, and puts a pixel of that intensity into
the output in the same position as the input pixel.

<p>For color images, or any arbitrary multi-channel image,
<b>pamoil</b> computes each channel (e.g. red, green, and blue)
separately the same way as the grayscale case above.

<p>At the edges of the image, where the regular neighborhood would run
off the edge of the image, <b>pamoil</b> uses a clipped neighborhood.

<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>pamoil</b> recognizes the following
command line option:

<dl compact>
<dt><b>-n</b> <i>size</i>

<dd>This is the size of the neighborhood used in the smearing.  The
neighborhood is this many pixels in all four directions.

<p>The default is 3.

</dl>

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

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

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

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

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

<p>This program is based on pgmoil Copyright (C) 1990 by Wilson Bent
(<a href="mailto:whb@hoh-2.att.com">whb@hoh-2.att.com</a>)

<p>Modified to ppm by Chris Sheppard, June 25, 2001

<p>Modified to pnm, using pam functions, by Bryan Henderson June 28,
2001.

<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="#seealso">SEE ALSO</a>
<li><a href="#author">AUTHOR</a>
</ul>
</body>
</html>