home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
netpbma.zip
/
pnm
/
pnmsmooth.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-04-20
|
291b
|
23 lines
extproc sh
#!/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