Image Processing Questions
Image Processing Questions
Time: 3 hours
5. [4 x 5 = 20 marks]
(a). Suppose we apply lowpass filtering on an image with a Gaussian lowpass filter
and then highpass filtering the result with a Gaussian highpass filter. Do you think
the result would have been different if the order of the filtering process had been
reversed?
(b). Give expressions for the sets shown shaded in the following figure:
6. [7 x 5 = 35 marks]
(a). What effect would setting to zero the lower-order bit planes have on the
histogram of an image in general?
(b). Find an expression for the signature of a rectangle boundary and plot this
signature.
(c). What is Quadtree? How can you use the quadtree for segmentation? Discuss
how the gray level variance can be used to test the homogeneity in an image.
(d). Opening never results in identical reconstruction of the objects to which it is
applied. Comment.
(e). Consider the image segment shown:
3
1(q)
(p) 1
Let V = {0, 1} and compute the lengths of the shortest 4-, 8-, and m-path
between p and q. If a particular path does not exist between these two points,
explain why.
(f). Suppose you have been given two Fourier spectra of the same image. One is
obtained corresponding to the original image, and the other one is obtained
after the image was padded with zeros. How these two spectra would differ to
each-other.
(g). Consider a basic approach to approximate a discrete derivative in the form of
difference in x and y directions;
i.e. g(x, y) = f (x, y) - f (x + 1, y) + f (x, y) - f (x, y + 1).
Obtain the filter transfer function, H (u, v), for performing the equivalent process
in frequency domain.
7. [7 marks]
Consider a simple 4 x 8, 8-bit image:
21 21 21 95 169 243 243 243
21 21 21 95 169 243 243 243
21 21 21 95 169 243 243 243
21 21 21 95 169 243 243 243
21 21 21 95 169 243 243 243
21 21 21 95 169 243 243 243
21 21 21 95 169 243 243 243
21 21 21 95 169 243 243 243
(a). Compress the image using Huffman coding.
(b). Compute the compression achieved and the effectiveness of the Huffman
coding.
8. [8 marks]
The implementation of linear spatial filters requires moving the center of a mask
throughout an image and, at each location, computing the sum of products of the
mask coefficients with the corresponding pixels at that location. In case of lowpass
filtering, all coefficients are 1, allowing use of a so-called box-filter algorithm which
consists of updating only the part of the computation that changes from one
location to the next.
(a). Formulate an efficient strategy for an n x n filter, showing the nature of the
computation involved and the scanning sequence used for moving the mask
around the image.
(b). The ratio of the number of computations performed by a brute-force
implementation to the number of computations performed by the box-filter
algorithm is called the computational advantage. Obtain the computational
advantage in this case and plot it as a function of n for n > 1.
Assume that the image has an outer border of zeros that is thick enough to allow you
to ignore border effects in your analysis.