Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Q1) The Following Figure Shows A 3-Bit Image of Size 5-By-5 Image in The Square

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Islamic University Of Gaza Image Processing

Faculty of Engineering Quiz 2 (Chapter 3)


Computer Department Time: 10 minutes.
Eng. Ahmed M. Ayash Date: 31/03/2013

Student Name: …Solution… ID: ………………….. Grade: ………………….

Q1) The following figure shows a 3-bit image of size 5-by-5 image in the square

Compute the following:

(a) The output of a 3 × 3 mean filter at (3,3)

(4+6+1+7+2+5+0+6+2)/9 = 3.67 ≈ 4

(b) The output of a 3 × 3 median filter at (3,3)

median(0,1,2,2,4,5,6,6,7) = 4

(c) The histogram of the whole image.

r 0 1 2 3 4 5 6 7

h 2 4 5 2 3 3 3 3

(d) The result of histogram equalization at the point (3,3). Show steps in obtaining your solution.

r 0 1 2 3 4 5 6 7

pdf 0.08 0.16 0.2 0.08 0.12 0.12 0.12 0.12

cdf 0.08 0.24 0.44 0.52 0.64 0.76 0.88 1

s 1 2 3 4 5 5 6 7

3.08 ≈ 3

1
Q2)
a) The following figure shows a 3-bit image of size 5-by-5 image in the square:

Compute the following:

(1) Apply the filter kernel given below to calculate the filter response at pixel location (3,3).

(4+12+1+14+8+10+0+12+2)/16 = 3.9375 ≈ 4

(2) The histogram of the whole image.

r 0 1 2 3 4 5 6 7

h 2 4 5 2 3 3 3 3

(3) The result of histogram equalization at the point (4,5). Show steps in obtaining your solution.

r 0 1 2 3 4 5 6 7

pdf 0.08 0.16 0.2 0.08 0.12 0.12 0.12 0.12

cdf 0.08 0.24 0.44 0.52 0.64 0.76 0.88 1

s 1 2 3 4 5 5 6 7

1.68 ≈ 2

2
b) The following figure shows an 8-bit image of size 5-by-5 image in the square,

Compute the following:

(1) The output of a 3 × 3 mean filter at (2,3)

(25+95+65+95+40+65+25+65+40)/9 = 57.2222 ≈ 57

(2) The output of a 3 × 3 median filter at (2,3)

median(25,25,40,40,65,65,65,95,95) = 65

You might also like