DIP-Tutorial Sheet 1
DIP-Tutorial Sheet 1
3. Discuss the various types of connectivity between pixels? Consider the image segment shown below. Let
V={0, 1} and compute the D4, D8 and Dm distances between p and q. Show that the D4 distance between
two points p and q is equal to shortest 4-path between these points. Is this path unique?
3 1 2 1 (q )
2 2 0 2
1 2 1 1
( p) 1 0 1 2
4. Do the histogram equalization on a 64x64 image which has 8 discrete pixel levels (0-7) and its histogram is
given below. Transform it into a histogram equalized image also with 8 discrete gray levels in the range (0-
7).
Gray levels 0 1 2 3 4 5 6 7
No. of pixels 790 1023 850 656 329 245 122 81
5. Do histogram equalisation on the following image which has 8 discrete pixel levels (0 - 7), transforming it
into a histogram equalised image also with 8 discrete grey levels in the range (0-7).
11111111
02555520
03267230
03322330
02322330
03244240
02644420
11111111
6. Show the bit-plane slicing of the following image:
7 6 5
4 3 2
1 1 0
7. Perform linear interpolation operation on the following image:
1 3 2
4 5 6
8. Let the image f(x, y) is processed and the obtained out image is Z(x, y). What are the values of MSE, SNR,
and PSNR for the given 8-bit image?
f(x, y)
1 3 5
4 4 3
5 2 2
X(x, y)
1 2 4
4 4 2
5 2 1