blob: f5dd8e14594d346361779e1b59f9b824802ba727 (
plain)
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
|
\
.\" 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" 0 "22 July 1992" "netpbm documentation"
.UN lbAB
.SH NAME
ppmdist - simplistic grayscale assignment for machine generated, color images
.UN lbAC
.SH SYNOPSIS
\fBppmdist\fP
[\fB-intensity\fP|\fB-frequency\fP]
[\fIppmfile\fP]
.UN lbAD
.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 lbAE
.SH 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 lbAG
.SH SEE ALSO
.BR "ppmtopgm" (1)\c
\&,
.BR "ppmhist" (1)\c
\&,
.BR "ppm" (5)\c
\&
.UN lbAH
.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
|