#!/bin/sh -e
#
# pnmsmooth - smooth out an image by replacing each xel with the
#             average of its nine immediate neighbors

tmp=`tempfile -p psm -m 600`

cat > $tmp << MOO
P2
3 3
18
10 10 10
10 10 10
10 10 10
MOO

pnmconvol $tmp ${1+"$@"}

rm -f $tmp
