You are on page 1of 3

Try exam

Question 1: (30 Marks)

(a) Define and Explains the following:


1)Digital Image. 2) Pixel. 3) Resolution 4) Image subtraction.
(b) What are the main difference between applying the Fourier transform on
signal and image?
(c) What are the matlab function to do the following:
1) Read & Write image. 2) Image subtraction. 3) Image rotation?
(d) What are the image types in matlab, how to convert from one type to other,
explain why to need to convert?
(e) Define the histogram and show how it’s used? Write matlab program to
calculate the histogram of gray image using for loop instead of the function
imhist?
(f) What are the common image points distance measures? Give at least two examples.
Question 2: (15 Marks)
(i) Suppose that you have been given the 3-bit 4x4 image shown in the figure
below. Show the output image as the desired histogram is as follows:

(ii) Write an M-function for grayscale input image; call it "immaxmin" to


generate two images:

Page 1/3
a) The first image contains values computed by finding the maximum value of
a 3x3 pixel environment (neighborhood of required pixel) and by setting
the resulting center pixel to this value.
b)The second image contains values computed by finding the minimum value
of 3x3 neighborhood of required pixel and by setting the resulting center
pixel to this value.
Question 3: (15 Marks)
1- Frequency domain filtering is an important image processing technique.
a) Describe how ideal low pass filtering works.

2- Write matlab script code to read a gray scale image named "Best.tif" and apply
the following mathematical function to stretch its contrast levels:

Where: 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.

3- Assume that you are given grey scale image with pixel intensities between [37..209]
(a) What point operation is necessary to map the pixels to the [0..255] range?
(b) What point operation is necessary to go from [0..255] back to [37..209]?

Question 4: (15 Marks)


.
(a) 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.

Page 2/3
------- with all best wishes ------

Page 3/3

You might also like