Digital Images Processing Final Exam - April 2024
Digital Images Processing Final Exam - April 2024
Question 1 :
Multiple choices (circle the most appropriate one):
(*1*)
a) True b) False
8) Imaging Radar Technology is an application of band.
a) Radio waves b) Gamma Rays
c) Ultra Violet d) Micro Waves
9) One f the following functions is not an IPT (image processing toolbox) function used
to convert images.
a) dither () b) rgb2gray ()
c) gray2rgb () d) ind2gray ()
10) The colormap array of the indexed image is always of class
a) uint8 b) uint16
c) double d) logical
11) By default, Matlab stores most data in arrays of class
a) uint8 b) uint16
c) double d) logical
12) To map a narrow range of low gray-level input image into a wider range of output
levels , we use
a) Log Intensity Transformation Function
b) Power-law Intensity Transformation Function
c) Inverse Log Intensity Transformation Function
d) Identity Intensity Transformation Function
13) The sum of all elements in the mask of the smoothing averaging spatial filtering
must be equal to
a) m rows b) n columns
c) m*n d) 1
14) Sharpening the images is commonly accomplished by performing a spatial
…………. of the image field.
a) Min Filter b) Smoothing Filter
c) Integration d) Differentiation
15) One of the following filters is nonlinear
a) Gaussian Filter b) Averaging Filter
c) Laplacian Filter d) Median
*********************************************************************************************************************
Question 2 :
(*2*)
………………………………………………………………………………………………………………
……………………………………………………………………………………………………….....
………………………………………………………………………………………………………………
……………………………………………….
d) Give the formula for calculating D 4 (city block distance) and D 8 distance (chess
board distance).
………………………………………………………………………………………………………………
…….
………………………………………………………………………………………………………………
……………………………………………………………………………………………………….....
………………………………………………………………………………………………………………
…….
………………………………………………………………………………………………………………
……………………………………………………………………………………………………….....
e) Explain the concept, steps and equations involved in unsharp masking technique in
image enhancement.
………………………………………………………………………………………………………………
…….
………………………………………………………………………………………………………………
…………………………………………………………………….
………………………………………………………………………………………………………………
……………………………………………………………………………………………………….....
………………………………………………………………………………………………………………
…….
………………………………………………………………………………………………………………
(*3*)
……………………………………………………………………………………………………….....
………………………………………………………………………………………………………………
………………………………………………….
………………………………………………………………………………………………………………
……………………………………………………………………………………………………….....
……………………………………………………………………….
………………………………………………………………………………………………………………
……………………………………………………………………………………………………….....
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
………………………....
………………………………………………………………………………………………………………
………….....
*********************************************************************************************************************
Question 3 :
a) Write a Matlab script code to display the histogram of an image using a bar graph
reduce the resolution of the horizontal axis into 10 bands. Add suitable horizontal
and vertical axes, xtick and ytick for your graph.
………………………………………………………………………………………………………………
…….
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
….
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
….
………………………………………………………………………………………………………………
……………………………………………………………………………………………………….....
………………………………………………………………………………………………………………
………………………………………….
………………………………………………………………………………………………………………
…………………………………………………………………………….
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
…………………………………………………………………………………………………….....
b) Write matlab script code to read a gray scale image named "pout.tif" and apply the
following mathematical function to stretch its contrast levels:
Where:
(*4*)
g is the enhanced output image , f is the input image, m and E must be interactively
entered by the user using Matlab input command. Display the original and the
contrast stretched images.
………………………………………………………………………………………………………………
…….
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
………………………………………….
………………………………………………………………………………………………………………
……………………………………………………………………………………………………….....
………………………………………………………………………………………………………………
…….
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
…………………………………………………………………………………………………….....
………………………………………………………………….....
………………………………………………………………………………………………………………
………………………………….
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
….
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
………………………………………………………………………….....
*********************************************************************************************************************
Question 4 :
a) Classify Images sources by energy
………………………………………………………………………………………………………………
…….
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
………………………………………….
………………………………………………………………………………………………………………
……………………………………………………………………………………………………….....
………………………………………………………………………………………………………………
…….
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
…………………………………………………………………………………………………….....
………………………………………………………………….....
………………………………………………………………………………………………………………
…….
………………………………………………………………………………………………………………
(*5*)
………………………………………………………………………………………………………………
…………………………………………………………………………………………………….....
b) List four types of digital images used in Matlab programming language; explain the
Data Classes, the range for each type and how many matrices used for each type (fill
the table)
Number of
Image Type Data Classes Range matrices
*********************************************************************************************************************
Question 5 :
a) Write a Matlab script code to:
• Read a simple RGB image "football.jpg".
• Create a separate image for each color planes (red, green and blue) of the image.
• Display each color plane image separately, and also display the original image.
………………………………………………………………………………………………………………
…….
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
………………………………………….
………………………………………………………………………………………………………………
……………………………………………………………………………………………………….....
………………………………………………………………………………………………………………
(*6*)
…….
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
…………………………………………………………………………………………………….....
………………………………………………….…………………………………….....
………………………………………………………………………………………………………………
…….
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
……………………………………………………………………………………………………..................
..........................................................................................................................................................................
..........................................................................................................................................................................
..........................................................................................................................................................................
...............................................................
b) Explain the Gray-level slicing concept, its two methods and plots.
………………………………………………………………………………………………………………
…….
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
………………………………………….
………………………………………………………………………………………………………………
……………………………………………………………………………………………………….....
………………………………………………………………………………………………………………
…….
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
………………………….
………………………………………………………………………………………………………………
…………………………………………………………………………………………………….....
………………………………………………………………….....
………………………………………………………………………………………………………………
………….………………………………………….
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
…………………………………………………………………………………………………….....
*********************************************************************************************************************
Question 6 :
Write a matlab script code to
• Read images "cameraman.tif" and "pout.tif".
• Display both images as shown in figure
• Subtract the first 200x200 pixels of the first image from the last 200x200 of the
second image.
(*7*)
………………………………………………………………………………………………………………
…….
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
………………………………………….
………………………………………………………………………………………………………………
……………………………………………………………………………………………………….....
………………………………………………………………………………………………………………
…….
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
………….....
………………………………………………………………………………………………………………
…….
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
…………………………………………………………………………………………………….....
………………………………………………………………….....
………………………………………………………………………………………………………………
…….
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
…………………………………………………………………………………………………….....
)*(*8