{
    "content": [
        {
            "type": "text",
            "text": "# pamsummcol (man)\n\n## NAME\n\npamsummcol - summarize (sum, average, etc) a Netpbm image by column\n\n## SYNOPSIS\n\npamsummcol { -sum | -mean | -min | -max } [imagefile]\nAll  options can be abbreviated to their shortest unique prefix.  You may use two hyphens in‐\nstead of one.  You may separate an option name and its value with white space instead  of  an\nequals sign.\n\n## DESCRIPTION\n\nThis program is part of Netpbm(1).\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (4 subsections)\n- **SEE ALSO**\n- **HISTORY**\n- **DOCUMENT SOURCE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "pamsummcol",
        "section": "",
        "mode": "man",
        "summary": "pamsummcol - summarize (sum, average, etc) a Netpbm image by column",
        "synopsis": "pamsummcol { -sum | -mean | -min | -max } [imagefile]\nAll  options can be abbreviated to their shortest unique prefix.  You may use two hyphens in‐\nstead of one.  You may separate an option name and its value with white space instead  of  an\nequals sign.",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "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."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "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."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "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."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "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."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "pamsumm",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pamsumm/1/json"
            },
            {
                "name": "pamflip",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pamflip/1/json"
            },
            {
                "name": "pamfunc",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pamfunc/1/json"
            },
            {
                "name": "pamarith",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pamarith/1/json"
            },
            {
                "name": "pamscale",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pamscale/1/json"
            },
            {
                "name": "pam",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pam/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 32,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 7,
                "subsections": [
                    {
                        "name": "-sum",
                        "lines": 7
                    },
                    {
                        "name": "-mean",
                        "lines": 5
                    },
                    {
                        "name": "-min",
                        "lines": 6
                    },
                    {
                        "name": "-max",
                        "lines": 8
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "HISTORY",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DOCUMENT SOURCE",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "pamsummcol - summarize (sum, average, etc) a Netpbm image by column\n\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "pamsummcol { -sum | -mean | -min | -max } [imagefile]\n\nAll  options can be abbreviated to their shortest unique prefix.  You may use two hyphens in‐\nstead of one.  You may separate an option name and its value with white space instead  of  an\nequals sign.\n\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This program is part of Netpbm(1).\n\npamsummcol  reads  a  Netpbm  image (PNM or PAM) and performs a summary function over all the\nrows in each column (sum, mean, etc.).  It produces an image of the same kind that  the  same\nwidth and depth as the input, and one row high.  Its sample values are the result of the sum‐\nmary.\n\npamsummcol performs the summary operation on each plane independently.\n\npamsummcol  performs  the operation on the actual sample values, not on the light intensities\nrepresented by them in the case that the image is a PGM or PPM image.\n\nIf you want to summarize by row instead of by column, run the  input  through  pamflip  first\n(and  if  you  want  the  output  to  be a single column instead of a single row, use pamflip\nagain).\n\nIf you want to summarize over the entire image (getting a one-tuple output image),  use  pam‐\nsumm to get a summary row, pamflip to turn that into a column, the pamsumm again to summarize\nthe column.\n\nIf  you want to summarize the individual samples in an entire image, instead of by tuple, use\npamsumm.\n\npamsummcol performs the operation on the actual sample values, not on the  light  intensities\nrepresented  by them in the case that the image is a PGM or PPM image or PAM equivalent.  You\ncan use pnmgamma to convert such an image to one with samples proportional  to  light  inten‐\nsity, and then use pamsummcol on the result.\n\nYou can achieve the same thing as pamsummcol -mean with pamscale.  Just scale vertically to a\nsingle row, without scaling horizontally at all.  Use the pixel mixing method.\n\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "In  addition  to  the options common to all programs based on libnetpbm (most notably -quiet,\nsee \u001b]8;;index.html#commonoptions\u001b\\ Common Options\u001b]8;;\u001b\\ ), pamsummcol recognizes the following command line options:\n\nYou must specify exactly one of -sum, -mean, -min, or -max.\n\n\n",
                "subsections": [
                    {
                        "name": "-sum",
                        "content": "This option makes the summary function addition.\nIn each column and plane of the output row, the sample value is the\nsum of all the samples values in the same column and plane of the input.\nIf a result is greater than the image maxval, it is clipped to\nthe maxval.\n\n"
                    },
                    {
                        "name": "-mean",
                        "content": "This option makes the summary function arithmetic mean.\nIn each column and plane of the output row, the sample value is the\nmean of all the samples values in the same column and plane of the input.\n\n"
                    },
                    {
                        "name": "-min",
                        "content": "This option makes the summary function arithmetic minimum.\nIn each column and plane of the output row, the sample value is the\nminimum of all the samples values in the same column and plane of\nthe input.\n\n"
                    },
                    {
                        "name": "-max",
                        "content": "This option makes the summary function arithmetic maximum.\nIn each column and plane of the output row, the sample value is\nthe maximum of all the samples values in the same column and\nplane of the input.\n\n\n\n"
                    }
                ]
            },
            "SEE ALSO": {
                "content": "pamsumm(1), pamflip(1), pamfunc(1), pamarith(1), pamscale(1), pam(1),\n\n",
                "subsections": []
            },
            "HISTORY": {
                "content": "pamsummcol was added to Netpbm in Release 10.21 (March 2004).\n",
                "subsections": []
            },
            "DOCUMENT SOURCE": {
                "content": "This manual page was generated by the Netpbm tool 'makeman' from  HTML  source.   The  master\ndocumentation is at\n\nhttp://netpbm.sourceforge.net/doc/pamsummcol.html\n\nnetpbm documentation                       25 January 2009                 Pamsummcol User Manual(1)",
                "subsections": []
            }
        }
    }
}