{
    "content": [
        {
            "type": "text",
            "text": "# pgmoil(1) (man)\n\n**Summary:** pamoil - turn a PAM image into an oil painting\n\n**Synopsis:** pamoil [-n N] [pamfile]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -n | — | — | This is the size of the neighborhood used in the smearing. The neighborhood is this many pixels in all four directions.  |\n\n## See Also\n\n- pgmbentley(1)\n- ppmrelief(1)\n- ppm(5)\n\n## Section Outline\n\n- **NAME** (3 lines)\n- **SYNOPSIS** (3 lines)\n- **DESCRIPTION** (18 lines)\n- **OPTIONS** (1 lines) — 1 subsections\n  - -n (6 lines)\n- **SEE ALSO** (3 lines)\n- **AUTHOR** (9 lines)\n\n## Full Content\n\n### NAME\n\npamoil - turn a PAM image into an oil painting\n\n### SYNOPSIS\n\npamoil [-n N] [pamfile]\n\n### DESCRIPTION\n\nReads  a  Netpbm  image as input.  Does an \"oil transfer\", and writes the same type of Netpbm\nimage as output.\n\nThe oil transfer is described in \"Beyond Photography\" by Holzmann, chapter 4, photo 7.   It's\na sort of localized smearing.\n\nThe  smearing works like this: First, assume a grayscale image.  For each pixel in the image,\npamoil looks at a square neighborhood around it.  pamoil determines what is the  most  common\npixel  intensity  in  the neighborhood, and puts a pixel of that intensity into the output in\nthe same position as the input pixel.\n\nFor color images, or any arbitrary multi-channel image, pamoil computes  each  channel  (e.g.\nred, green, and blue) separately the same way as the grayscale case above.\n\nAt  the  edges of the image, where the regular neighborhood would run off the edge of the im‐\nage, pamoil uses a clipped neighborhood.\n\n### OPTIONS\n\n#### -n\n\nThis is the size of the neighborhood used in the smearing.  The neighborhood  is  this\nmany pixels in all four directions.\n\nThe default is 3.\n\n### SEE ALSO\n\npgmbentley(1), ppmrelief(1), ppm(5)\n\n### AUTHOR\n\nBased on pgmoil Copyright (C) 1990 by Wilson Bent (whb@hoh-2.att.com)\n\nModified to ppm by Chris Sheppard, June 25, 2001\n\nModified to pnm, using pam functions, by Bryan Henderson June 28, 2001.\n\n\n\n25 June 2001                                   pamoil(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "pgmoil",
        "section": "1",
        "mode": "man",
        "summary": "pamoil - turn a PAM image into an oil painting",
        "synopsis": "pamoil [-n N] [pamfile]",
        "flags": [
            {
                "flag": "-n",
                "long": null,
                "arg": null,
                "description": "This is the size of the neighborhood used in the smearing. The neighborhood is this many pixels in all four directions. The default is 3."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "pgmbentley",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pgmbentley/1/json"
            },
            {
                "name": "ppmrelief",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/ppmrelief/1/json"
            },
            {
                "name": "ppm",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/ppm/5/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 18,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-n",
                        "lines": 6,
                        "flag": "-n"
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 9,
                "subsections": []
            }
        ]
    }
}