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
/
pnmarith.1
< prev
next >
Wrap
Text File
|
1996-11-18
|
1KB
|
37 lines
.TH pnmarith 1 "26 August 1993"
.IX pnmarith
.SH NAME
pnmarith - perform arithmetic on two portable anymaps
.SH SYNOPSIS
.B pnmarith
.BR -add | -subtract | -multiply | -difference | -minimum | -maximum.
.I pnmfile1 pnmfile2
.SH DESCRIPTION
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.
.PP
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.
.PP
The operator
.I -difference
calculates the absolute value of
.I pnmarith -subtract pnmfile1 pnmfile2,
i.e. no truncation is done.
.PP
All flags can be abbreviated to their shortest unique prefix.
.SH "SEE ALSO"
pbmmask(1), pnmpaste(1), pnminvert(1), pnm(5)
.SH AUTHOR
Copyright (C) 1989, 1991 by Jef Poskanzer.
Lightly modified by Marcel Wijkstra <wijkstra@fwi.uva.nl>
.\" Permission to use, copy, modify, and distribute this software and its
.\" documentation for any purpose and without fee is hereby granted, provided
.\" that the above copyright notice appear in all copies and that both that
.\" copyright notice and this permission notice appear in supporting
.\" documentation. This software is provided "as is" without express or
.\" implied warranty.