{
    "mode": "man",
    "parameter": "pgmenhance",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/pgmenhance/1/json",
    "generated": "2026-06-02T19:34:59Z",
    "synopsis": "pgmenhance [-N] [pgmfile]",
    "sections": {
        "NAME": {
            "content": "pgmenhance - edge-enhance a portable graymap\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "pgmenhance [-N] [pgmfile]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Reads a portable graymap as input.  Enhances the edges, and writes a portable graymap as out‐\nput.\n\nThe edge enhancing technique is taken from Philip R. Thompson's \"xim\" program, which in  turn\ntook  it from section 6 of \"Digital Halftones by Dot Diffusion\", D. E. Knuth, ACM Transaction\non Graphics Vol. 6, No. 4, October 1987, which in turn got it from two 1976 papers by  J.  F.\nJarvis et. al.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "The  optional -N flag should be a digit from 1 to 9.  1 is the lowest level of enhancement, 9\nis the highest, The default is 9.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "pgmedge(1), pgm(5), pbm(5)\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Copyright (C) 1989 by Jef Poskanzer.\n\n\n\n13 January 1989                             pgmenhance(1)",
            "subsections": []
        }
    },
    "summary": "pgmenhance - edge-enhance a portable graymap",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "pgmedge",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pgmedge/1/json"
        },
        {
            "name": "pgm",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/pgm/5/json"
        },
        {
            "name": "pbm",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/pbm/5/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Edge-enhance a PGM image.",
        "examples": [
            {
                "description": "Edge-enhance a PGM image",
                "command": "pgmenhance {{path/to/image.pgm}} > {{path/to/output.pgm}}"
            },
            {
                "description": "Specify the level of enhancement",
                "command": "pgmenhance -{{1..9}} {{path/to/image.pgm}} > {{path/to/output.pgm}}"
            }
        ]
    }
}