80 lines
2.1 KiB
HTML
80 lines
2.1 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of pnmarith</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>pnmarith</H1>
|
|
Section: User Commands (1)<BR>Updated: 26 August 1993<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="ixAAB"></A>
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
pnmarith - perform arithmetic on two portable anymaps
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>pnmarith</B>
|
|
|
|
<B>-add</B>|<B>-subtract</B>|<B>-multiply</B>|<B>-difference</B>|<B>-minimum</B>|<B>-maximum.</B>
|
|
|
|
<I>pnmfile1 pnmfile2</I>
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
Reads two portable anymaps as input.
|
|
Performs the specified arithmetic operation,
|
|
and produces a portable anymap as output.
|
|
The two input anymaps must be the same width and height.
|
|
<P>
|
|
|
|
The arithmetic is performed between corresponding pixels in the two
|
|
anymaps, as if maxval was 1.0, black was 0.0, and a linear scale in between.
|
|
Results that fall outside of [0..1) are truncated.
|
|
<P>
|
|
|
|
The operator
|
|
<I>-difference</I>
|
|
|
|
calculates the absolute value of
|
|
<I>pnmarith -subtract pnmfile1 pnmfile2,</I>
|
|
|
|
i.e. no truncation is done.
|
|
<P>
|
|
|
|
All flags can be abbreviated to their shortest unique prefix.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<A HREF="/cgi-bin/man/man2html?1+pbmmask">pbmmask</A>(1), <A HREF="/cgi-bin/man/man2html?1+pnmpaste">pnmpaste</A>(1), <A HREF="/cgi-bin/man/man2html?1+pnminvert">pnminvert</A>(1), <A HREF="/cgi-bin/man/man2html?5+pnm">pnm</A>(5)
|
|
<A NAME="lbAF"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
Copyright (C) 1989, 1991 by Jef Poskanzer.
|
|
Lightly modified by Marcel Wijkstra <<A HREF="mailto:wijkstra@fwi.uva.nl">wijkstra@fwi.uva.nl</A>>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="4"><A HREF="#lbAE">SEE ALSO</A><DD>
|
|
<DT id="5"><A HREF="#lbAF">AUTHOR</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:23 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|