about summary refs log tree commit diff
path: root/pamoil.html
blob: 8bae9fa170042fdaa6027e8f9646822c496c05c8 (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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//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>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>

pamoil - turn a PAM image into an oil painting

<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>

<B>pamoil</B>

[<B>-n</B> <I>N</I>]

[<I>pamfile</I>]

<A NAME="lbAD">&nbsp;</A>
<H2>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 &quot;oil
transfer&quot;, and writes the same type of Netpbm image as output.

<P>The oil transfer is described in &quot;Beyond Photography&quot; 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.

<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>

<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>


<A NAME="lbAF">&nbsp;</A>
<H2>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>

<P>
<A NAME="lbAG">&nbsp;</A>
<H2>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>
<A NAME="index">&nbsp;</A>
<H2>Table Of Contents</H2>
<UL>
<LI><A HREF="#lbAB">NAME</A>
<LI><A HREF="#lbAC">SYNOPSIS</A>
<LI><A HREF="#lbAD">DESCRIPTION</A>
<LI><A HREF="#lbAE">OPTIONS</A>
<LI><A HREF="#lbAF">SEE ALSO</A>
<LI><A HREF="#lbAG">AUTHOR</A>
</UL>
</BODY>
</HTML>