This program is part of Netpbm.
pamtable prints the raster of a Netpbm image as a table of numerical sample values. For example, a 5-pixel wide, 2-pixel high rainbow (black, red, green, blue, white) PPM image with maxval 255 would appear as follows:
0 0 0|255 0 0| 0 255 0| 0 0 255|255 255 255
0 0 0|255 0 0| 0 255 0| 0 0 255|255 255 255
There are other output formats possible. See the command line options.
If you care to see only certain rows or columns, use pamcut to filter the input.
If you care to see only certain planes, use pamchannel to filter the input.
pamtable prints vertical bars between tuples, unless there is only one sample per tuple, in which case it prints a single space between tuples.
pamtable prints a single space between samples within a tuple.
For each sample, pamtable prints the numerical value from the Netpbm image, uninterpreted. It prints it in decimal, right justified in the minimum number of spaces required to print the maxval of the image.
If you want the samples to print more densely, use pamdepth to reduce the maxval (thus making the decimal numbers for the samples narrower).
The less program (not part of Netpbm) is good for browsing through the table. Use its --chop-long-lines option and use cursor movement keys to scroll around in the image.
The only possible argument is the name of the file containing the input Netpbm image. This is optional; if you don't specify any arguments, the input comes from Standard Input.
In addition to the options common to all programs based on libnetpbm (most notably -quiet, see Common Options), pamtable recognizes the following command line options:
(0, 0, 0) (255, 0, 0) (0, 255, 0) (0, 0, 255) (255, 255, 255)
(0, 0, 0) (255, 0, 0) (0, 255, 0) (0, 0, 255) (255, 255, 255)
This option was new in Netpbm 10.11.00 (September 2022).
This option is not valid with -tuple.
This option was new in Netpbm 10.11.00 (September 2022).
Print additional messages about the processing.
pamtable was new in Netpbm 10.79 (June 2017).