1Pamslice User Manual(0) Pamslice User Manual(0)
2
3
4
6 pamslice - extract one line of values out of a Netpbm image
7
8
10 pamslice {-row=rownumber | -column=columnnumber} [-plane=planenumber]
11 [imagefile]
12
13
15 All options can be abbreviated to their shortest unique prefix. You
16 may use two hyphens instead of one. You may separate an option name
17 and its value with white space instead of an equals sign.
18
19
21 This program is part of Netpbm(1).
22
23 pamslice extracts one line of tuples (pixels) out of a Netpbm image and
24 prints their values in a table. A line means a row or column. It
25 shows you a one-dimensional cross section of a two-dimensional image.
26 (With the -plane option, it can be thought of as a one-dimensional
27 cross-section of a three-dimensional image).
28
29 The table has one line per tuple, consisting of blank-separated ASCII
30 decimal numbers. The first number is the column number if you speci‐
31 fied a row slice or the row number if you specified a column slice.
32 The rest of the numbers are the sample values in plane number order.
33 For a PBM or PGM input, there is only one plane. For a PPM input,
34 Plane 0 is red, Plane 1 is green, and Plane 2 is blue. See the speci‐
35 fications of the image formats for details on exactly what these num‐
36 bers mean.
37
38 If you want to see the entire raster of a Netpbm image, use pamtable.
39
40
42 -row=rownumber
43 This indicates that the slice is to be horizontal -- i.e.
44 one row of the
45 image -- and indicates which row. Rows are numbered from
46 the top
47 starting with 0.
48
49 You cannot specify both -row and -column.
50
51
52 -column=colnumber
53 This indicates that the slice is to be vertical -- i.e. one
54 column of the
55 image -- and indicates which column. Columns are numbered
56 from the left
57 starting with 0.
58
59 You cannot specify both -row and -column.
60
61
62 -plane=planenumber
63 This specifies that you are interested in only one plane of
64 the image
65 and which one. Planes are numbered from 0 and have mean‐
66 ings that vary
67 on the type of image. In a PPM image, Plane 0 is red,
68 Plane 1 is
69 green, and Plane 2 is blue.
70
71 If you don't specify -plane, you get all the planes -- each
72 line of output has multiple numbers in addition to the
73 sequence number.
74 If you do specify -plane, each line of output contains one
75 number in addition to the sequence number.
76
77
78 -xmgr
79 This option causes pamslice to format the output as input
80 for a
81 xmgr so you can plot it. The only difference this option
82 makes
83 is that it adds header information to the beginning of the
84 output.
85
86
87
88
90 pamtable(1) pamcut(1) pnmtopnm(1) pamchannel(1) pnm(1)
91
92
94 pamslice replaced pgmslice in Netpbm 10.3 (June 2002). It was backward
95 compatible, but worked on Netpbm images other than PGM and PBM and
96 added the -plane and -xmgr options.
97
98
100 Jos Dingjan <jos@tuatha.org> wrote pgmslice after being unable to find
101 the source code to Marco Beijersbergen's program with the same name.
102 Bryan Henderson converted it to pamslice.
103
105 This manual page was generated by the Netpbm tool 'makeman' from HTML
106 source. The master documentation is at
107
108 http://netpbm.sourceforge.net/doc/pamslice.html
109
110netpbm documentation 8 February 2010 Pamslice User Manual(0)