home *** CD-ROM | disk | FTP | other *** search
/ Mega A/V / mega_av.zip / mega_av / GRAPHUTL / PBMPLUS.ZIP / PNMCONVO.MAN < prev    next >
Text File  |  1991-08-11  |  2KB  |  67 lines

  1.  
  2.  
  3. pnmconvol(1)               Unix Programmer's Manual               pnmconvol(1)
  4.  
  5.  
  6. NNNAAAMMMEEE
  7.      pnmconvol - general MxN convolution on a portable anymap
  8.  
  9. SSSYYYNNNOOOPPPSSSIIISSS
  10.      pppnnnmmmcccooonnnvvvooolll _c_o_n_v_o_l_u_t_i_o_n_f_i_l_e [_p_n_m_f_i_l_e]
  11.  
  12. DDDEEESSSCCCRRRIIIPPPTTTIIIOOONNN
  13.      Reads two portable anymaps as input.   Convolves  the  second  using  the
  14.      first, and writes a portable anymap as output.
  15.  
  16.      Convolution means replacing each pixel with a  weighted  average  of  the
  17.      nearby pixels.  The weights and the area to average are determined by the
  18.      convolution matrix.  The unsigned numbers in  the  convolution  file  are
  19.      offset  by  -maxval/2 to make signed numbers, and then normalized, so the
  20.      actual values in the convolution file are only relative.
  21.  
  22.      Here is a sample convolution file;  it  does  a  simple  average  of  the
  23.      immediate neighbors, resulting in a smoothed image:
  24.          P2
  25.          3 3
  26.          18
  27.          10 10 10
  28.          10 10 10
  29.          10 10 10
  30.  
  31.      The convolution file will usually be a bitmap or  graymap  instead  of  a
  32.      pixmap,  so  that  the  same  convolution  gets  applied  to  each  color
  33.      component.  However, if you want to use  a  pixmap  and  do  a  different
  34.      convolution to different colors, you can certainly do that.
  35.  
  36. SSSEEEEEE AAALLLSSSOOO
  37.      pnm(5)
  38.  
  39. AAAUUUTTTHHHOOORRR
  40.      Copyright (C) 1989, 1991 by Jef Poskanzer.
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.                                13 January 1991                               1
  65.  
  66.  
  67.