home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / NETWORK / netpbm_src.lzh / NETPBM / PNM / pnmarith.1.orig < prev    next >
Text File  |  1996-11-18  |  1KB  |  37 lines

  1. .TH pnmarith 1 "26 August 1993"
  2. .IX pnmarith
  3. .SH NAME
  4. pnmarith - perform arithmetic on two portable anymaps
  5. .SH SYNOPSIS
  6. .B pnmarith
  7. .BR -add | -subtract | -multiply | -difference
  8. .I pnmfile1 pnmfile2
  9. .SH DESCRIPTION
  10. Reads two portable anymaps as input.
  11. Performs the specified arithmetic operation,
  12. and produces a portable anymap as output.
  13. The two input anymaps must be the same width and height.
  14. .PP
  15. The arithmetic is performed between corresponding pixels in the two
  16. anymaps, as if maxval was 1.0, black was 0.0, and a linear scale in between.
  17. Results that fall outside of [0..1) are truncated.
  18. .PP
  19. The operator
  20. .I -difference
  21. calculates the absolute value of
  22. .I pnmarith -subtract pnmfile1 pnmfile2,
  23. i.e. no truncation is done.
  24. .PP
  25. All flags can be abbreviated to their shortest unique prefix.
  26. .SH "SEE ALSO"
  27. pbmmask(1), pnmpaste(1), pnminvert(1), pnm(5)
  28. .SH AUTHOR
  29. Copyright (C) 1989, 1991 by Jef Poskanzer.
  30. Lightly modified by Marcel Wijkstra <wijkstra@fwi.uva.nl>
  31. .\" Permission to use, copy, modify, and distribute this software and its
  32. .\" documentation for any purpose and without fee is hereby granted, provided
  33. .\" that the above copyright notice appear in all copies and that both that
  34. .\" copyright notice and this permission notice appear in supporting
  35. .\" documentation.  This software is provided "as is" without express or
  36. .\" implied warranty.
  37.