Spatialfitler
Click here to load reader
Transcript of Spatialfitler
Spatial Smooth Filter
Summary
• Choose an image (showed in figure 1), and then add noise to the image. The noise must have the following characteristics:– 20% impulse noise (showed in figure 2).– Gaussian noise with mean = 0 and variance = 0.05 (showed in figure
3).
• Simulate a horizontal script in the original image (showed in figure 4).
• Display the resulting image in parts (1) and (2).• Smooth the noisy images using the most suitable filter.
– Filter pepper & salt noisy image (Figure 2) using median filter (showed in figure 5).
– Filter Gaussian noisy image (Figure 3) using average filter (showed in figure 6).
– Filter Scratch noisy image (Figure 4) using vertical median filter (showed in figure 7).
• Display the smoothed images
Fig 1 original image Fig 2 image with impulse noise
Fig 3 image with Guassian noise Fig 4 image with horizontal scratch
Fig 5 impulse noisy image with median filter
Fig 6 Guassian noisy image with mean filter
Fig 7 scratch noisy image with vertical median filter