Reads a Netpbm image as input. Does an
The oil transfer is described in
The smearing works like this: First, assume a grayscale image. For each pixel in the image, pamoil looks at a square neighborhood around it. pamoil 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.
For color images, or any arbitrary multi-channel image, pamoil computes each channel (e.g. red, green, and blue) separately the same way as the grayscale case above.
This is the size of the neighborhood used in the smearing. The neighborhood is this many pixels in all four directions.
Based on pgmoil Copyright (C) 1990 by Wilson Bent (email@example.com)
Modified to ppm by Chris Sheppard, June 25, 2001