about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2018-01-24 18:43:48 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2018-01-24 18:43:48 +0000
commit12b6e8bfe98a601a701ff55b2635c00ebdd24e5c (patch)
tree937a2cc620fe6e337c3c545bf789a427917dfb9d
parent5f285c302ff820b3bc3389b139ebe3dd45ab03c6 (diff)
downloadnetpbm-mirror-12b6e8bfe98a601a701ff55b2635c00ebdd24e5c.tar.gz
netpbm-mirror-12b6e8bfe98a601a701ff55b2635c00ebdd24e5c.tar.xz
netpbm-mirror-12b6e8bfe98a601a701ff55b2635c00ebdd24e5c.zip
miscellaneous update
git-svn-id: http://svn.code.sf.net/p/netpbm/code/userguide@3131 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r--pnmremap.html25
1 files changed, 24 insertions, 1 deletions
diff --git a/pnmremap.html b/pnmremap.html
index 40047fc6..40372588 100644
--- a/pnmremap.html
+++ b/pnmremap.html
@@ -18,7 +18,7 @@ pnmremap - replace colors in a PNM image with colors from another set
 
 [<B>-floyd</B>|<B>-fs</B>|<B>-nfloyd</B>|<B>-nofs</B>]
 
-[<b>-norandom</b>]
+{[<b>-norandom</b>]|<b>randomseed=</b><i>n</i>}
 
 [<B>-firstisdefault</B>]
 
@@ -236,9 +236,32 @@ comparison difficult.
 <p>With <b>-norandom</b>, <b>pnmremap</b> initializes the error
 accumulators to zero and the output is completely predictable.
 
+<p>Alternatively, you can use <b>-randomseed</b> to get randomization
+across the image, but still have repeatable results.
+
+<p>You cannot specify this along with <b>-randomseed</b>.
+  
 <p><b>-norandom</b> was new in Netpbm 10.39 (June 2007).
 
 
+<dt><b>-randomseed=</b><i>n</i>
+
+<dd>This option affects a detail of the Floyd-Steinberg dithering process.
+It has no effect if you aren't doing Floyd-Steinberg dithering.
+
+<p>This option supplies the seed for the random number generator used in the
+randomization process described in the explanation of the <b>-norandom</b>
+option.  If you run <b>pnmremap</b> twice with the same <b>-randomseed</b>
+value, you will get identical results.
+
+<p>If you do not specify <b>-randomseed</b>, <b>pnmremap</b> chooses a seed
+at random, adding another level of randomness to the dithering.
+
+<p>You cannot specify this along with <b>-norandom</b>.
+
+<p>This option was new in Netpbm 10.82 (March 2018).
+  
+
 <DT><B>-firstisdefault</B>
 
 <DD>This tells <b>pnmremap</b> to map any input color that is not in