
394
Digital Image Processing
We can observe that the pepper noise is completely removed from the image but the salt
noise remains. Thus, we have seen the results of applying opening and closing individually
to the noisy image. This clarifies their functions.
Now, we will apply the closing operation to the no_salt image to get an image free from
both salt and pepper noise.
5. Apply closing operation on no_salt and display the result (observe Figure 13.22).
>> no_salt_&_pepper = imclose(no_salt,disk);
>> figure,imshow(no_salt_&_pepper);
The image is now free from salt and pepper noise, as shown in Figure 13.22. In fact image
smoothing and noise ...