Linux Commands Examples

A great documentation place for Linux commands

pgmedge

edge-detect a portable graymap


see also : pgmenhance - pgmtopbm - pnmdepth

Synopsis

pgmedge [pgmfile]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !

description

Reads a portable graymap as input. Outlines the edges, and writes a portable graymap as output. 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 operators at 90 degrees to each other. For more details see "Digital Image Processing" by Gonzalez 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 pnmdepth first.


see also

pgmenhance , pgmtopbm , pnmdepth , pgm, pbm


author

Copyright (C) 1991 by Jef Poskanzer.

How can this site be more helpful to YOU ?


give  feedback