Unix/Linux Go Back    

RedHat 9 (Linux i386) - man page for pgmkernel (redhat section 1)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

pgmkernel(1)									     pgmkernel(1)

       pgmkernel - generate a convolution kernel

       pgmkernel [ -weight w ] width [ height ]

       Generates  a  portable graymap array of size width x height (or width x width if height is
       not specified) to be used as a convolution file by pnmconvol.  The data in the convolution
       array K are computed according to the formula:

       K(i,j) = 1 / ( 1 + w * sqrt((i-width/2)^2 + (j-height/2)^2))

       where  w  is  a coefficient specified via the -weight flag, and width and height are the X
       and Y filter sizes.

       The output PGM file is always written out in ASCII format.

       The optional -weight flag should be a real number greater than -1.  The default	value  is

       The  computation  time is proportional to width * height.  This increases rapidly with the
       increase of the kernel size.  A better approach could be using a FFT in these cases.

       pnmconvol(1), pnmsmooth(1)

       Alberto Accomazzi (alberto@cfa.harvard.edu).

					 10 December 1992			     pgmkernel(1)
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 12:38 AM.