Plan 9 from Bell Labs’s /usr/web/sources/contrib/pac/sys/doc/netpbm/ms/pamslice.ms

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


.TL
Pamslice User Manual
.SH 1
pamslice
.LP
Updated: 22 June 2002
.br
Table Of Contents
.SH 2
NAME
.LP
pamslice - extract one line of values out of a Netpbm image
.SH 2
SYNOPSIS
.LP
\fBpamslice\fR
{\fB-row=\fR\fIrownumber\fR | \fB-column=\fR\fIcolumnnumber\fR}
[\fB-plane=\fR\fIplanenumber\fR]
[\fIimagefile\fR]
<?makeman .SH OPTION USAGE ?>
.LP
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.
.SH 2
DESCRIPTION
.LP
.LP
This program is part of Netpbm.
.LP
\fBpamslice\fR 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 \fB-plane\fR option, it can be
thought of as a one-dimensional cross-section of a three-dimensional
image).
.LP
The table has one line per tuple, consisting of blank-separated
ASCII decimal numbers.  The first number is the column number if you
specified 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
specifications of the image formats for details on exactly what these
numbers mean.
If you want to see all the pixels in a PPM, PGM, or PBM image in ASCII
decimal, \fBpnmtoplainpnm\fR is a good way to do that.
.SH 2
OPTIONS
.LP
.RS
.IP "\fB-row=\fR\fIrownumber\fR"
This indicates that the slice is to be horizontal -- i.e. one row of the
image -- and indicates which row.  Rows are numbered from the top
starting with 0.
.LP
You cannot specify both \fB-row\fR and \fB-column\fR.
.IP "\fB-column=\fR\fIcolnumber\fR"
This indicates that the slice is to be vertical -- i.e. one column of the
image -- and indicates which column.  Columns are numbered from the left
starting with 0.
.LP
You cannot specify both \fB-row\fR and \fB-column\fR.
.IP "\fB-plane=\fR\fIplanenumber\fR"
This specifies that you are interested in only one plane of the image
and which one.  Planes are numbered from 0 and have meanings that vary
on the type of image.  In a PPM image, Plane 0 is red, Plane 1 is
green, and Plane 2 is blue.
.LP
If you don't specify \fB-plane\fR, you get all the planes -- each
line of output has multiple numbers in addition to the sequence number.
If you do specify \fB-plane\fR, each line of output contains one
number in addition to the sequence number.
.IP "\fB-xmgr\fR"
This option causes \fBpamslice\fR to format the output as input for a
\fBxmgr\fR so you can plot it.  The only difference this option makes
is that it adds header information to the beginning of the output.
.RE
.SH 2
SEE ALSO
.LP
pamcut
pnmtoplainpnm
pnmtoplainpnm
pnm
.SH 2
HISTORY
.LP
.LP
\fBpamslice\fR replaced \fBpgmslice\fR in Netpbm 10.3 (June 2002).
It was backward compatible, but worked on Netpbm images other than PGM and
PBM and added the \fB-plane\fR and \fB-xmgr\fR options.
.SH 2
AUTHOR
.LP
.LP
Jos Dingjan <jos@tuatha.org> wrote
\fBpgmslice\fR after being unable to find the source code to Marco
Beijersbergen's program with the same name.  Bryan Henderson converted it
to \fBpamslice\fR.
.br
\l'5i'
.SH 2
Table Of Contents
.LP
.IP \(bu
NAME
.IP \(bu
SYNOPSIS
.IP \(bu
DESCRIPTION
.IP \(bu
OPTIONS
.IP \(bu
SEE ALSO
.IP \(bu
HISTORY
.IP \(bu
AUTHOR
.LP

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.