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.

INSTALL

sudo apt install netpbm
copy
sudo dnf install netpbm
copy
sudo pacman -S netpbm
copy
sudo apk add netpbm
copy
sudo zypper install netpbm
copy
brew install netpbm
copy
nix profile install nixpkgs#netpbm
copy

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

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid