pambackground
creates a bitmap mask identifying background pixels in a PAM/PNM image
TLDR
Create background mask from image
$ pambackground [input.pam] > [output.pbm]
SYNOPSIS
pambackground [options] [file]
DESCRIPTION
pambackground creates a bitmap mask identifying background pixels in a PAM/PNM image. Uses corner pixels to determine background color and flood-fills to find connected background regions. Part of Netpbm toolkit.
PARAMETERS
-verbose
Print processing information.
INSTALL
sudo apt install netpbm
sudo dnf install netpbm
sudo pacman -S netpbm
sudo apk add netpbm
sudo zypper install netpbm
brew install netpbm
nix profile install nixpkgs#netpbm
SEE ALSO
ppmcolormask(1), pamcut(1)