pgmhist

displays a grayscale histogram of a PGM image

TLDR

Show grayscale histogram
$ pgmhist [input.pgm]
Show median value
$ pgmhist -median [input.pgm]

SYNOPSIS

pgmhist [options] [file]

DESCRIPTION

pgmhist displays a grayscale histogram of a PGM image. Shows distribution of gray values. Part of Netpbm toolkit for image analysis.

PARAMETERS

-median

Show median gray value.
-quartile
Show quartile values.

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

ppmhist(1), pgmnorm(1)