Professional Documents
Culture Documents
Quality of picture depends upon the number of pixels and gray level that
represent the picture. Justify or contradict
Solution
An image can be defined as two dimensional function f(x, y) where x
and y are spatial coordinates and amplitude of f at any pair of
coordinates (x, y) is called grey level of image at that point. A digital
image is composed of M rows and N columns of pixels each storing a
value. Pixels are most often grey levels in the range 0-255. O represent
black and 255 represent white.
Question # 2: (6)
4 0 0 0
0 0 0 4
255 0 255 0
0 0 255 255
b) Bit plane slicing
1 0 0 0
0 0 0 1
1 0 1 0
0 0 1 1
0 1 1 0
1 0 1 0
0 0 1 1
1 1 0 1
0 1 0 1
1 1 0 0
1 1 0 0
0 1 1 0
c) Contrast Stretching:
4 3 2 1
3 1 2 4
5 1 6 2
2 3 5 6
153 102 51 0
102 0 51 153
204 0 255 51
51 102 204 255
Question#3
For a given 4x4 3-bit image
1 2 3 4
2 4 6 7
5 2 4 3
3 2 6 1
Solution
1. A = 3 and B = 5
2^3 = 8 (0 to 7)
Maximum intensity level = 7
Replace 3, 4, 5 with 7 otherwise replace it with 0
0 0 7 7
0 7 0 0
7 0 7 7
7 0 0 0
2. A = 3 and B = 5
2^3 = 8 (0 to 8)
Maximum intensity level = 7
Replace 3, 4, 5 with 7 otherwise no change
1 2 7 7
2 7 6 7
7 2 7 7
7 2 6 1