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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
|
\
.\" 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 "Pamaddnoise User Manual" 0 "14 November 1995" "netpbm documentation"
.UN lbAB
.SH NAME
pamaddnoise - add noise to a Netpbm image
.UN synopsis
.SH SYNOPSIS
\fBpamaddnoise\fP
[\fB-type\fP \fInoise_type\fP]
[\fB-seed\fP \fIint\fP]
\fBpamaddnoise\fP \fB-type\fP \fBgaussian\fP
[\fB-sigma1\fP \fIvalue\fP]
[\fB-sigma2\fP \fIvalue\fP]
[\fB-seed\fP \fIint\fP]
[\fInetpbmfile\fP]
\fBpamaddnoise\fP \fB-type \fP \fBmultiplicative_gaussian\fP
[\fB-mgsigma\fP \fIvalue\fP]
[\fB-seed\fP \fIint\fP]
[\fInetpbmfile\fP]
\fBpamaddnoise\fP \fB-type\fP \fBimpulse\fP
[\fB-tolerance\fP \fIratio\fP]
[\fB-seed\fP \fIint\fP]
[\fInetpbmfile\fP]
\fBpamaddnoise\fP \fB-type \fP \fBlaplacian\fP
[\fB-lsigma\fP \fIvalue\fP]
[\fB-seed\fP \fIint\fP]
[\fInetpbmfile\fP]
\fBpamaddnoise\fP \fB-type \fP \fBpoisson\fP
[\fB-lambda\fP \fIvalue\fP]
[\fB-seed\fP \fIint\fP]
[\fInetpbmfile\fP]
.UN description
.SH DESCRIPTION
.PP
This program is part of
.BR "Netpbm" (1)\c
\&.
.PP
\fBpamaddnoise\fP adds the specified noise type to a Netpbm image.
\fBpamaddnoise\fP treats a PPM image as 3 independent planes, not as
a plane of colors in a color space.
.UN options
.SH OPTIONS
.TP
\fB-lambda\fP \fIvalue\fP
Used for poisson noise only. The default value is 0.05.
.TP
\fB-lsigma\fP \fIvalue\fP
Used for laplacian noise only. The default value is 10.0.
.TP
\fB-mgsigma\fP \fIvalue\fP
Used for multiplicative gaussian noise only. The default value is
0.5.
.TP
\fB-seed\fP \fIint\fP
Used for all noise types. Set the initial random number generator
seed value.
.TP
\fB-sigma1\fP \fIvalue\fP
Used for gaussian noise only. The default value is 4.0.
.TP
\fB-sigma2\fP \fIvalue\fP
Used for gaussian noise only. The default value is 20.0.
.TP
\fB-tolerance\fP \fIratio\fP
Used for impulse noise only. The default value is 0.10. This means
that 5% of all pixel values will be set to 0 and 5% will be set to
the maxval
.TP
\fB-type\fP \fInoise_type\fP
Select type of noise by name. The following noise types are
available: gaussian, multiplicative_gaussian, impulse, laplacian,
poisson. Only enough letters to be unique are required for the noise
type option. The default noise type is \fBgaussian\fP.
.IP \(bu
\fBgaussian\fP
.IP \(bu
\fBmultiplicative_gaussian\fP
.IP \(bu
\fBimpulse\fP
.IP \(bu
\fBlaplacian\fP
.IP \(bu
\fBpoisson\fP
.UN references
.SH REFERENCES
.IP \(bu
"Adaptive Image Restoration in Signal-Dependent Noise"
by R. Kasturi Institute for Electronic Science, Texas Tech University,
1982
.IP \(bu
"Digital Image Processing Algorithms" by Ioannis Pitas,
Prentice Hall, 1993 ISBN 0-13-145814-0
.UN seealso
.SH SEE ALSO
.BR "pgmnoise" (1)\c
\&,
.BR "pgmmedian" (1)\c
\&,
.BR "pnm" (5)\c
\&,
.BR "pam" (5)\c
\&,
.UN history
.SH HISTORY
.PP
\fBpamaddnoise\fP was added to Netpbm in Version 10.29 (August 2005).
It had been distributed by Mike Burns via his own web site before that
(and continued to be so).
.PP
Burns' version, and the one in Netpbm 10.29, was called \fBpnmaddnoise\fP
and worked only on PNM images. In Netpbm 10.30, it was converted to handle
PAM images and renamed to \fBpamaddnoise\fP.
.UN author
.SH AUTHOR
Copyright (C) 1995 by Mike Burns <\fIburns@cac.psu.edu\fP>
.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/pamaddnoise.html
.PP
|