summaryrefslogtreecommitdiffstats
path: root/upstream/opensuse-leap-15-6/man1/pamoil.1
blob: c358c2975e2f62dbe316af68d1724b97749c29a8 (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
\
.\" 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"

.UN lbAB
.SH NAME

pamoil - turn a PAM image into an oil painting

.UN lbAC
.SH SYNOPSIS

\fBpamoil\fP

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

[\fIpamfile\fP]

.UN lbAD
.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 lbAE
.SH OPTIONS


.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 lbAF
.SH SEE ALSO
.BR "pgmbentley" (1)\c
\&,
.BR "ppmrelief" (1)\c
\&,
.BR "ppm" (5)\c
\&
.PP
.UN lbAG
.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