1Pamoil User Manual(0) Pamoil User Manual(0)
2
3
4
6 pamoil - turn a PAM image into an oil painting
7
8
10 pamoil
11
12 [-n N]
13
14 [pamfile]
15
16
18 This program is part of Netpbm(1).
19
20 pamoil reads a Netpbm image as input and does an 'oil transfer', and
21 writes the same type of Netpbm image as output.
22
23 The oil transfer is described in 'Beyond Photography' by Holzmann,
24 chapter 4, photo 7. It's a sort of localized smearing.
25
26 The smearing works like this: First, assume a grayscale image. For
27 each pixel in the image, pamoil looks at a square neighborhood around
28 it. pamoil determines what is the most common pixel intensity in the
29 neighborhood, and puts a pixel of that intensity into the output in the
30 same position as the input pixel.
31
32 For color images, or any arbitrary multi-channel image, pamoil computes
33 each channel (e.g. red, green, and blue) separately the same way as the
34 grayscale case above.
35
36 At the edges of the image, where the regular neighborhood would run off
37 the edge of the image, pamoil uses a clipped neighborhood.
38
39
41 -n size
42 This is the size of the neighborhood used in the smearing. The
43 neighborhood is this many pixels in all four directions.
44
45 The default is 3.
46
47
48
49
50
52 pgmbentley(1), ppmrelief(1), ppm(1)
53
55 This program is based on pgmoil Copyright (C) 1990 by Wilson Bent
56 (whb@hoh-2.att.com)
57
58 Modified to ppm by Chris Sheppard, June 25, 2001
59
60 Modified to pnm, using pam functions, by Bryan Henderson June 28, 2001.
61
62
63
64netpbm documentation 25 June 2001 Pamoil User Manual(0)