0% found this document useful (0 votes)
280 views8 pages

Digital Images Processing Final Exam - April 2024

Exam DIP

Uploaded by

amir8ahamd
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
280 views8 pages

Digital Images Processing Final Exam - April 2024

Exam DIP

Uploaded by

amir8ahamd
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

‫بسم هللا الرحمن الرحيم‬

SUDAN INTERNATIONAL UNIVERSITY


Kassala Center [Engineering College]
Faculty of Engineering
Computer Engineering – Semester (10)
Digital Images Processing Final Exam
Dr. Amir Ahmed Omer Yousif Time: 3Hours Date: ….-04-2024
*********************************************************************************************

Name:………………….…………………………. Index No:……………………..

Answer Question 1 then choose and answer 4 Questions:


*********************************************************************************************

Question 1 :
Multiple choices (circle the most appropriate one):

1) Computer vision defined as a discipline in which -----------


a) Both the input and output of a process are images.
b) The input of a process is an image description and the output is image
c) Both the input and output of a process are descriptions.
d) The input of a process is an image and the output is an image description.
2) MRI Technology used band.
a) Gamma Rays b) CT Scan
c) Visible d) Radio waves
3) -----------Filter cannot be implemented using convolution mechanism.
a) Average b) Gaussian
c) Median d) Disk
4) To remove "salt-and-pepper" noise without blurring we use
a) Max Filter b) Median Filter
c) Min Filter d) Smoothing Filter
5) Edge detection in images is commonly accomplished by performing a spatial ------of
the image field.
a) Smoothing Filter b) Integration
c) Differentiation d) Min Filter
6) Both the -------- and -------- filters are used to enhance horizontal edges (or vertical if
transposed).
a) Prewitt and Sobel b) Sobel and Gaussian
c) Prewitt and Laplacian d) Sobel and Laplacian
7) Transforming the pixel values of an image using the log ( ) transformation is an
example of contrast compression of the dark pixels

(*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 :

a) List two kinds of image representation methods?


………………………………………………………………………………………………………………
…….
………………………………………………………………………………………………………………
……………………………………………………………………………………………………….....

b) Name three types of sharpening filters?


………………………………………………………………………………………………………………
…….
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
………………………………….

(*2*)
………………………………………………………………………………………………………………
……………………………………………………………………………………………………….....
………………………………………………………………………………………………………………
……………………………………………….

c) Name the types of connectivity and explain


………………………………………………………………………………………………………………
…….
………………………………………………………………………………………………………………
………………………………………………………………………….
………………………………………………………………………………………………………………
……………………………………………………………………………………………………….....
………………………………………………………………………………………………………………
…….
………………………………………………………………………………………………………………
……………………………………………………………………………………………………….....
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
………………………………………………………………………………..
……………………………..............................................................................................................................
..........................................................................................................................................................................
..........................

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*)
‫………………………………………………………………………………………………………………‬
‫‪…….‬‬
‫………………………………………………………………………………………………………………‬
‫………………………………………………………………………………………………………………‬
‫‪………………………………………….‬‬
‫………………………………………………………………………………………………………………‬
‫‪……………………………………………………………………………………………………….....‬‬
‫………………………………………………………………………………………………………………‬
‫‪…….‬‬
‫………………………………………………………………………………………………………………‬
‫………………………………………………………………………………………………………………‬
‫………………………………………………………………………………………………………………‬
‫‪………….....‬‬
‫………………………………………………………………………………………………………………‬
‫‪…….‬‬
‫………………………………………………………………………………………………………………‬
‫………………………………………………………………………………………………………………‬
‫‪…………………………………………………………………………………………………….....‬‬
‫‪………………………………………………………………….....‬‬
‫………………………………………………………………………………………………………………‬
‫‪…….‬‬
‫………………………………………………………………………………………………………………‬
‫………………………………………………………………………………………………………………‬
‫‪…………………………………………………………………………………………………….....‬‬

‫*‪**################‬مع تمنياتنا لكم بالتوفيق جميعًا**‪*#################‬‬

‫‪Dr. Amir Ahmed‬‬

‫)*‪(*8‬‬

You might also like