Unit3 Suhail Rashid
Unit3 Suhail Rashid
Unit: 3
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 2
Syllabus
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 3
Syllabus
IMAGE REGISTRATION:
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 4
Syllabus
Fundamentals of different colour models - RGB, CMY, HSI, YCbCr, Lab; False colour; Pseudo colour;
Enhancement; Segmentation, Dilation and Erosion Operators, Top Hat Filters
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 5
Applications
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 6
Course Objective
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 7
Course Outcome
Bloom’s
Course Outcomes (CO) Knowledge
Level (KL)
CO1 Understanding the concept of image processing and its techniques. K3
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 8
Program Outcomes
1 Engineering knowledge
2 Problem analysis:
3 Design/development of solutions
4 Conduct investigations of complex problems
5 Modern tool usage
6 The engineer and society
7 Environment and sustainability
8 Ethics
9 Individual and team work
10 Communication
11 Project management and finance
12 Life-long learning
12/10/24 MINI JAIN Image Processing and pattern 9
recognition ACSAI0522 Unit 3 9
CO-PO Mapping
CO-PO Mapping
CO/PO PO1 PO2 PO3 PO4 PO PO PO7 PO8 PO PO1 PO1 PO1
5 6 9 0 1 2
1 KCS052.1 3 3 3 2 3 1 3 2 1 3
2 KCS052.2 3 3 3 3 3 3
3 KCS052.3 3 3 1 3 3 1 1 1
4 KCS052.4 3 3 2 3 1 3 1 3
5 KCS052.5 3 3 3 2 3 2 3
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 10
Program Specific Outcomes
CO1 3 1 3 3
CO2 3 1 3 2
CO3 3 2 1
CO4 3 2 3 2
CO5 3 2 3 1
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 12
Program Educational Objectives
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 14
Question Paper Template
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 15
Question Paper Template
SECTION – A CO
Question-
1-a. -1
1-b. Question- -1
1-c. Question- -1
1-d. Question- -1
1-e. Question- -1
1-f. Question- -1
1-g. Question- -1
1-h. Question- -1
1-i. Question- -1
1-j. Question- -1
2-a. Question- -2
2-b. Question- -2
2-c. Question- -2
2-d. Question- -2
2-e. Question- -2
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 16
Question Paper Template
SECTION – B CO
3-a. Question- -6
3-b. Question- -6
3-c. Question- -6
3-d. Question- -6
3-e. Question- -6
3-f. Question- -6
3-g. Question- -6
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 17
Question Paper Template
SECTION – C CO
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 18
Content (Unit-3)
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 19
Pixel classification(CO3)
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 20
Example of Pixel Classification
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 21
Pixel Classification using thresholding
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 22
Different thresholding Methods
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 23
Grey level thresholding (CO3)
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 24
Process of Gray level thresholding
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 25
Contd…
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 26
Methods for selecting the threshold value
28
MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit
12/10/24 28
3
Local Thresholding (CO3)
29
MINI JAIN Image Processing and pattern
12/10/24 29
recognition ACSAI0522 Unit 3
Local thresholding methods
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 31
Bayes analysis (CO3)
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 32
Steps in Bayes Analysis
• Define the problem: Clearly define the problem and specify the
desired criteria for correct classification. For example, you may
want to maximize the accuracy, precision, recall, or a
combination of these metrics.
• Formulate prior beliefs: Specify prior beliefs about the
distribution of pixel intensities in the foreground and background
classes. This can be based on prior knowledge or assumptions
about the data.
• Likelihood model: Formulate a likelihood model that describes
the probability distribution of the observed pixel intensities given
the true class labels. This model captures the statistical
relationship between the observed data and the underlying
classes.
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 33
Contd…
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 34
Contd…
35
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 35
Bayes Analysis Method Representation
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 36
Otsu Method (CO3)
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 38
Contd…
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 40
Process of the Otsu threshold method
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 41
Derivative based edge detection operators (CO3)
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 42
Commonly used derivative-based edge detection
operators
• Roberts Operator: The Roberts operator calculates the gradient
by applying two 2x2 convolution kernels to the image. These
kernels emphasize horizontal and vertical changes in pixel
intensities. The gradients are then combined to estimate the
edge strength.
• Prewitt Operator: The Prewitt operator is an improvement over
the Roberts operator and uses two 3x3 convolution kernels.
One kernel highlights vertical changes, and the other
emphasizes horizontal changes. The gradients obtained from
these kernels are combined to estimate the edge strength.
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 43
Contd…
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 44
Edge detection/Linking (CO3)
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 45
Steps in Edge linking algorithms
• Edge Detection: The first step is to apply an edge
detection operator, such as the ones mentioned in the
previous response (e.g., Roberts, Prewitt, Sobel, Canny),
to identify the initial edge pixels in the image. This results
in a binary or grayscale image where the edge pixels are
highlighted.
• Edge Tracing: Once the initial edge pixels are detected,
edge tracing algorithms are used to follow the contours
of the edges. The most common approach is to examine
the neighborhood of each edge pixel and determine the
next pixel to connect. Different connectivity criteria, such
as 4-connectivity (horizontal and vertical neighbors) or 8-
connectivity (including diagonal neighbors), can be used
to guide the edge linking process.
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 46
Contd…
• Edge Linking: During the edge linking step, neighboring
edge pixels are connected to form longer edge segments or
curves. This is typically done by examining the local
properties of the edge pixels, such as intensity gradients,
orientations, or other edge characteristics, to determine
the continuity and coherence of the edges.
• Thresholding or Hysteresis: To control the linking process
and avoid spurious or noisy connections, thresholding or
hysteresis is often employed. A high threshold is set to
initially select strong edge pixels, and then a lower
threshold is used to selectively connect weaker edge pixels
if they are adjacent to the initially selected strong edges.
This helps to ensure that only relevant edges are connected
while suppressing noise and weak edge fragments.
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 47
Contd…
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 48
Canny edge detector (CO3)
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 49
Steps in Canny edge detection algorithm
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 50
Steps in Canny edge detection algorithm
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 51
Steps in Canny edge detection algorithm
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 52
Canny Edge detection example
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 53
Region Growing (CO3)
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 54
Steps in Region Growing algorithm
• Seed Selection: Choose one or more seed pixels as the starting points for
region growing. These seeds can be manually selected or automatically
determined based on specific criteria.
• Pixel Similarity Check: Compare the properties of the seed pixel(s) with its
neighboring pixels. If a neighboring pixel satisfies the similarity criterion, it
is added to the growing region.
• Region Expansion: Repeat the similarity check and inclusion process for
the newly added pixels. This step is performed iteratively until no more
pixels can be added to the region.
• Termination Condition: Define a termination condition based on specific
criteria. For example, the region growing process may stop when the
difference between the properties of a neighboring pixel and the mean
properties of the current region exceeds a threshold.
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 55
Example of Region Growing algorithm
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 56
Split/merge techniques (CO3)
1. Splitting:
I. Start with the entire image as a single region.
II. Apply a splitting criterion to determine if the region
should be divided into smaller sub-regions. The
splitting criterion can be based on various
properties such as intensity, color, texture, or edge
information.
III. If the splitting criterion is met, divide the region
into smaller sub-regions. This can be done by using
algorithms like quadtree decomposition, which
divides the region into four equal-sized sub-regions,
or recursive splitting methods like the watershed
algorithm.
IV. Repeat the splitting process for each newly created
sub-region.
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 58
Contd…
2. Merging:
I. Compare adjacent regions and apply a merging
criterion to determine if they should be combined
into a larger region. The merging criterion is
typically based on similarity measures between the
neighboring regions, such as color similarity,
intensity difference, or texture coherence.
II. If the merging criterion is met, merge the adjacent
regions into a larger region.
III. Repeat the merging process for the remaining
adjacent regions.
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 59
Contd…
3. Iteration:
I. Iterate the splitting and merging steps until a
termination criterion is satisfied. The termination
criterion can be based on factors such as the
number of regions, the difference in region
properties, or the convergence of region
boundaries.
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 60
Example of Split/merge technique
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 61
Line detection (CO3)
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 62
Hough transform (CO3)
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 63
Steps in Hough transform
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 64
Steps in Hough transform
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 65
Example of Hough transform
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 66
Textural features (CO3)
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 67
Gray level co-occurrence matrix (CO3)
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 68
Gray level co-occurrence matrix
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 69
Steps to create GLCM
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 70
Steps to create GLCM
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 71
Gray level co-occurrence matrix example
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 72
Moments (CO3)
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 73
Moments
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 74
Connected component analysis (CO3)
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 75
Steps in Connected component analysis
• Image Preparation: Convert the input image to a binary format, where the
regions of interest are represented by foreground pixels (usually white) and
the background is represented by background pixels (usually black). This can
be achieved through various image thresholding techniques.
• Pixel Connectivity: Determine the connectivity criteria for neighboring pixels.
Typically, 4-connectivity (pixels connected horizontally and vertically) or 8-
connectivity (including diagonal connections) is used.
• Connected Component Labeling: Iterate through each foreground pixel in the
binary image and assign a label to it. Initially, each foreground pixel is
unlabeled. The labeling process involves examining the neighboring labeled
pixels and assigning the same label to the current pixel if they meet the
connectivity criteria. If the current pixel has multiple labeled neighbors, a
decision is made to either assign a new label or merge the labels.
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 76
Steps in Connected component analysis
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 77
Example of Connected component analysis
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 78
Convex hull (CO3)
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 79
Distance transform (CO3)
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 80
Computation of Distance transform
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 81
Example of Distance transform
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 82
Medial axis transform (CO3)
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 85
Skeletonization/thinning (CO3)
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 86
Skeletonization/thinning
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 87
Skeletonization/thinning example
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 88
Shape properties (CO3)
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 89
Shape properties used in image processing
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 90
Shape properties used in image processing
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 91
Shape properties used in image processing
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 92
Shape properties used in image processing
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 93
Shape properties used in image processing
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 94
Shape properties used in image processing
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 95
Shape properties used in image processing
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 96
Shape properties used in image processing
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 97
MCQ
1. Which technique is commonly used for separating objects from the background based
on pixel intensity values?
a) Region-based segmentation
b) Thresholding
c) Edge detection
d) Watershed segmentation
2. Which method groups pixels based on similarity criteria such as color, texture, or
intensity?
a) Region growing
b) Thresholding
c) Edge detection
d) Watershed segmentation
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 98
MCQ
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 99
MCQ
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 100
MCQ
7. Which technique is based on the concept of flooding an image from seed points to
identify regions?
a) Region growing
b) Thresholding
c) Edge detection
d) Watershed segmentation
8. Which feature extraction technique can be used to identify and describe shapes in an
image?
a) Histogram of Oriented Gradients (HOG)
b) Scale-Invariant Feature Transform (SIFT)
c) Principal Component Analysis (PCA)
d) Haar Cascade Classifier
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 101
Old Question Papers
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 102
Assignment
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 103
Faculty Video Links, Youtube & NPTEL Video Links
and Online Courses Details
• https://www.youtube.com/watch?v=Y_-HgmvF9Zc
• https://www.youtube.com/watch?v=MiSS_aEEf8w
• https://www.youtube.com/watch?v=F3ZvWQMyj4I
• https://www.youtube.com/watch?v=onWJQY5oFhs
• https://www.youtube.com/watch?v=ecu8kreTwYM
• https://www.youtube.com/watch?v=7ImSbCj8bRI
• https://www.youtube.com/watch?v=yKFaHFwTg00
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 104
Summary
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 105
12/10/24 MINI JAIN Image Processing and pattern recognition ACSAI0522 Unit 3 106