.TL Pamseq User Manual .SH 1 pamseq .LP .br Updated: 8 May 2002 .br Table Of Contents .SH 2 NAME .LP pamseq - generate PAM image of all possible tuple values, in sequence .SH 2 SYNOPSIS .LP \fBpamseq\fR [\fB-tupletype\fR \fItupletype\fR] \fIdepth\fR \fImaxval\fR .LP All options can be abbreviated to their shortest unique prefix. You may use two hyphens instead of one to designate an option. You may use either white space or an equals sign between an option name and its value. .SH 2 DESCRIPTION .LP .LP This program is part of Netpbm. .LP \fBpamseq\fR generates a PAM image of a specified depth and specified maxval that consists of a single row. The row consists of one tuple of every possible value, in order. .LP For a depth of one, the order is simple: From 0 to maxval, going from left to right. For higher depths, the highest numbered plane goes from 0 to maxval (going left to right) while all the other planes have value 0. Then the sequence repeats except with the next highest plane set to a value of 1, then 2, etc. .SH 2 OPTIONS .LP .RS .IP "\fB-tupletype\fR" This is the value of the "tuple_type" attribute of the created PAM image. It can be any string up to 255 characters. .RE .SH 2 USAGE .LP .LP To create a simple ramp of the values 0..255, for input to various matrix calculations, try .DS L \f(CW pamseq 1 255 \fR.DE (Before \fBpamseq\fR existed, \fBpgmramp\fR was often pressed into service for this). .LP To create a PPM color map of all the possible colors representable with a maxval of 5, do .DS L \f(CW pamseq 3 5 -tupletype=RGB | pamtopnm \fR.DE Again, with a modern program based on the Netpbm library, you don't need the \fBpamtopnm\fR because a PAM RGB image is equivalent to a PPM image. .LP You can use such a color map with \fBpnmremap\fR to quantize the colors in an image. With the maxval of 5 given in the example, you get a color map of the set of "web safe" colors as defined by Netscape. Most web browsers guarantee that they can produce at least these 216 colors (215 plus black). .SH 2 SEE ALSO .LP \fBpnmremap\fR, \fBpamtopnm\fR, \fBpam\fR .SH 2 HISTORY .LP \fBpamseq\fR was added to Netpbm in June 2002. .br \l'5i' .SH 2 Table Of Contents .LP .IP \(bu NAME .IP \(bu SYNOPSIS .IP \(bu DESCRIPTION .IP \(bu OPTIONS .IP \(bu USAGE .IP \(bu SEE ALSO .IP \(bu HISTORY .LP