# phpman > man > pgmedge(1)

> **TLDR:** This command has been superseded by `pamedge`.
>
- View documentation for the current command:
  `tldr pamedge`

*Source: tldr-pages*

---

[pgmedge(1)](https://www.chedong.com/phpMan.php/man/pgmedge/1/markdown)                             General Commands Manual                            [pgmedge(1)](https://www.chedong.com/phpMan.php/man/pgmedge/1/markdown)



## NAME
       pgmedge - edge-detect a portable graymap


## SYNOPSIS
       **pgmedge** [_pgmfile_]


## DESCRIPTION
       Reads a portable graymap as input.  Outlines the edges, and writes a portable graymap as out‐
       put.  Piping the result through **pgmtopbm** **-threshold** and playing with the threshold value will
       give a bitmap of the edges.

       The edge detection technique used is to take the Pythagorean sum of two Sobel gradient opera‐
       tors at 90 degrees to each other.  For more details see "Digital Image Processing" by  Gonza‐
       lez and Wintz, chapter 7.

       The  maxval  of  the  output is the same as the maxval of the input The effect is better with
       larger maxvals, so you may want to increase the maxval of the input by running it through **pn**‐‐
       **mdepth** first.


## SEE ALSO
       [**pgmenhance**(1)](https://www.chedong.com/phpMan.php/man/pgmenhance/1/markdown), [**pgmtopbm**(1)](https://www.chedong.com/phpMan.php/man/pgmtopbm/1/markdown), [**pnmdepth**(1)](https://www.chedong.com/phpMan.php/man/pnmdepth/1/markdown), [**pgm**(5)](https://www.chedong.com/phpMan.php/man/pgm/5/markdown), [**pbm**(5)](https://www.chedong.com/phpMan.php/man/pbm/5/markdown)


## AUTHOR
       Copyright (C) 1991 by Jef Poskanzer.



                                          04 February 1990                                [pgmedge(1)](https://www.chedong.com/phpMan.php/man/pgmedge/1/markdown)
