LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pambackground

creates a bitmap mask identifying background pixels in a PAM/PNM image

TLDR

Create background mask from image
$ pambackground [input.pam] > [output.pbm]
copy

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
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

SEE ALSO

Copied to clipboard
Kai