Spatialfitler

4

Click here to load reader

Transcript of Spatialfitler

Page 1: Spatialfitler

Spatial Smooth Filter

Page 2: Spatialfitler

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

Page 3: Spatialfitler

Fig 1 original image Fig 2 image with impulse noise

Fig 3 image with Guassian noise Fig 4 image with horizontal scratch

Page 4: Spatialfitler

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