JIMMA UNIVERSITY
INSTITUTE OF TECHNOLOGY
SCHOOL OF ELECTRICAL AND COMPUTER ENGINEERING
Digital Image Processing
Name Id
Ramadan Hundessa………………RM0046/13-0
Submitted To: Instructor Kinde Anlay (PhD)
Date:August/10/21
Jimma, Ethiopia
Technical Discussion
1. Load an image (e.g. trees or clown) in MATLAB in gray shades. Change the number of
gray levels to 64, 16, 8, 4, 2 to display the same image. Comment on the observation.
To answer the question I used Matlab software as requirement.
The steps to display the image will be:
1.define the location/path of the original image that is going to be displayed.
2. Load the original image without any effect or shade
3.define gray level of the image to display it in different gray shades
4.Give explanation for each displayed image as title to identify from other shaded image simply.
5. save the program as Gray_level1.m
6.run the program
Generally the aim of this program is to display the same image in different gray levels(64, 16, 8,
4, 2). So as we decrease the level of gray from 64 to 2 we observe the disappearance of original
image . The disappearance depend on the effect of gray level we define. At the end of debugged
program we will get 6(same image ) images with different visibility level.
2. Load an image. Change the resolution of this image. Explain the effect of sampling
error.
The steps to display the image will be:
1.define the location/path of the original image that is going to be displayed.
2. Load the original image without any effect or shade
3.Declare two functions to use it later in for loop operation to display the loaded image with
added resolution.
4.Give explanation for each displayed image as title to identify from other shaded image simply.
5. save the program as Resolutioni.m
6.run the program.
After running the program we will get two images(same image) with different effect, the first
image is the original image and the second one is after resolution changed.
3. Display a sinusoidal pattern varying in
a) X-direction only
b) Y-direction only
c) In both X and Y direction only.
Change the frequency of the sinusoidal signals and display in the form of image.
The steps to display the image will be:
1. define two functions X and Y
2. Load the functions individually.
3.define those functions with value
4.Give explanation for each Function as title to identify from other function.
5. save the program as sinusoidal.m
6.run the program
7. Enter amplitude and frequency to run the program
After we run the program we will get 3 pictorial output x,y and mix of both functions .
Discussion of results
When we start from question number 1 it solves problem by changing shading level by 6
different ways .we understand image processing system as attractive subject that display the
same image in many level of effects by decreasing or increasing the effect (in our case gray
level effect is used).
I have used my relative image of reference: C:\Users\HP\OneDrive\Desktop\Ananiya.jpg
Additionally changing resolution effect is one of image processing technology that makes it
more attractable by displaying same image in different resolution .as we change the frequency
effect we will get different image from original.
Sinusoidal pattern is also one of image processing task that display images in x,y direction and
mix both of it at the end. The displayed image depends on the given function .changing
frequency is one method to change effect of the image. It asks us to enter the Amplitude and
frequency to display the image.
Results
C:\Users\HP\OneDrive\Desktop\Ananiya.jpg( reference:relative photo)
C:\Users\HP\OneDrive\Desktop\Ananiya.jpg
Image generated from given function of X, Y and mix of both.