summary refs log tree commit diff
path: root/pnmremap.html
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2007-05-24 00:13:55 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2007-05-24 00:13:55 +0000
commita36b94cea66cd3cb243666076c848f572752431f (patch)
treea599ed1f9c8940ff492cfbc7dd4b35b420d30348 /pnmremap.html
parentb1cd97f8de1b23eb87bca7cae7c9289250ec6ff7 (diff)
downloadnetpbm-mirror-a36b94cea66cd3cb243666076c848f572752431f.tar.gz
netpbm-mirror-a36b94cea66cd3cb243666076c848f572752431f.tar.xz
netpbm-mirror-a36b94cea66cd3cb243666076c848f572752431f.zip
"miscellaneous update"
git-svn-id: http://svn.code.sf.net/p/netpbm/code/userguide@313 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'pnmremap.html')
-rw-r--r--pnmremap.html24
1 files changed, 23 insertions, 1 deletions
diff --git a/pnmremap.html b/pnmremap.html
index 6343f43c..9a8d7fb9 100644
--- a/pnmremap.html
+++ b/pnmremap.html
@@ -18,6 +18,8 @@ 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>-norand</b>]
+
 [<B>-firstisdefault</B>]
 
 [<B>-verbose</B>]
@@ -193,7 +195,6 @@ adjacent, to a palette that contains only black and white, it might
 result in an output of black, black, white, white.  Pixel-by-pixel
 mapping would instead map both the gray pixels to the same color.
 
-
 <p>Floyd-Steinberg gives vastly better results on images where
 unmodified quantization has banding or other artifacts, especially
 when going to a small number of colors such as the above IBM set.
@@ -204,6 +205,27 @@ synonym for <B>-nofloyd</B>.
 
 <P>The default is <B>-nofloyd</B>.
 
+
+<dt><b>-norandom</b>
+
+<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>By default, <b>pnmremap</b> initializes the error propagation
+accumulator to random values to avoid the appearance of unwanted
+patterns.  This is an extension of the original Floyd-Steinberg
+algorithm.
+
+<p>A drawback of this is that the same <b>pnmremap</b> on the same
+input produces slightly different output every time, which makes
+comparison difficult.
+
+<p>With <b>-norandom</b>, <b>pnmremap</b> initializes the error
+accumulators to zero and the output is completely predictable.
+
+<p><b>-norandom</b> was new in Netpbm 10.39 (June 2007).
+
+
 <DT><B>-firstisdefault</B>
 
 <DD>This tells <b>pnmremap</b> to map any input color that is not in