Use the wiener2d function to reduce additive random noise in images.
Wiener filtering was one of the first methods developed to reduce additive random noise in images. It works on the assumption that additive noise is a stationary random process, independent of pixel location; the algorithm minimizes the square error between the original and reconstructed images.
The outlines of the square have not been blurred, but the noise has been smoothed. However, the noise is not filtered out near the square outlines for a neighborhood the size of the filtering window.
5. Use a 3 x 3 window on the image.
(wiener_sf33.bmp)
In this image, there is less overall smoothing, but it extends nearer to the square outlines.
Using Gaussian Noise
1. Read in an image file and degrade it by random white Gaussian noise.
2. Add Gaussian noise to the image.
(fruit_sm.bmp)
(fruit_sl.bmp)
3. Suppress the noise using Wiener filtering with a 5 x 5 window.