1Pamseq User Manual(0)                                    Pamseq User Manual(0)
2
3
4

NAME

6       pamseq - generate PAM image of all possible tuple values, in sequence
7
8

SYNOPSIS

10       pamseq [-tupletype=tupletype] depth maxval
11
12       All  options  can  be abbreviated to their shortest unique prefix.  You
13       may use two hyphens instead of one to designate an option.  You may use
14       either  white  space  or  an equals sign between an option name and its
15       value.
16
17

DESCRIPTION

19       This program is part of Netpbm(1).
20
21       pamseq generates a PAM image of a specified depth and specified  maxval
22       that  consists of a single row.  The row consists of one tuple of every
23       possible value, in order.
24
25       For a depth of one, the order is simple: From 0 to maxval,  going  from
26       left to right.  For higher depths, the highest numbered plane goes from
27       0 to maxval (going left to right) while all the other planes have value
28       0.  Then the sequence repeats except with the next highest plane set to
29       a value of 1, then 2, etc.
30
31

OPTIONS

33       -tupletype
34              This is the value of the "tuple_type" attribute of  the  created
35              PAM image.  It can be any string up to 255 characters.
36
37
38
39

USAGE

41       To  create  a  simple  ramp  of the values 0..255, for input to various
42       matrix calculations, try
43         pamseq 1 255
44       (Before pamseq existed, pgmramp was  often  pressed  into  service  for
45       this).
46
47       To create a PPM color map of all the possible colors representable with
48       a maxval of 5, do
49         pamseq 3 5 -tupletype=RGB | pamtopnm
50
51       Again, with a modern program based on the  Netpbm  library,  you  don't
52       need the pamtopnm because a PAM RGB image is equivalent to a PPM image.
53
54       You can use such a color map with pnmremap(1) to quantize the colors in
55       an image.  With the maxval of 5 given in the example, you get  a  color
56       map  of  the set of "web safe" colors as defined by Netscape.  Most web
57       browsers guarantee that they can produce at least these 216 colors (215
58       plus black).
59
60

SEE ALSO

62       pnmremap(1), pamtopnm(1), pam(1)
63
64

HISTORY

66       pamseq was added to Netpbm in June 2002.
67

DOCUMENT SOURCE

69       This  manual  page was generated by the Netpbm tool 'makeman' from HTML
70       source.  The master documentation is at
71
72              http://netpbm.sourceforge.net/doc/pamseq.html
73
74netpbm documentation              8 May 2002             Pamseq User Manual(0)
Impressum