Assignment No - 3
Assignment No - 3
3
1. A mean filter is a linear filter, but a median filter is not. Why?
2. Compare the characteristics of median and mean filters and identify the situations where you
will use them.
3. Gaussian filtering is usually a preferred averaging method. Why?
4. What is the separability property of Gaussian filtering? Why would you want a filtering scheme
to be separable?
5. In many applications, an image is smoothed by applying Gaussian filters of several sizes. Why
would one want to smooth an image using different parameters of the Gaussian?
6. What is the cascading property of Gaussian filters? How is it useful in machine vision?
7. An image contains a thin vertical line one pixel thick. It has a gray level of 50 and lies on a
background of salt and pepper noise having gray values of 0 and 100, where
Probability (gray level = 0) = 0.4
Probability (gray level = 100) = 0.6.
The gray levels of the background pixels are independent of one another. A horizontal 1 x 3
operator given by:
-1 2 -1
is applied to this image. Find the probability distribution of the values of the output when the
operator is centered at a pixel:
a. on the line.
b. adjacent to the line
Find the output image obtained by applying a 3 x 3 median filter on the image f[i, j]; note that the
border pixels remain unchanged.
9. Consider the 16x 16 image shown in following figure. The numbers indicate the gray level of that
"ring" in the image. For example, the outer ring (border) has a gray value of 0, the next ring has a
gray level, and so.
0
1
2
3
4
5
6
7
a. A 3 x 3 median filter operates on this image. Calculate the values of the central 4 x 4
pixels in the output image.
b. Sketch the histogram of an image obtained by adding (pixel by pixel) the original image
and its contrast-reversed image.
c. By applying a 3 x 3 Gaussian filter on the image. Find the output image.