home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / NETWORK / netpbm_docs.lzh / NETPBM / DOCS / pgmkernel.1 < prev    next >
Text File  |  1996-11-18  |  1KB  |  61 lines

  1. .TH pgmkernel 1 "10 December 1992"
  2. .IX pgmkernel
  3. .SH NAME
  4. pgmkernel - generate a convolution kernel
  5. .SH SYNOPSIS
  6. .B pgmkernel
  7. [
  8. .B \-weight
  9. .I w
  10. ]
  11. .I width 
  12. .I height 
  13. ]
  14. .SH DESCRIPTION
  15. Generates a portable graymap array of size
  16. .I width 
  17. .I height 
  18. (or 
  19. .I width 
  20. .I width 
  21. if 
  22. .I height 
  23. is not specified) to be used as a convolution file by
  24. .BR pnmconvol .
  25. The data in the convolution array K are computed according to the
  26. formula:
  27. .PP
  28. K(i,j) = 1 / ( 1 + w * sqrt((i-width/2)^2 + (j-height/2)^2)) 
  29. .PP
  30. where 
  31. .I w 
  32. is a coefficient specified via the 
  33. .I \-weight 
  34. flag, and
  35. .I width 
  36. and 
  37. .I height
  38. are the X and Y filter sizes.
  39. .PP
  40. The output PGM file is always written out in ASCII format.
  41. .SH OPTIONS
  42. The optional 
  43. .I -weight 
  44. flag should be a real number greater than -1.
  45. The default value is 6.0.
  46. .SH BUGS
  47. The computation time is proportional to 
  48. .I width 
  49. .IR height .
  50. This increases rapidly with the increase of the kernel size.  
  51. A better approach could be using a FFT in these cases.
  52. .SH "SEE ALSO"
  53. pnmconvol(1), pnmsmooth(1)
  54. .SH AUTHOR
  55. Alberto Accomazzi (alberto@cfa.harvard.edu).
  56.  
  57.