0% found this document useful (0 votes)
61 views24 pages

Image Processing & Computer Vision (ECL 451) Lab Workbook

The document is a lab workbook submitted by Ansh Mathur for the course "IMAGE PROCESSING & COMPUTER VISION" at The NorthCap University. It contains 7 experiments on image processing concepts in MATLAB such as uploading and displaying images, performing arithmetic operations on images, contrast enhancement, discrete cosine transform, and introducing/removing blurring effects. Each experiment section includes the aim, code, and output for the given task.

Uploaded by

Ansh Mathur
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)
61 views24 pages

Image Processing & Computer Vision (ECL 451) Lab Workbook

The document is a lab workbook submitted by Ansh Mathur for the course "IMAGE PROCESSING & COMPUTER VISION" at The NorthCap University. It contains 7 experiments on image processing concepts in MATLAB such as uploading and displaying images, performing arithmetic operations on images, contrast enhancement, discrete cosine transform, and introducing/removing blurring effects. Each experiment section includes the aim, code, and output for the given task.

Uploaded by

Ansh Mathur
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/ 24

IMAGE PROCESSING

& COMPUTER VISION


(ECL 451)
LAB WORKBOOK

Submitted By:
Name: Ansh Mathur
Roll No.: 19ECU032
Branch: Electronics and Communication Engineering (ECE)

Submitted To: DR. Anu Tonk

School of Engineering & Technology


Department of Electrical, Electronics and Communication Engineering

The NorthCap University


Gurugram, Haryana
INDEX

Sr.No Name of the Experiment Date of Page Remarks


Experiment Nos.
1 Introduction to MATLAB 6/08/2021

2 Uploading of new image, display an image & perform 12/08/2021


fundamental operations on uploaded image
3 Write a program to add two images, to subtract two 20/08/2021
images, complement image, multiply two images and
divide two images
4 Write a program for Contrast Enhancement of an image 27/08/2021
using Matlab.
5 Write a program to perform Discrete Cosine Transform 03/09/2021
an image.
6 Write a program to introduce blurring effect on an 10/09/2021
image.
7 Write a program to remove blurring effect from the 17/09/2021
image using Matlab.
8

10

11

12

13

14

15
Experiment:1
Aim: Introduction to MATLAB
Introduction:
MATLAB is a programming and numeric computing platform used by millions of engineers and
scientists to analyse data, develop algorithms, and create models.
MATLAB combines a desktop environment tuned for iterative analysis and design processes
with a programming language that expresses matrix and array mathematics directly. It includes
the Live Editor for creating scripts that combine code, output, and formatted text in an
executable notebook.

Software Used: Matlab


Code:
1)

Figure1: Arithmetic operations


2)

Figure2: Graph Plot

3)

Figure3: Matrix Operations


Output:
1) Arithmetic Operations:

Figure4: Output(a)

Figure4: Output (b)


2) Graph plots:

Figure5: Output

2) Matrix Operations:
Figure6: Output (a)

Figure7: Output (b)


Experiment:2
Aim: Write a program to:
1. Uploading of new image
2. Display an image.
3. Perform fundamental operations on uploaded image.
Software Used: MATLAB
Code:
1)

Figure1: Reading and displaying of images

2)

Figure2: Subtraction of images


3)

Figure3: Addition of images

4)

Figure4: Division of image

5)

Figure5: converting an RGB image to a gray image


Output:
1)

Figure6: Output of Figure1

2)

Figure7: Output of Figure2


3)

Figure8: Output of Figure3

4)

Figure9: Output of Figure4


5)

Figure10: Output of Figure5


Experiment:3
Aim: Write a program to:
1. To add two images
2. To subtract two images
3. Complement image
4. Multiply two images
5. Divide Two images
Software Used: Matlab
Code:
1) Adding two images:

Figure1: Addition of images

2) Subtracting two images:

Figure2: Subtraction of images


3) Complementing an image:

Figure3: Complementing an image

4) Multiplying two images:

Figure4: Multiplying two images

5) Dividing two images:

Figure5: Dividing two images


Output:
1)

Figure6: Output of Figure1

2)

Figure7: Output of Figure2


3)

Figure8: Output of Figure3

4)

Figure9: Output of Figure4

5)
Figure10: Output of Figure5
Experiment:4
Aim: Write a program for Contrast Enhancement of an image using Matlab.
Software Used: Matlab
Code:

Output:
Experiment:5
Aim: Write a program to perform Discrete Cosine Transform an image.
Software Used: Matlab
Code:

Output:
Experiment:6
Aim: Write a program to introduce blurring effect on an image.
Software Used: Matlab
Code:

Output:
Experiment:7
Aim: Write a program to remove blurring effect from the image using Matlab.
Software Used: Matlab
Code:

Output:

You might also like