LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ppmnorm

Normalize PPM image contrast range

TLDR

Normalize image contrast
$ ppmnorm [input.ppm] > [output.ppm]
copy
Specify percentile range
$ ppmnorm -bpercent [2] -wpercent [1] [input.ppm] > [output.ppm]
copy

SYNOPSIS

ppmnorm [options] [file]

DESCRIPTION

ppmnorm normalizes the contrast of a PPM image by stretching its color histogram to use the full available range. Dark images are brightened and washed-out images gain contrast, making it a quick automatic enhancement tool.The black and white percentile parameters control how aggressively the ends of the histogram are clipped before stretching, preventing outlier pixels from limiting the enhancement. This is an alias for pnmnorm operating in color mode. Part of the Netpbm toolkit.

PARAMETERS

FILE

Input PPM file.
-bpercent N
Black percentage.
-wpercent N
White percentage.
-bvalue N
Black cutoff value.
-wvalue N
White cutoff value.

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

Alias for pnmnorm with color. Part of Netpbm suite.

HISTORY

ppmnorm was created as part of Netpbm for color image normalization.

SEE ALSO

pnmnorm(1), ppmgamma(1), ppm(5)

Copied to clipboard
Kai