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

Image Processing Practical Guide 2023

The document outlines the practical assignments for a Semester II Image Processing course for the year 2023-24. It includes a list of programs to be developed, covering topics such as intensity transformations, color image processing, Fourier transforms, filtering techniques, morphological processing, edge detection, and foreground extraction. Each practical has a designated date for completion and includes aims, descriptions, and placeholders for code and output.

Uploaded by

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

Image Processing Practical Guide 2023

The document outlines the practical assignments for a Semester II Image Processing course for the year 2023-24. It includes a list of programs to be developed, covering topics such as intensity transformations, color image processing, Fourier transforms, filtering techniques, morphological processing, edge detection, and foreground extraction. Each practical has a designated date for completion and includes aims, descriptions, and placeholders for code and output.

Uploaded by

premasharu18
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

SEMESTER II IMAGE PROCESSING 2023-24

INDEX

Prac. Practical Date


No.
1.a Program to calculate number of samples required for an 16/03/2024
image.
1.b Program to study the effects of reducing the spatial 16/03/2024
resolution of a digital image.
2 Basic Intensity Transformation functions : 16/03/2024
a. Program to perform Log transformation
b. Power-law transformations
c. Contrast Stretching

3 Program to plot the histogram of an image and its 16/03/2024


negative
4 Color Image Processing : 30/03/2024
a. Program to read a color image and convert it from RGB
to HSV
5 Fourier Related Transforms : 30/03/2024
a. Program to apply Discrete Fourier Transform on an image
b. Program to apply Discrete Cosine Transform on an image
6 Python program to illustrate Low Pass Filtering and High Pass 30/03/2024
Filtering
7 Morphological Image Processing : 30/03/2024
a. Program to apply erosion, dilation, opening, closing
8 Program for Edge detection using a. Sobel Canny 30/03/2024
Program to apply morphological gradient on an image
9
Python program to illustrate foreground extraction using 30/03/2024
GrabCut algorithm

Roll No-1 Page 1


SEMESTER II IMAGE PROCESSING 2023-24

Practical No : 1
Aim: 1A ) Program to calculate number of samples required for image.
Description :
The program will only calculate the number of samples required for an image.

Code :

Output:

Roll No-1 Page 2


SEMESTER II IMAGE PROCESSING 2023-24

1 B) Program to study the effects of reducing the spatial resolution of a


digital image

Code :

Roll No-1 Page 3


SEMESTER II IMAGE PROCESSING 2023-24

Output:

Roll No-1 Page 4


SEMESTER II IMAGE PROCESSING 2023-24

Practical No : 2
Aim: Basic Intensity Transformation functions

2.a) Program to perorm Log transformation

Code :

Roll No-1 Page 5


SEMESTER II IMAGE PROCESSING 2023-24

Output:

2.b) Power-law transformations

Code :

Roll No-1 Page 6


SEMESTER II IMAGE PROCESSING 2023-24

Output:

2.e) Contrast Stretching

Code :

Roll No-1 Page 7


SEMESTER II IMAGE PROCESSING 2023-24

Output:

Roll No-1 Page 8


SEMESTER II IMAGE PROCESSING 2023-24

Practical No : 3
Aim: Program to plot the histogram of an image and its negative
Description:
An image histogram is a type of histogram that acts as a graphical representation of the
tonal distribution in a digital image. It plots the number of pixels for each tonal value.
By looking at the histogram for a specific image a viewer will be able to judge the entire
tonal distribution at a glance.

Code :

Roll No-1 Page 9


SEMESTER II IMAGE PROCESSING 2023-24

Roll No-1 Page 10


SEMESTER II IMAGE PROCESSING 2023-24

Output:

Roll No-1 Page 11


SEMESTER II IMAGE PROCESSING 2023-24

Practical No : 4
Aim: Program to read a color image and convert it from BGR to
HSV

Description :
Color image processing is divided into two major areas: full-color and pseudo-color
processing. In the first category, the images in question typically are acquired with a
full-color sensor, such as a color TV camera or color scanner

Code :

Output:

Roll No-1 Page 12


SEMESTER II IMAGE PROCESSING 2023-24

Practical No : 5
Aim: Program to apply Discrete Fourier Transform on an image
Description:
In mathematics, the discrete Fourier transform (DFT) converts a finite sequence of
equally-spaced samples of a function into a same-length sequence of equally-spaced
samples of the discrete-time Fourier transform (DTFT), which is a complex-valued
function of frequency.

Code :

Output:

Roll No-1 Page 13


SEMESTER II IMAGE PROCESSING 2023-24

Aim: Program to apply Discrete Cosine Transform on an image


Code :

Output:

Roll No-1 Page 14


SEMESTER II IMAGE PROCESSING 2023-24

Practical No : 6
Aim: Python program to illustrate Low Pass Filtering and High Pass Filtering

Code :

Output:

Roll No-1 Page 15


SEMESTER II IMAGE PROCESSING 2023-24

Code:

Roll No-1 Page 16


SEMESTER II IMAGE PROCESSING 2023-24

Output:

Roll No-1 Page 17


SEMESTER II IMAGE PROCESSING 2023-24

Practical No : 7
Aim: Program to apply erosion, dilation, opening, closing
Code :

Roll No-1 Page 18


SEMESTER II IMAGE PROCESSING 2023-24

Output:

Roll No-1 Page 19


SEMESTER II IMAGE PROCESSING 2023-24

Practical No : 8
Aim: Program for Edge detection using a. Sobel Canny
Program to apply morphological gradient on an image

Code :

Roll No-1 Page 20


SEMESTER II IMAGE PROCESSING 2023-24

Output:

Roll No-1 Page 21


SEMESTER II IMAGE PROCESSING 2023-24

Practical No : 9
Aim: Python program to illustrate foreground extraction using GrabCut algorithm

Code :

Roll No-1 Page 22


SEMESTER II IMAGE PROCESSING 2023-24

Roll No-1 Page 23


SEMESTER II IMAGE PROCESSING 2023-24

Output:

Roll No-1 Page 24

You might also like