Menoufia University
Computer Engineering and Sciences Department
Course Code: CES 325
Course Title: Digital Image Processing
Semester: Second – Spring 2024
Prof Mohamed A Berbar Mid Term Exam
Date: 24 March 2024 20 Marks Duration: 60 minutes
Q1 [10] Q2 [10]
Question 1:
Identify the following statements as true () or false (×) statements:
1. Laplacian filter is sensitive to noise. ( √ )
2. Median filtering results in a blurred image from the original image. ( x )
3. Subtracting a blurred image from the original image results in a highlighting of those pixels where
the intensity is changing rapidly and is termed High-pass spatial filters. (√ )
4. Suppose we have an image which is noisy. This type of noise in the image is called salt-and-pepper
noise ( √ )
5. Median filter technique is the best way to denoise this image ( √ )
6. Noise reduction is obtained by blurring the image using smoothing filter.( √ ).
7. Closing operation smooth regions - removes spurs - breaks narrow lines. ( x ).
8. Opening fills gaps - holes in region - narrow gaps. ( x ).
9. Gradient Edge Detection could be obtained using second derivative of the image function. ( √ ).
10. Erosion expands an object while Dilation shrinks it. ( x ).
11. The disadvantages of using Hough transforms to detect lines that it can not locate the start and end
points of the detected line. ( √ ).
12. Convolution is a segmentation method and concerns on modify individual pixels values. (√ ).
13. Contrast Adjustment is to add or subtract a constant to all pixels values. (x ).
14. Equalisation/Adaptive Equalisation is specifically to make histogram not uniform. ( x ).
15. Median filtering is an area process that does not fall under the category of convolution. (√ )
16. Prewitt masks are simpler than Sobel to implement but are very sensitive to noise. ( )
17. Gaussian is a true low-pass filter ( )
18. Noise reduction is obtained by blurring the image using smoothing filter.( √ ).
19. Gradient Edge Detection could be obtained using second derivative of the image function. ( √ ).
20. Equalisation/Adaptive Equalisation is specifically to make histogram not uniform. ( x ).
21. Question 2:
1) If we convolve an image with the matrix given below, what would be the relation between the
original and modified image? [2 marks]
a) The image will be shifted to the right by 1 pixel
b) The image will be shifted down by 1 pixel
c) The image will be shifted to the left by 1 pixel
d) The image will be shifted up by 1 pixel
2) Consider and image with width and height as 100×100. Each pixel in the image can have a true color
RGB. How much space in bytes would this image require for storing? [1 marks]….Note: No compression
is done.
A) 30,000
B) 2,56,000
C) 80,000
D) 8,000
3) Which of the following is a correct way to sharpen an image? [2 marks]A)
1. Convolve the image with identity matrix
2. Subtract this resulting image from the original
3. Add this subtracted result back to the original image
B)
1. Smooth the image
2. Subtract this smoothed image from the original
3. Add this subtracted result back to the original image
C)
1. Smooth the image
2. Add this smoothed image back to the original image
D) None of the above
in the given sequence B, the image is first smoothed or blurred to reduce noise and
enhance larger structures. Then, the smoothed image is subtracted from the original
image to obtain the high-frequency components, which represent the fine details
and edges. Finally, the subtracted result is added back to the original image to
enhance the sharpness and emphasize the edges.
4) The mask shown in the figure below belongs to which type of filter? [1 marks]
1. Sharpening spatial filter
2. Median filter
3. Sharpening frequency filter
4. Smoothing spatial filter
5) What does the total number of pixels in the region defines? [1 marks]
a) Perimeter
b) Area
c) Intensity
d) Brightness
6) Apply median filtering to the following image F using a 3x3 mask, and same padding. [2 marks]
answer →
Solution
6) Which of the following derivatives produce a double response at step changes in gray level?
a) First order derivative
b) Third order derivative
c) Second order derivative
d) First and second order derivatives
The objective of sharpening spatial filters is/are to ___________
a) Highlight fine detail in an image
b) Enhance detail that has been blurred because of some error
c) Enhance detail that has been blurred because of some natural effect of some method of
image acquisition
d) All of the mentioned
7) Which of the following fact(s) is/are true about sharpening spatial filters using digital differentiation?
a) Sharpening spatial filter response is proportional to the discontinuity of the image at the
point where the derivative operation is applied
b) Sharpening spatial filters enhances edges and discontinuities like noise
c) Sharpening spatial filters deemphasizes areas that have slowly varying gray-level values
d) All of the mentioned