HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pgmhist — Print a histogram of the values present in a PGM image. See also: `ppmhist`. More information: <http

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandpgmhistvaluescliprinthistogrampresent

Problem

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

Solution

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}}

Code Snippets

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}}

Context

tldr-pages: common/pgmhist

Revisions (0)

No revisions yet.