summary refs log tree commit diff
path: root/pamaddnoise.html
blob: 6e9057c51802bb6c9da1f31e93ce414cfc45df18 (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
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD><TITLE>Pamaddnoise User Manual</TITLE></HEAD>
<BODY>
<H1>pamaddnoise</H1>
Updated: 14 November 1995
<BR>
<A HREF="#index">Table Of Contents</A>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>

pamaddnoise - add noise to a Netpbm image


<H2 id="synopsis">SYNOPSIS</H2>

<B>pamaddnoise</B>

[<B>-type</B> <I>noise_type</I>]

[<B>-seed</B> <I>int</I>]

<BR>

<B>pamaddnoise</B> <B>-type</B> <B>gaussian</B>

[<B>-sigma1</B> <I>value</I>]

[<B>-sigma2</B> <I>value</I>]

<BR>

[<B>-seed</B> <I>int</I>]

[<I>netpbmfile</I>]

<BR>

<B>pamaddnoise</B> <B>-type </B> <B>multiplicative_gaussian</B>

[<B>-msigma</B> <I>value</I>]

<BR>

[<B>-seed</B> <I>int</I>]

[<I>netpbmfile</I>]

<BR>

<B>pamaddnoise</B> <B>-type</B> <B>impulse</B>

[<B>-tolerance</B> <i>ratio</I>]

[<B>-seed</B> <I>int</I>]

<BR>

[<I>netpbmfile</I>]

<BR>

<B>pamaddnoise</B> <B>-type </B> <B>laplacian</B>

[<B>-lsigma</B> <I>value</I>]

[<B>-seed</B> <I>int</I>]

<BR>

[<I>netpbmfile</I>]

<BR>

<B>pamaddnoise</B> <B>-type </B> <B>poisson</B>

[<B>-lambda</B> <I>value</I>]

[<B>-seed</B> <I>int</I>]

<BR>

[<I>netpbmfile</I>]


<H2 id="description">DESCRIPTION</H2>

<p>This program is part of <a href="index.html">Netpbm</a>.

<p><b>pamaddnoise</b> adds the specified noise type to a Netpbm image.
<b>pamaddnoise</b> treats a PPM image as 3 independent planes, not as
a plane of colors in a color space.

<H2 id="options">OPTIONS</H2>

<DL COMPACT>
<DT><B>-lambda</b> <i>value</i>

<DD>Used for poisson noise only.  The default value is 0.05.

<DT><B>-lsigma</b> <i>value</i>

<DD>Used for laplacian noise only.  The default value is 10.0.

<DT><B>-msigma</b> <i>value</i>

<DD>Used for mutliplicative gaussian noise only.  The default value is
0.5.

<DT><B>-seed</b> <i>int</i>

<DD>Used for all noise types.  Set the initial random number generator
seed value.

<DT><B>-sigma1</b> <i>value</i>

<DD>Used for gaussian noise only.  The default value is 4.0.

<DT><B>-sigma2</b> <i>value</i>

<DD>Used for gaussian noise only.  The default value is 20.0.

<DT><B>-tolerance</b> <i>ratio</i>

<DD>
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

<DT><B>-type</b> <i>noise_type</i>

<DD>
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 <b>gaussian</b>.

<ul>
<li><b>gaussian</b>
<li><b>mulitiplicative_gaussian</b>
<li><b>impulse</b>
<li><b>laplacian</b>
<li><b>poisson</b>
</ul>

</DL>

<H2 id="references">REFERENCES</H2>

<UL>
<LI>&quot;Adaptive Image Restoration in Signal-Dependent Noise&quot;
by R. Kasturi Institute for Electronic Science, Texas Tech University,
1982

<LI>&quot;Digital Image Processing Algorithms&quot; by Ioannis Pitas,
Prentice Hall, 1993 ISBN 0-13-145814-0

</UL>


<H2 id="seealso">SEE ALSO</H2>

<A HREF="pgmnoise.html">pgmnoise</A>,
<A HREF="pgmmedian.html">pgmmedian</A>,
<A HREF="pnm.html">pnm</A>,
<A HREF="pam.html">pam</A>,

<h2 id="history">HISTORY</h2>

<P><b>pamaddnoise</b> 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).

<p>Burns' version, and the one in Netpbm 10.29, was called <b>pnmaddnoise</b>
and worked only on PNM images.  In Netpbm 10.30, it was converted to handle
PAM images and renamed to <b>pamaddnoise</b>.


<H2 id="author">AUTHOR</H2>

Copyright (C) 1995 by Mike Burns &lt;<A
HREF="mailto:burns@cac.psu.edu">burns@cac.psu.edu</A>&gt;

<HR>
<A NAME="index">&nbsp;</A>
<H2>Table Of Contents</H2>
<UL>
<LI><A HREF="#synopsis">SYNOPSIS</A>
<LI><A HREF="#description">DESCRIPTION</A>
<LI><A HREF="#options">OPTIONS</A>
<LI><A HREF="#references">REFERENCES</A>
<LI><A HREF="#seealso">SEE ALSO</A>
<LI><A HREF="#history">HISTORY</A>
<LI><A HREF="#author">AUTHOR</A>
</UL>
</BODY>
</HTML>