Debian Codegraph @

toolbin/halftone/gen_stochastic/README

raw
1
2 gen_stochastic is a Program to generate a stochastic threshold array that has
3 good edge blending and high frequency spatial distribution.
4
5 The output file (the "outfile" command line parameter) is a "turn on sequence"
6 (tos) consisting of a header line that has a "# W=SIZEW H=SIZEH" where SIZEW
7 is the widh of the threshold array and SIZEH is the height. Following the
8 header line are lines with two numbers separated by a tab character. These
9 are the X and Y coordinates of the next dot to be turned on the the sequence.
10
11 Usage: gen_stochastic [ options ] SIZEWxSIZEH outfile [ -g ghostscript args ...]
12
13 SIZEWxSIZEH are the width and height of the threshold array separated
14 by a lower case 'x'. If the threshold array is square, then only the
15 first number is required and the 'x' should not be present. Maximum
16 value is 512 (MAX_ARRAY_WIDTH, MAX_ARRAY_HEIGHT compile time option).
17
18 'outfile' is the name of the threshold array file.
19
20 options are any combination of the following:
21
22 -m# set the minimum dot size/shape pattern. This is an index
23 to a specific size/shape table as follows:
24
25 0: 1: 2: 3: 4: 5:
26 x xx x xx x xx
27 x x x xx
28
29 6: 7: 8: 9: 10: 11: 12: 13:
30 xxx xxx xxx xxx xxx xxx xxx xxx
31 x xx xxx x xx xxx xxx
32 x x x xx
33
34 14: 15: 16: 17: 18: 11: 13: 19:
35 x xx xx xx xxx xxx xxx xxx
36 x x xx xx xx xx xxx xxx
37 x x x xx xx x xx xxx
38
39 Note that the duplicated indices for duplicated patterns are
40 for clarity. Also, some patterns are intentionally omitted e.g.,
41 x xx xxx
42 x xx
43 x xx xxx
44
45 -p#.## power for exponential bias of random choice. Default 2.0
46
47 -q Quiet mode (default verbose).
48
49 -rWxH allows for horizontal / vertical resolution, e.g. -r2x1
50 values are used for aspect ratio -- actual values arbitrary
51
52 -s# Initial seed for random number generation. Useful to generate
53 decorrelated threshold arrays to be used with different colors.
54
55 -t# sets the choice value threshold in 0.1% units (default 10 = 1%)
56
57 -v verbose mode. Details to stdout about choices. Default OFF
58
59 If the build #defined USE_GSDLL, then a graphical display will be shown
60 as the choices are made. Three sections of the page show the pseudo-color
61 map of densities, the expanded view of the pixels, and the 1:1 pixel view
62 of 3 tiles wide by 3 tiles tall, allowing interactive examination of the
63 choices. Ghostscript is used to generate this display and any Ghostscript
64 parameters may follow the '-g' trailing option. This option is last so
65 that the number of gs args is variable.
66
67 -g followed by ghostscript args are only used if built with the
68 USE_GSDLL option and must follow the SIZE and outfile parameters.
69 All parameters are then passed to gs to control the display.
70
71 when paused between values, <ret> for next value, 'g' or <esc> for
72 continuous or a character to repeat c-0x20 times (! = 1, " = 2, ...)
73 'q' for exit.
74