LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pamedge

Edge-detect a PNM/PAM image

TLDR

Detect edges in an image
$ pamedge [input.pam] > [output.pam]
copy
Detect edges from pipe
$ cat [image.pam] | pamedge > [edges.pam]
copy
Detect edges and threshold to black and white
$ pamedge [input.pam] | pamditherbw -threshold > [edges.pbm]
copy

SYNOPSIS

pamedge [imagefile]

DESCRIPTION

pamedge reads a Netpbm image (PNM or PAM) and produces an output image that outlines the edges. It uses the Pythagorean sum of two Sobel gradient operators at 90 degrees to each other for edge detection.The output format matches the input, except the minimum maxval is 255. PBM input is converted to PGM output. For sharper bilevel edge images, pipe the output through pamditherbw -threshold.Part of the Netpbm toolkit. Supersedes pgmedge, which only handled PGM and PBM formats.

PARAMETERS

imagefile

Input PAM or PNM image file. Reads from standard input if omitted.

CAVEATS

Has no command-line options beyond standard libnetpbm options. For better results with low maxval images, increase the maxval with pamdepth before processing.

HISTORY

pamedge was added to Netpbm in 2003 as a replacement for pgmedge, extending support to all PAM and PNM image formats.

SEE ALSO

Copied to clipboard
Kai