SYNOPSIS
pamslice {-row=rownumber | -column=columnnumber} [-plane=planenumber]
[imagefile]


OPTION USAGE
All options can be abbreviated to their shortest unique prefix. You
may use two hyphens instead of one. You may separate an option name
and its value with white space instead of an equals sign.


DESCRIPTION
This program is part of Netpbm.

pamslice extracts one line of tuples (pixels) out of a Netpbm image
and prints their values in a table. A line means a row or column. It
shows you a one-dimensional cross section of a two-dimensional image.
(With the -plane option, it can be thought of as a one-dimensional
cross-section of a three-dimensional image).

The table has one line per tuple, consisting of blank-separated ASCII
decimal numbers. The first number is the column number if you speci-
fied a row slice or the row number if you specified a column slice.
The rest of the numbers are the sample values in plane number order.
For a PBM or PGM input, there is only one plane. For a PPM input,
Plane 0 is red, Plane 1 is green, and Plane 2 is blue. See the speci-
fications of the image formats for details on exactly what these num-
bers mean.

If you want to see all the pixels in a PPM, PGM, or PBM image in ASCII
decimal, pnmtoplainpnm is a good way to do that.


OPTIONS
-row=rownumber



-column=colnumber



-plane=planenumber



-xmgr This option causes pamslice to format the output as input




SEE ALSO
pamcut pnmtoplainpnm pnmtoplainpnm pnm

HISTORY
pamslice replaced pgmslice in Netpbm 10.3 (June 2002). It was back-
ward compatible, but worked on Netpbm images other than PGM and PBM
and added the -plane and -xmgr options.


AUTHOR
Jos Dingjan <jos@tuatha.org> wrote pgmslice after being unable to find
the source code to Marco Beijersbergen's program with the same name.
Bryan Henderson converted it to pamslice.



netpbm documentation 22 June 2002 Pamslice User Manual(0)