\ .\" This man page was generated by the Netpbm tool 'makeman' from HTML source. .\" Do not hand-hack it! If you have bug fixes or improvements, please find .\" the corresponding HTML page on the Netpbm website, generate a patch .\" against that, and send it to the Netpbm maintainer. .TH "Ppmdist User Manual" 1 "22 July 1992" "netpbm documentation" .SH NAME ppmdist - simplistic grayscale assignment for machine generated, color images .UN synopsis .SH SYNOPSIS \fBppmdist\fP [\fB-intensity\fP|\fB-frequency\fP] [\fIppmfile\fP] .UN description .SH DESCRIPTION .PP This program is part of .BR "Netpbm" (1)\c \&. .PP \fBppmdist\fP reads a PPM image as input and performs a simplistic grayscale assignment intended for use with grayscale or bitmap printers. .PP 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. .PP 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. .PP The mapping from color to stepped grayscale can be performed in order of input pixel intensity, or input pixel frequency (number of repetitions). .PP This program is helpful only for images with a very small number of colors. .UN options .SH OPTIONS .PP In addition to the options common to all programs based on libnetpbm (most notably \fB-quiet\fP, see .UR index.html#commonoptions Common Options .UE \&), \fBppmdist\fP recognizes the following command line options: .TP \fB-frequency\fP Sort input colors by the number of times a color appears in the input, before mapping to evenly distributed graylevels of output. .TP \fB-intensity\fP Sort input colors by their grayscale intensity, before mapping to evenly distributed graylevels of output. This is the default. .UN seealso .SH SEE ALSO .BR "ppmtopgm" (1)\c \&, .BR "ppmhist" (1)\c \&, .BR "ppm" (1)\c \& .UN author .SH AUTHOR Copyright (C) 1993 by Dan Stromberg. .SH DOCUMENT SOURCE This manual page was generated by the Netpbm tool 'makeman' from HTML source. The master documentation is at .IP .B http://netpbm.sourceforge.net/doc/ppmdist.html .PP