blob: 0cdcc0d38da066b878a8edd7faf84707fbe2d218 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD><TITLE>Ppmdist User Manual</TITLE></HEAD>
<BODY>
<H1>ppmdist</H1>
Updated: 22 July 1992
<BR>
<A HREF="#index">Table Of Contents</A>
<A NAME="lbAB"> </A>
<H2>NAME</H2>
ppmdist - simplistic grayscale assignment for machine generated, color images
<A NAME="lbAC"> </A>
<H2>SYNOPSIS</H2>
<B>ppmdist</B>
[<B>-intensity</B>|<B>-frequency</B>]
[<I>ppmfile</I>]
<A NAME="lbAD"> </A>
<H2>DESCRIPTION</H2>
<p>This program is part of <a href="index.html">Netpbm</a>.
<p><b>ppmdist</b> reads a PPM image as input and 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).
<p>This program is helpful only for images with a very small number of
colors.
<A NAME="lbAE"> </A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT><B>-frequency</B>
<DD>Sort input colors by the number of times a color appears in the
input, before mapping to evenly distributed graylevels of output.
<DT><B>-intensity</B>
<dd>Sort input colors by their grayscale intensity, before mapping to
evenly distributed graylevels of output. This is the default.
</DL>
<A NAME="lbAG"> </A>
<H2>SEE ALSO</H2>
<A HREF="ppmtopgm.html">ppmtopgm</A>,
<A HREF="ppmhist.html">ppmhist</A>,
<A HREF="ppm.html">ppm</A>
<A NAME="lbAH"> </A>
<H2>AUTHOR</H2>
Copyright (C) 1993 by Dan Stromberg.
<HR>
<A NAME="index"> </A>
<H2>Table Of Contents</H2>
<UL>
<LI><A HREF="#lbAB">NAME</A>
<LI><A HREF="#lbAC">SYNOPSIS</A>
<LI><A HREF="#lbAD">DESCRIPTION</A>
<LI><A HREF="#lbAE">OPTIONS</A>
<LI><A HREF="#lbAG">SEE ALSO</A>
<LI><A HREF="#lbAH">AUTHOR</A>
</UL>
</BODY>
</HTML>
|