# pamedge - edge-detect an image - man - [phpMan]

> **TLDR:** Perform edge-detection on a Netpbm image.
>
- Perform edge-detection on a Netpbm image:
  `pamedge {{path/to/input.pam}} > {{path/to/output.pam}}`

*Source: tldr-pages*

---

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

## NAME
       pamedge - edge-detect an image


## SYNOPSIS
       **pamedge **[_imagefile_]


## DESCRIPTION
       This program is part of [**Netpbm**(1)](https://www.chedong.com/phpMan.php/man/Netpbm/1/markdown).

       **pamedge **reads a Netpbm image (PNM or PAM) and produces an image that outlines the edges.

       The output image is of the same type as the input, except that the maxval of the output is at
       least 255 and if the input is PBM, the output is PGM.

       You  can  pipe the result through pamditherbw -threshold and play with the threshold value to
       get a PBM (bilevel image) 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, except at least 255.  The
       effect is better with larger maxvals, so you may want to increase the maxval of the input  by
       running it through **pamdepth **first.


## OPTIONS
       There are no command line options defined specifically for **pamedge**, but it recognizes the op‐
       tions common to all programs based on libnetpbm (See [ Common Options](index.html#commonoptions) .)


## SEE ALSO
       [**pgmenhance**(1)](https://www.chedong.com/phpMan.php/man/pgmenhance/1/markdown),     [**pamditherbw**(1)](https://www.chedong.com/phpMan.php/man/pamditherbw/1/markdown),     [**pamdepth**(1)](https://www.chedong.com/phpMan.php/man/pamdepth/1/markdown),    [**pammasksharpen**(1)](https://www.chedong.com/phpMan.php/man/pammasksharpen/1/markdown),    [**pamsharpness**(1)](https://www.chedong.com/phpMan.php/man/pamsharpness/1/markdown),
       [**pamsharpmap**(1)](https://www.chedong.com/phpMan.php/man/pamsharpmap/1/markdown), [**pam**(1)](https://www.chedong.com/phpMan.php/man/pam/1/markdown), [**pnm**(1)](https://www.chedong.com/phpMan.php/man/pnm/1/markdown)


## HISTORY
       **pamedge **was added to Netpbm in Release 10.14 (March 2003).  It replaced  **pgmedge**,  which  was
       the same thing, but worked only on PGM and PBM images.



## AUTHOR
       Copyright  (C) 1991 by Jef Poskanzer.  Adapted to **pnmedge **Peter Kichgessner in 1995, and then
       to **pamedge **by Bryan Henderson in 2003.

## DOCUMENT SOURCE
       This manual page was generated by the Netpbm tool 'makeman' from  HTML  source.   The  master
       documentation is at

              **<http://netpbm.sourceforge.net/doc/pamedge.html>**

netpbm documentation                       11 January 2003                    _Pamedge_ _User_ [_Manual_(1)](https://www.chedong.com/phpMan.php/man/Manual/1/markdown)
