summary refs log tree commit diff
path: root/pamarith.html
diff options
context:
space:
mode:
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>