Linux Commands Examples

A great documentation place for Linux commands

ppmdist

simplistic grayscale assignment for machine generated, color images


see also : ppmtopgm - ppmhist

Synopsis

ppmdist [-intensity|-frequency] [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 portable pixmap as input, performs a simplistic grayscale assignment intended for use with grayscale or bitmap printers.

Often conversion from ppm to pgm will yield an image with contrast too low for good printer output. The program maximizes contrast between the gray levels output.

A ppm input of n colors is read, and a pgm of n gray levels is written. The gray levels take on the values 0..n-1, while maxval takes on n-1.

The mapping from color to stepped grayscale can be performed in order of input pixel intensity, or input pixel frequency (number of repetitions).

options

-frequency

Sort input colors by the number of times a color appears in the input, before mapping to evenly distributed graylevels of output. -intensity Sort input colors by their grayscale intensity, before mapping to evenly distributed graylevels of output. This is the default.


bugs

Helpful only for images with a very small number of colors. Perhaps should have been an option to ppmtopgm(1).


see also

ppmtopgm , ppmhist , ppm


author

Copyright (C) 1993 by Dan Stromberg.

How can this site be more helpful to YOU ?


give  feedback