Lab Report Experiment 3
Lab Report Experiment 3
1 hour
Answer ALL the questions. Marks are indicated for each question. The test is out of 50
marks. You may use your notes.
QUESTION ONE:
(a) The image below has pixels with dynamic range 0 to 15. One pixel should be
regarded as an outlier. Deal with that pixel, and then apply a contrast stretch
to the image. [5]
12 10 9 8
11 11 13 13
12 10 0 8
8 12 10 13
TOTAL 11 MARKS.
1
Page 2 of 3
QUESTION TWO:
(a) Apply the 3x3 filter below:
0 -1 0
-1 5 -1
0 -1 0
0 1 3 1 3
2 1 2 6 4
0 2 7 6 4
3 7 6 5 7
7 7 6 6 7
TOTAL 14 MARKS.
QUESTION THREE:
(a) You suspect that a scanner has blurred an image in some direction. The
Fourier transform of the image consists of the usual bright cloud around the
origin, but the cloud is elliptical with the long axis of the ellipse at 45 degrees.
What do you deduce? [3]
(b) When you look at the Fourier transform of a certain image, you are surprised
to see that it consists entirely of values along the x axis. What do you deduce
about the image? [3]
2
Page 3 of 3
(c) An image contains a uniform area of beach sand. The variance of the whole
image is 2 500 units while the variance of the sand is 25 units. Estimate the
SNR of the image. [3]
(d) Below is an image of Lena and the results of certain processing. Explain what
is happening in each of the four images (A) – (D) [4]
TOTAL 13 MARKS
QUESTION FOUR:
Let g(x,y) be the two dimensional Gaussian function with σ = 1 pixel and g(0,0) = 100.
𝝏𝒈
For edge detection we wish to find the filter corresponding to .
𝝏𝒙
𝝏𝒈
(a) Show that (x,y) = -100 x exp[-(x 2 + y 2)/2]. [4]
𝝏𝒙
𝝏𝒈
(b) Find the 3x3 edge detection filter corresponding to the function . [8]
𝝏𝒙
TOTAL 12 MARKS