BCSE 0101: Digital Image Processing: - Shri Ha Ri
BCSE 0101: Digital Image Processing: - Shri Ha Ri
BCSE 0101: Digital Image Processing: - Shri Ha Ri
Note:
Take a printout of this assignment and write your answers in the space provided.
Scan and upload the filled answer sheet and submit the hardcopy to the faculty.
2. The number of bits required to store a 1024 x 512 image with 512 gray shades is
__________________________.
3. The smallest discernible change in the gray level of an image is called its
______________________________________.
4. When the number of pixels in an image is reduced keeping the number of gray
levels in the image constant, we observe __________________________ effect.
5. When the no. of gray-levels in the image is low, the foreground details of the
image merge with the background details of the image, causing ridge like
structures. This degradation phenomenon is known as
_______________________________________.
Page 1 of 7
6. Mark the m-adjacent path from p to q in the following image.
1 0 0 0
1 1 0 0
p 1 1 1 1 q
1 0 1 1
10. Consider the following images. (a) is the original image. On (b) and (c) average
filters of different sizes have been applied. On _________ filter of size 3 x 3 has
been applied while on _________ filter of size 9 x 9 has been applied.
II. Consider two image subsets S1 & S2 as shown in the following figure. For V= {0}
determine whether the regions are: i) 4- Adjacent ii) 8-Adjacent iii) m-Adjacent .
Give reasons for your answer. [2 x 3 = 6]
Page 2 of 7
S1 S2
1 1 1 1 0 1 0 0
1 1 0 1 0 0 1 1
1 1 0 1 0 0 1 1
1 0 0 0 1 1 1 1
i) 4- Adjacent – Yes / No
___________________________________________________________________________
___________________________________________________________________________
ii) 8-Adjacent – Yes / No
___________________________________________________________________________
___________________________________________________________________________
iii) m-Adjacent– Yes / No
___________________________________________________________________________
___________________________________________________________________________
Page 3 of 7
IV. Consider the following image. What will be the new value of the pixel (2, 2) if
smoothing is done using a 3x3: [1 x 5 = 5]
0 1 0 2 7
2 1 6 1 0
5 6 7 6 3
1 1 6 1 5
5 4 2 2 5
V. Compute the convolution of the Laplacian kernels L_4 and L_8 with the image given
below. Use border values to extend the image. [2 x 10 = 20]
0 0 0 0 0
0 0 0 0 0
10 10 10 10 10
10 10 10 10 10
10 10 10 10 10
L_4 L_8
Page 4 of 7
VI. Perform histogram equalization on the following 8x8 image. The gray level
distribution of the image is given below. [15]
No. of
i/p Gray No. of
p(rk) = (L-1) Σ o/p Gray pixels in
Level pixels Σ
nk / MN (Sk) Level o/p
(rk) (nk)
image
0 8
1 10
2 10
3 2
4 12
5 16
6 4
7 2
VII. For a 8 x 8 image as shown below, generate the linear contrast stretched image with
minimum gray level 0 and maximum gray level 7. [10]
Note:
3 3 3 3 3 3 3 3
3 4 4 4 4 4 4 3
3 4 2 2 2 2 4 3
3 4 2 5 5 2 4 3
3 4 2 5 5 2 4 3
3 4 2 2 2 2 4 3
3 4 4 4 4 4 4 3
3 3 3 3 3 3 3 3
Page 5 of 7
Space for Calculation
rk sk
Output Image
Page 6 of 7
VIII. Assume a 6-bit gray scale image I and consider the spatial filter H given by
a) Determine the maximum and minimum possible values that a pixel, to which
this spatial filter is applied, can have. Do not apply any type of normalization.
[5]
Page 7 of 7