commands.sh

pgmhist

all

Print a histogram of the values present in a PGM image. See also: `ppmhist`.

More info →

Options (4)

boolean

Display the median grey value

Example: pgmhist {{[-me|-median]}} {{path/to/image.pgm}}
boolean

Display four quartile grey value

Example: pgmhist {{[-qua|-quartile]}} {{path/to/image.pgm}}
-fboolean

Report the existence of invalid grey values

Example: pgmhist {{[-f|-forensic]}} {{path/to/image.pgm}}
boolean

Display machine-readable output

Example: pgmhist {{[-ma|-machine]}} {{path/to/image.pgm}}

Examples (5)

Display the histogram for human reading

pgmhist path/to/image.pgm

Display the median grey value

pgmhist [-me|-median] path/to/image.pgm

Display four quartile grey value

pgmhist [-qua|-quartile] path/to/image.pgm

Report the existence of invalid grey values

pgmhist [-f|-forensic] path/to/image.pgm

Display machine-readable output

pgmhist [-ma|-machine] path/to/image.pgm
made by @shridhargupta | data from tldr-pages