next up previous
Next: Noise Reduction Up: Applets Previous: 3x3 Convolution

Noise Generation

The process of capturing an image is not ideal and we cannot expect to get a perfect image out of a natural scene. This discrepancy between real and captured image is called noise and its causes vary from the sensitivity of the detector to quantization errors. One is often interested in the performance of a given operator as the amount of noise varies, so being able to create a controlled amount of image noise and add it to an image is an important feature.

We experimented with salt-pepper and Gaussian noise [12].

noise is produced by corrupting the original image so that individual pixels are randomly flipped to black or white (0 or 255 for 8-bit gray-scale) with some low probability.
noise is described by a Gaussian distribution with a given mean and standard deviation.

Figure 6: The Noise Generating Applet 

Both types of noise can be created as separate images and then combined with the original image, using image arithmetic, to produce a corresponding noise image. The applet is displayed in Figure 6 and it accepts three parameters:

  1. The percentage of Salt-Pepper noise to be produced.
  2. The standard deviation value of the Gaussian noise.
  3. The mean value of the Gaussian noise.
After these parameters have been set, the user may select the type of noise desired by pressing on the corresponding button. After a noise image has been generated (like the middle one in Figure 6) it can be added to the original image by pressing the ``Add Images'' button.

In order to produce salt-pepper noise one requires the use of a random number generator. If the value returned by the generator is greater or less than a certain value dictated by the probability parameter (supplied by the user), then the corresponding pixel is flipped to black or white accordingly.

This process is repeated for each element of the image array and even with a 256x256 image the time taken is several seconds as calls to random number generators are generally slow. This delay is multiplied by a factor of three when a call to a Gaussian-distributed random number generator is made. This is not a serious problem when the applet is running on its own.

next up previous
Next: Noise Reduction Up: Applets Previous: 3x3 Convolution

Bob Fisher
Fri Jul 4 16:11:50 BST 1997