pamsumm man page on Scientific

Man page or keyword search:  
man Server   26626 pages
apropos Keyword Search (all sections)
Output format
Scientific logo
[printable version]

Pamsumm User Manual(0)					Pamsumm User Manual(0)

       pamsumm - Summarize the samples in a Netpbm image arithmetically

       pamsumm	{  -sum	 | -mean | -min | -max } [-normalize] [-brief] [image‐

       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.

       This program is part of Netpbm(1).

       pamsumm reads a Netpbm image (PNM or PAM) and performs a summary	 func‐
       tion  over  all	the  samples  in all the rows, columns, and planes and
       prints the result to Standard Output.

       pamsumm 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.  If you want to  do	arithmetic  on
       light  intensities of such a visual image, you can use pnmgamma to con‐
       vert it to one with samples proportional to light intensity,  and  then
       use pamsumm on the result.

       If  you	want  to  summarize  by	 column (e.g. add up the columns sepa‐
       rately), use pamsummcol.	 If you want to summarize by row, use a combi‐
       nation  of pamsummcol and pamflip.  If you want to summarize a particu‐
       lar plane, use pamchannel to extract it and then pamsumm.

       You must specify exactly one of -sum, -mean, -min, or -max.


	      This option makes the summary function addition.


	      This option makes the summary function arithmetic mean.


	      This option makes the summary function arithmetic minimum.


	      This option makes the summary function arithmetic maximum.


	      This option causes each sample to be normalized to a fraction
		   (in the range 0..1) so the result  is  independent  of  the
		   maxval.  E.g. if you request the mean of an image which has
		   200 and all the samples have value 50,  pamsumm  will  give
		   50 as an answer.  But pamsumm -normalize will give you .25.

	      If  instead  you want a result that is independent of maxval but
		   in integers, you can use pamdepth to convert the  input  to
		   standard  maxval  and  not use -normalize.  For example, if
	      you want
		   the mean intensity of a PPM image, on a scale of 0  to  99,

		  pamdepth 99 myimage.ppm | pamsumm -mean

	      This option was new in Netpbm 10.22 (April 2004)


	      This option causes pamsumm to display the answer as a bare
		   number, rather than in a complete sentence.

	      This option was new in Netpbm 10.22 (April 2004)

       pamsumm(1), pam(1),

       pamsumm was added to Netpbm in Release 10.21 (March 2004).

netpbm documentation	       07 February 2004		Pamsumm User Manual(0)

List of man pages available for Scientific

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net