home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
NETWORK
/
netpbm_src.lzh
/
NETPBM
/
PNM
/
pnmsmooth.orig
< prev
next >
Wrap
Text File
|
1996-11-18
|
257b
|
21 lines
#!/bin/sh
#
# pnmsmooth - smooth out an image by replacing each xel with the
# average of its nine immediate neighbors
tmp=/tmp/psm.$$
rm -f $tmp
cat > $tmp << MOO
P2
3 3
18
10 10 10
10 10 10
10 10 10
MOO
pnmconvol $tmp ${1+"$@"}
rm -f $tmp