.TL Pamstack User Manual .SH 1 pamstack .LP Updated: 10 January 2006 .br Table Of Contents .SH 2 NAME .LP pamstack - stack planes of multiple PAM images into one PAM image .SH 2 SYNOPSIS .LP \fBpamstack\fR [\fB-tupletype \fR\fItupletype\fR] [\fIinputfilespec\fR ...] .LP All options may be abbreviated to the shortest unique prefix. You may use two hyphens instead of one. You may separate an option from its value with a space instead of \fB=\fR. .SH 2 DESCRIPTION .LP .LP This program is part of Netpbm. .LP \fBpamstack\fR reads multiple PAM or PNM images as input and produces a PAM image as output, consisting of all the planes (channels) of the inputs, stacked in the order specified. .LP The output is the same dimensions as the inputs, except that the depth is the sum of the depths of the inputs. It has the same maxval. \fBpamstack\fR fails if the inputs are not all the same width, height, and maxval. The tuple type is a null string unless you specify the \fB-tupletype\fR option. .LP \fBpamstack\fR works with multi-image streams. It stacks the 1st image in all the streams into one output image (the first one in the output stream), then stacks the 2nd image in all the streams into the 2nd image in the output stream, and so on, until one of the streams runs dry. It's like a matrix operation. .LP Before Netpbm 10.32 (February 2006), \fBpamstack\fR ignored all but the first image in each input stream. .LP \fBpamchannel\fR does the opposite of \fBpamstack\fR: It extracts individual planes from a single PAM. .LP Use pamtopnm to convert a suitable PAM image to a more traditional PNM (PBM, PGM, or PPM) image. (But there's no need to do that if you're going to feed it to a modern Netpbm program -- they all take suitable PAM input directly). .LP One example of using \fBpamstack\fR is that some Netpbm programs accept as input a PAM that represents graphic image with transparency information. Taking a color image for example, this would be a PAM with tuple type "RGB_ALPHA". In Netpbm, such images were traditionally represented as two images - a PPM for the color and a PGM for the transparency. To convert a PPM/PGM pair into PAM(RGB_ALPHA) input that newer programs require, do something like this: .DS L \f(CW$ pamstack -tupletype=RGB_ALPHA myimage.ppm myalpha.pgm | \ pamtouil >myimage.uil \fR.DE .SH 2 OPTIONS .LP .RS .IP "\fB-tupletype \fR\fItupletype\fR" This specifies the tuple type name to be recorded in the output. You may use any string up to 255 characters. Some programs recognize some names. If you omit this option, the default tuple type name is null. .RE .SH 2 SEE ALSO .LP \fBpam\fR \fBpamchannel\fR .SH 2 HISTORY .LP .LP \fBpamstack\fR was new in Netpbm 10.0 (June 2002). .br \l'5i' .SH 2 Table Of Contents .LP .IP \(bu SYNOPSIS .IP \(bu DESCRIPTION .IP \(bu OPTIONS .IP \(bu SEE ALSO .LP