LinuxCommandLibrary

ppmhist

Display color histogram of PPM images

TLDR

Show color histogram

$ ppmhist [input.ppm]
copy
Show as map file
$ ppmhist -map [input.ppm]
copy
Limit output colors
$ ppmhist -noheader [input.ppm] | head -20
copy

SYNOPSIS

ppmhist [options] [file]

DESCRIPTION

ppmhist displays a color histogram of a PPM image. Shows each color and its frequency. Part of Netpbm toolkit for image analysis.

PARAMETERS

-map

Output as colormap file.
-nomap
Output as text histogram.
-noheader
Omit header line.
-sort method
Sort by (frequency, rgb).

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community