Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

University Of Diyala

College Of Engineering
Department Of Communication Engineering

Image Processing

By:
Fatima Subhi Khaleel Yasameen Khudair Fadl

Hadeel Abdulnabi Hidayat Ghadeer Ahssan Hassan

Noor Yaseen Taha

Supervisor:
Dr. Haider Makki

1 7/5/2023
Experiment 1

Create an image from the matrix in the form of a word or anything with
clear features, such as creating the word (Allah) as shown in the image
and the code below

2
Experiment 2
1- Recalling an image through an "imread".
2- View the image and convert it to (gray image).
As shown in the image and code below

3- Learn how to make a specific column or row with a specific value,


such as forming a square inside this image by making a column on
each side equal to zero (or any value according to the colors of the
image) and the same mechanism for rows

3
4- Clarification of the highest number in the gray image through the
instruction (max), which is 255

5- Performing simple operations on the image, such as multiplying the


image and dividing it by 2, and clarifying this with the matrix numbers and
the effect of the image colors. For example, by multiplication, the image
colors tend to be white, and by division, they tend to be black, as will be
explained in detail below.

Part from matrix b Part from matrix m Image m


4
Part from matrix b Part from matrix n Image n

Experiment 3
1- Create two images of matrices, perform the four mathematical
operations with them, and display the image of each operation

Image a Image b
5
Image (+) Image (*)

Image (/)
Image (-)

2- Then we zoomed in on image A and we will notice that the size of


the enlarged matrix will be double the original one

6
Experiment 4
1_ In this experiment, we will collect more than one image in one image,
so that we arrange the images as if we are arranging the elements of an
array, and the work of each instruction will be explained below
Subplot (m,n,p): m,n=The size of the imaginary matrix for arranging
images, p= Image location relative to the imaginary matrix.
Figure, image: Displays the image.
Title: Title written above the image.
Colorbar: A bar showing the color gradation of the image.

7
2_ Now we will analyze the color image to its original colors (red,
green, blue) as shown in the code and images

8
Experiment 5
In this experiment we will convert the image to a binary image.

Experiment 6

We'll create a loop that will make all elements of the array equal to 0.

9
Experiment 7
We make a condition if the sum of the elements of the 120th column is
greater than 150, make all these elements equal to zero

10

You might also like