mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
31 lines
697 B
Plaintext
31 lines
697 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# pgmhist
|
|
|
|
> Print a histogram of the values present in a PGM image.
|
|
> See also: `ppmhist`.
|
|
> More information: <https://netpbm.sourceforge.net/doc/pgmhist.html>.
|
|
|
|
- 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}}`
|