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

  1. extproc sh
  2.  
  3. #!/bin/sh
  4. #
  5. # pnmsmooth - smooth out an image by replacing each xel with the
  6. #             average of its nine immediate neighbors
  7.  
  8. tmp=/tmp/psm.$$
  9. rm -f $tmp
  10.  
  11. cat > $tmp << MOO
  12. P2
  13. 3 3
  14. 18
  15. 10 10 10
  16. 10 10 10
  17. 10 10 10
  18. MOO
  19.  
  20. pnmconvol $tmp ${1+"$@"}
  21.  
  22. rm -f $tmp
  23.