.TL Pamoil User Manual .SH 1 pamoil .LP Updated: 25 June 2001 .br Table Of Contents .SH 2 NAME .LP pamoil - turn a PAM image into an oil painting .SH 2 SYNOPSIS .LP \fBpamoil\fR [\fB-n\fR \fIN\fR] [\fIpamfile\fR] .SH 2 DESCRIPTION .LP .LP This program is part of Netpbm. .LP \fBpamoil\fR reads a Netpbm image as input and does an "oil transfer", and writes the same type of Netpbm image as output. .LP The oil transfer is described in "Beyond Photography" by Holzmann, chapter 4, photo 7. It's a sort of localized smearing. .LP The smearing works like this: First, assume a grayscale image. For each pixel in the image, \fBpamoil\fR looks at a square neighborhood around it. \fBpamoil\fR 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. .LP For color images, or any arbitrary multi-channel image, \fBpamoil\fR computes each channel (e.g. red, green, and blue) separately the same way as the grayscale case above. .LP At the edges of the image, where the regular neighborhood would run off the edge of the image, \fBpamoil\fR uses a clipped neighborhood. .SH 2 OPTIONS .LP .RS .IP "\fB-n\fR \fIsize\fR" This is the size of the neighborhood used in the smearing. The neighborhood is this many pixels in all four directions. .LP The default is 3. .RE .SH 2 SEE ALSO .LP \fBpgmbentley\fR, \fBppmrelief\fR, \fBppm\fR .LP .SH 2 AUTHOR .LP .LP This program is based on pgmoil Copyright (C) 1990 by Wilson Bent (whb@hoh-2.att.com) .LP Modified to ppm by Chris Sheppard, June 25, 2001 .LP Modified to pnm, using pam functions, by Bryan Henderson June 28, 2001. .br \l'5i' .SH 2 Table Of Contents .LP .IP \(bu NAME .IP \(bu SYNOPSIS .IP \(bu DESCRIPTION .IP \(bu OPTIONS .IP \(bu SEE ALSO .IP \(bu AUTHOR .LP