pgmhist

Print a histogram of the values present in a PGM image. See also: ppmhist. More information: https://netpbm.sourceforge.net/doc/pgmhist.html.

pgmhist path/to/image.pgm

pgmhist -median path/to/image.pgm

pgmhist -quartile path/to/image.pgm

pgmhist -forensic path/to/image.pgm

pgmhist -machine path/to/image.pgm