summary refs log tree commit diff
path: root/pamarith.html
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2020-10-24 16:31:06 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2020-10-24 16:31:06 +0000
commitaddc698fd51a9d99527cf008dc34a085142c7e91 (patch)
treeac4ade58685943df1dcc08b4c0569306538c0eb3 /pamarith.html
parent9a3ae8c0793be5949804d51ac9a29b8195f75751 (diff)
downloadnetpbm-mirror-addc698fd51a9d99527cf008dc34a085142c7e91.tar.gz
netpbm-mirror-addc698fd51a9d99527cf008dc34a085142c7e91.tar.xz
netpbm-mirror-addc698fd51a9d99527cf008dc34a085142c7e91.zip
miscellaneous update
git-svn-id: http://svn.code.sf.net/p/netpbm/code/userguide@3980 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'pamarith.html')
-rw-r--r--pamarith.html17
1 files changed, 16 insertions, 1 deletions
diff --git a/pamarith.html b/pamarith.html
index 7bb20ee2..17bb4558 100644
--- a/pamarith.html
+++ b/pamarith.html
@@ -2,7 +2,7 @@
 <html><head><title>Pamarith User Manual</title></head>
 <body>
 <h1>pamarith</h1>
-Updated: 17 October 2020
+Updated: 24 October 2020
 <br>
 <a href="#index">Table Of Contents</a>
 
@@ -18,6 +18,7 @@ pamarith - perform arithmetic on two Netpbm images
 <b>-equal</b> | <b>-compare</b> |
 <b>-and</b> | <b>-or</b> | <b>-nand</b> | <b>-nor</b> | <b>-xor</b> |
 <b>-shiftleft</b> | <b>-shiftright</b>
+[<b>-closeness=</b><i>N</i>]
 <i>pamfile1</i> <i>pamfile2</i> ...
 
 <p>All options can be abbreviated to their shortest unique prefix.
@@ -234,6 +235,10 @@ may claim two values are not equal when in fact they are, because of
 the precision with which it does the arithmetic.  However, it will never
 say A is greater than B if A is less than B.
 
+<p>You can make the equality test approximate with the <b>-closeness</b>
+option.  This gives the percentage of maxval by which the samples can
+differ and still be considered equal.
+  
 <p><b>-equal</b> was new in Netpbm 10.93 (December 2020).
 
 <dt><b>-compare</b>
@@ -266,6 +271,16 @@ number of bit positions to shift.
 <p>Note that the maxval (see <a href="#maxval">Maxval</a>) determines
 the width of the frame within which you are shifting.
 
+<h3 id="otheroptions">Other</h3>
+  
+<dl compact>
+
+<dt><b>-closeness</b>
+<dd>This changes the meaning of <b>-equal</b>.  It is not valid with any
+other function.  See the description of <b>-equal</b>.
+
+</dt>
+
 </dl>
 
 <h2 id="seealso">SEE ALSO</h2>