summaryrefslogtreecommitdiffstats
path: root/upstream/fedora-40/man1/pamoil.1
blob: 7cb0c1ca86747b742d2ba50f7a70a43066171950 (plain)
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
\
.\" This man page was generated by the Netpbm tool 'makeman' from HTML source.
.\" Do not hand-hack it!  If you have bug fixes or improvements, please find
.\" the corresponding HTML page on the Netpbm website, generate a patch
.\" against that, and send it to the Netpbm maintainer.
.TH "Pamoil User Manual" 0 "25 June 2001" "netpbm documentation"

.SH NAME

pamoil - turn a PAM image into an oil painting

.UN synopsis
.SH SYNOPSIS

\fBpamoil\fP

[\fB-n\fP \fIN\fP]

[\fIpamfile\fP]

.UN description
.SH DESCRIPTION
.PP
This program is part of
.BR "Netpbm" (1)\c
\&.
.PP
\fBpamoil\fP reads a Netpbm image as input and does an "oil
transfer", and writes the same type of Netpbm image as output.
.PP
The oil transfer is described in "Beyond Photography" by
Holzmann, chapter 4, photo 7.  It's a sort of localized smearing.
.PP
The smearing works like this: First, assume a grayscale image.  For
each pixel in the image, \fBpamoil\fP looks at a square neighborhood
around it.  \fBpamoil\fP 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.
.PP
For color images, or any arbitrary multi-channel image,
\fBpamoil\fP computes each channel (e.g. red, green, and blue)
separately the same way as the grayscale case above.
.PP
At the edges of the image, where the regular neighborhood would run
off the edge of the image, \fBpamoil\fP uses a clipped neighborhood.

.UN options
.SH OPTIONS
.PP
In addition to the options common to all programs based on libnetpbm
(most notably \fB-quiet\fP, see 
.UR index.html#commonoptions
 Common Options
.UE
\&), \fBpamoil\fP recognizes the following
command line option:


.TP
\fB-n\fP \fIsize\fP
This is the size of the neighborhood used in the smearing.  The
neighborhood is this many pixels in all four directions.
.sp
The default is 3.



.UN seealso
.SH SEE ALSO
.BR "pgmbentley" (1)\c
\&,
.BR "ppmrelief" (1)\c
\&,
.BR "ppm" (1)\c
\&

.UN author
.SH AUTHOR
.PP
This program is based on pgmoil Copyright (C) 1990 by Wilson Bent
(\fIwhb@hoh-2.att.com\fP)
.PP
Modified to ppm by Chris Sheppard, June 25, 2001
.PP
Modified to pnm, using pam functions, by Bryan Henderson June 28,
2001.
.SH DOCUMENT SOURCE
This manual page was generated by the Netpbm tool 'makeman' from HTML
source.  The master documentation is at
.IP
.B http://netpbm.sourceforge.net/doc/pamoil.html
.PP