2024-02-06 15:15:34 +01:00
|
|
|
# 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:
|
|
|
|
|
2025-04-01 06:42:14 +03:00
|
|
|
`pgmhist {{[-me|-median]}} {{path/to/image.pgm}}`
|
2024-02-06 15:15:34 +01:00
|
|
|
|
|
|
|
- Display four quartile grey value:
|
|
|
|
|
2025-04-01 06:42:14 +03:00
|
|
|
`pgmhist {{[-qua|-quartile]}} {{path/to/image.pgm}}`
|
2024-02-06 15:15:34 +01:00
|
|
|
|
|
|
|
- Report the existence of invalid grey values:
|
|
|
|
|
2025-04-01 06:42:14 +03:00
|
|
|
`pgmhist {{[-f|-forensic]}} {{path/to/image.pgm}}`
|
2024-02-06 15:15:34 +01:00
|
|
|
|
|
|
|
- Display machine-readable output:
|
|
|
|
|
2025-04-01 06:42:14 +03:00
|
|
|
`pgmhist {{[-ma|-machine]}} {{path/to/image.pgm}}`
|