Linux Commands Examples

A great documentation place for Linux commands

ppmhist

print a histogram of a portable pixmap


see also : pgmhist - ppmtomap - pnmhistmap - ppmchange

Synopsis

ppmhist [-hexcolor] [-noheader] [-map] [-nomap] [-sort={frequency,rgb}] [ppmfile]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !

description

Reads a PPM image as input. Generates a histogram of the colors in the image, i.e. a list of all the colors and how many pixels of each color are in the image.

options

-sort={frequency,rgb}

The -sort option determines the order in which the colors are listed in the output. frequency means to list them in order of how pixels in the input image have the color, with the most represented colors first. rgb means to sort them first by the intensity of the red component of the color, the of the green, then of the blue, with the least intense first.

The default is frequency.

-hexcolor

Print the color components in hexadecimal. Default is decimal.

-noheader

Do not print the column headings.

-map

Generates a PPM file of the colormap for the image, with the color histogram as comments.

-nomap

Generates the histogram for human reading. This is the default.


see also

ppm, pgmhist , ppmtomap , pnmhistmap , ppmchange


author

Copyright (C) 1989 by Jef Poskanzer.

How can this site be more helpful to YOU ?


give  feedback