Pamseq User Manual

Pamseq User Manual



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


pamseq [-tupletype=tupletype] depth maxval

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.


This program is part of Netpbm(1)

pamseq 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.

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.



This is the value of the "tuple_type" attribute of the created PAM image. It can be any string up to 255 characters.


To create a simple ramp of the values 0..255, for input to various matrix calculations, try

  pamseq 1 255

(Before pamseq existed, pgmramp was often pressed into service for this).

To create a PPM color map of all the possible colors representable with a maxval of 5, do

  pamseq 3 5 -tupletype=RGB | pamtopnm

Again, with a modern program based on the Netpbm library, you don’t need the pamtopnm because a PAM RGB image is equivalent to a PPM image.

You can use such a color map with pnmremap(1)
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).


pnmremap(1) , pamtopnm(1) , pam(5)


pamseq was added to Netpbm in June 2002.

More Linux Commands

gpgv(1) - Verify OpenPGP signatures - Linux manual page.....
gpgv2 is an OpenPGP signature verification tool. This program is actually a stripped-down version of gpg which is only able to check signatures. It is somewhat

ntohl(3) - convert values between host and network byte orde
The htonl() function converts the unsigned integer hostlong from host byte order to network byte order. The htons() function converts the unsigned short integer

memcache_table(5) Postfix memcache client configuration.....
memcache_table.5 - The Postfix mail system uses optional tables for address rewriting or mail routing. These tables are usually in dbm or db format. Alternative

pciconfig_write(2) - pci device information handling........
Most of the interaction with PCI devices is already handled by the kernel PCI layer, and thus these calls should not normally need to be accessed from user spac

glMultiTexCoord3svARB(3gl) - set the current texture coordin
glMultiTexCoordARB specifies texture coordinates in one, two, three, or four dimensions. glMultiTexCoord1ARB sets the current texture coordinates to (s, 0, 0, 1

Tk_ConfigureWindow(3) - change window configuration or attri
These procedures are analogous to the X library procedures with similar names, such as XConfigureWindow. Each one of the above procedures calls the correspondin

log2pcap(1) Extract network traces from Samba log files.....
This tool is part of the samba(7) suite. log2pcap reads in a samba log file and generates a pcap file (readable by most sniffers, such as ethereal or tcpdump) b

ber_bvstrdup(3) - OpenLDAP LBER types and allocation functio
The following are the basic types and structures defined for use with the Lightweight BER library. ber_int_t is a signed integer of at least 32 bits. It is comm

gnutls_hmac_init(3) - API function - Linux manual page......
This function will initialize an context that can be used to produce a Message Authentication Code (MAC) of data. This will effectively use the current crypto b

XtInitializeWidgetClass(3) - initialize a widget class......
If the specified widget class is already initialized, XtInitializeWidgetClass returns immediately. If the class initialization procedure registers type converte

getutline_r(3) - access utmp file entries - Linux man page
New applications should use the POSIX.1-specified utmpx versions of these functions; see CONFORMING TO. utmpname() sets the name of the utmp-format file for the

getcwd(3) - Get current working directory - Linux man page
These functions return a null-terminated string containing an absolute pathname that is the current working directory of the calling process. The pathname is re

We can't live, work or learn in freedom unless the software we use is free.