Ce 490 Introduction To Digital Image Processing Midterm Exam
Ce 490 Introduction To Digital Image Processing Midterm Exam
Compared to the original histogram, the equalized histogram is less uniform due
to only eight distinct intensity levels.
Q2. (30 points) A 4 x 4 gray-scale original image f(x,y) is given below:
f(x,y) = 12 10 8 6
10 8 6 4
8 6 4 2
6 4 2 0
>> y=medfilt2(f)
y=
0 8 6 0
8 8 6 4
6 6 4 2
0 4 2 0
Q3. (20 points) An image has the gray level probability density function
er 1
pr (r) ,0 r 1. It is desired to transform the gray levels of this image so
e2
that they will have the specified probability density function pz (z) 2z,0 z 1.
Assuming continuous quantities find the transformation that will accomplish
this.
Q4. (25 points) a) Explain the effect of reducing the sampling rate to one-fourth
in the original Barbara image shown below. What causes these differences?
b) Explain the effect of reducing the quantization levels of the original Lena
image from 256 (8-bit) to 8 (3-bit) as shown below. What causes these
differences?
Laplacian filter is used which enhances fine details (including noise) more than
the 1st order gradient (sobel) filter.
0 1 0
wLaplacian 1 4 1
0 1 0
Describe one method which can detect lines/edges along x- and y- directions in
an image (see output image)? Write down its mathematical operations on an
input image f(x,y).
Compare the performance of the two filters in terms of noise reduction and
preserving edges in the original image.
Both mean filter and median filter can smooth out noisy parts (hence enhance
noisy image) as well as edges. Median filtering is more effective against impulse
noise or salt and pepper type noise (as shown in above image).