.TL Pamsummcol User Manual .SH 1 pamsummcol .LP Updated: 07 February 2004 .br Table Of Contents .SH 2 NAME .LP pamsummcol - summarize (sum, average, etc) a Netpbm image by column .SH 2 SYNOPSIS .LP \fBpamsummcol\fR { \fB-sum\fR | \fB-mean\fR | \fB-min\fR | \fB-max\fR } [\fIimagefile\fR] .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 \fBpamsummcol\fR reads a Netpbm image (PNM or PAM) and performs a summary function over all the rows in each column (sum, mean, etc.). It produces an image of the same kind that the same width and depth as the input, and one row high. Its sample values are the result of the summary. .LP \fBpamsummcol\fR performs the summary operation on each plane independently. .LP \fBpamsummcol\fR performs the operation on the actual sample values, not on the light intensities represented by them in the case that the image is a PGM or PPM image. .LP If you want to summarize by row instead of by column, run the input through \fBpamflip\fR first (and if you want the output to be a single column instead of a single row, use \fBpamflip\fR again). .LP If you want to summarize over the entire image instead of over columns separately, use \fBpamsumm\fR. .LP \fBpamsummcol\fR performs the operation on the actual sample values, not on the light intensities represented by them in the case that the image is a PGM or PPM image or PAM equivalent. You can use \fBpnmgamma\fR to convert such an image to one with samples proportional to light intensity, and then use \fBpamsummcol\fR on the result. .LP You can achieve the same thing as \fBpamsummcol -mean\fR with \fBpamscale\fR. Just scale vertically to a single row, without scaling horizontally at all. Use the pixel mixing method. .SH 2 OPTIONS .LP .LP You must specify exactly one of \fB-sum\fR, \fB-mean\fR, \fB-min\fR, or \fB-max\fR. .RS .IP "\fB-sum\fR" .LP This option makes the summary function addition. In each column and plane of the output row, the sample value is the sum of all the samples values in the same column and plane of the input. If a result is greater than the image maxval, it is clipped to the maxval. .IP "\fB-mean\fR" .LP This option makes the summary function arithmetic mean. In each column and plane of the output row, the sample value is the mean of all the samples values in the same column and plane of the input. .IP "\fB-min\fR" .LP This option makes the summary function arithmetic minimum. In each column and plane of the output row, the sample value is the minimum of all the samples values in the same column and plane of the input. .IP "\fB-max\fR" .LP This option makes the summary function arithmetic maximum. In each column and plane of the output row, the sample value is the maximum of all the samples values in the same column and plane of the input. .RE .SH 2 SEE ALSO .LP \fBpamsumm\fR, \fBpamscale\fR, \fBpamfunc\fR, \fBpamarith\fR, \fBpamscale\fR, \fBpam\fR, .SH 2 HISTORY .LP .LP \fBpamsummcol\fR was added to Netpbm in Release 10.21 (March 2004). .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 .LP