From 12b6e8bfe98a601a701ff55b2635c00ebdd24e5c Mon Sep 17 00:00:00 2001 From: giraffedata Date: Wed, 24 Jan 2018 18:43:48 +0000 Subject: miscellaneous update git-svn-id: http://svn.code.sf.net/p/netpbm/code/userguide@3131 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- pnmremap.html | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) 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 [-floyd|-fs|-nfloyd|-nofs] -[-norandom] +{[-norandom]|randomseed=n} [-firstisdefault] @@ -236,9 +236,32 @@ comparison difficult.

With -norandom, pnmremap initializes the error accumulators to zero and the output is completely predictable. +

Alternatively, you can use -randomseed to get randomization +across the image, but still have repeatable results. + +

You cannot specify this along with -randomseed. +

-norandom was new in Netpbm 10.39 (June 2007). +

-randomseed=n + +
This option affects a detail of the Floyd-Steinberg dithering process. +It has no effect if you aren't doing Floyd-Steinberg dithering. + +

This option supplies the seed for the random number generator used in the +randomization process described in the explanation of the -norandom +option. If you run pnmremap twice with the same -randomseed +value, you will get identical results. + +

If you do not specify -randomseed, pnmremap chooses a seed +at random, adding another level of randomness to the dithering. + +

You cannot specify this along with -norandom. + +

This option was new in Netpbm 10.82 (March 2018). + +

-firstisdefault
This tells pnmremap to map any input color that is not in -- cgit 1.4.1