man-pages/man1/ppmdist.1.html
2021-03-31 01:06:50 +01:00

92 lines
2.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of ppmdist</TITLE>
</HEAD><BODY>
<H1>ppmdist</H1>
Section: User Commands (1)<BR>Updated: 22 July 1992<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="ixAAB"></A>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
ppmdist - simplistic grayscale assignment for machine generated, color images
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>ppmdist</B>
[<B>-intensity</B>|<B>-frequency</B>]
[<I>ppmfile</I>]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
Reads a portable pixmap as input, performs a simplistic grayscale
assignment intended for use with grayscale or bitmap printers.
<P>
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.
<P>
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.
<P>
The mapping from color to stepped grayscale can be performed in order
of input pixel intensity, or input pixel frequency (number of repetitions).
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT id="1"><DT><B>-frequency</B>
<DD>
<DD>
Sort input colors by the number of times a color appears in the input,
before mapping to evenly distributed graylevels of output.
<B>-intensity</B>
Sort input colors by their grayscale intensity, before mapping to evenly
distributed graylevels of output. This is the default.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>BUGS</H2>
Helpful only for images with a very small number of colors.
Perhaps should have been an option to <A HREF="/cgi-bin/man/man2html?1+ppmtopgm">ppmtopgm</A>(1).
<A NAME="lbAG">&nbsp;</A>
<H2>SEE ALSO</H2>
<A HREF="/cgi-bin/man/man2html?1+ppmtopgm">ppmtopgm</A>(1), <A HREF="/cgi-bin/man/man2html?1+ppmhist">ppmhist</A>(1), <A HREF="/cgi-bin/man/man2html?5+ppm">ppm</A>(5)
<A NAME="lbAH">&nbsp;</A>
<H2>AUTHOR</H2>
Copyright (C) 1993 by Dan Stromberg.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="2"><A HREF="#lbAB">NAME</A><DD>
<DT id="3"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="4"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="5"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="6"><A HREF="#lbAF">BUGS</A><DD>
<DT id="7"><A HREF="#lbAG">SEE ALSO</A><DD>
<DT id="8"><A HREF="#lbAH">AUTHOR</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:24 GMT, March 31, 2021
</BODY>
</HTML>