SlideShare a Scribd company logo
1 of 31
Flexible Shape
Matching
Index
• Template Matching Overview
• Deformable Template
• Active Contour (Snake)
• Greedy Algorithm for Snake
17-Aug-162
Index
• Template Matching Overview
• Deformable Template
• Active Contour (Snake)
• Greedy Algorithm for Snake
17-Aug-163
Template Matching -
Problems
• Large number of comparisons.
• Exact match of multiple parameters.
17-Aug-164
Template Matching -
Solution
• Reduce number of matched points.
17-Aug-165
Still fixed and not
adaptable
Index
• Template Matching Overview
• Deformable Template
• Active Contour (Snake)
• Greedy Algorithm for Snake
17-Aug-166
Deformable Template –
Exact Match Solution
• Rather than using a fixed template with fixed
parameters, more flexible template is used.
17-Aug-167
Deformable Template –
Many Comparisons Solution
• Use only key edge points to detect object.
• These points are discriminant points of the object which are
edge points.
𝒓 𝟐
=(𝒙 − 𝑪 𝒄𝒙) 𝟐+(𝒚 − 𝑪 𝒄𝒚) 𝟐
17-Aug-168
Deformable Template –
Dynamic Templates Generation
• The set of parameter values that makes the template
best matches the edge points is the best parameters to
use.
{𝑪 𝒑, 𝒂, 𝒃, 𝒄, 𝑪 𝒄, r}
• Deformable templates may not be completely
autonomous.
17-Aug-169
Template Energy
• Good template parameters is what maximizes the
energy.
• The goal is to find parameters that maximize 𝑬 𝒆.
17-Aug-1612
More Parameters
• More parameters can be used to make results more
accurate.
• By a little eye analysis, it is apparent that usually sclera
is white and iris is darker than it.
• Adding these parameters can enhance results.
Sclera Iris
17-Aug-1613
Combine Parameters
• Combining all parameters, result in this final energy.
• Where 𝑪 𝒆, 𝑪 𝒗, 𝑪 𝒑 are weighting parameters that control
the influence of this parameter over the resultant energy.
• Goal is to maximize E.
17-Aug-1614
Many Parameters –
Problem
• For each parameter, there are a number of values that
needs to be tested until maximum energy reached.
• Say 11 parameters selected and each parameter can
have 100 values, so there are more than
𝟏𝟎 𝟐𝟓
combinations of parameter values needed to be
tested.
17-Aug-1615
Many Parameters –
Solution
• This problem can be solved in two ways:
o Optimization techniques that not reduce number
of combinations but try to make calculations quickly.
o Techniques to reduce number of parameters such
as snakes.
17-Aug-1616
Index
• Template Matching Overview
• Deformable Template
• Active Contour (Snake)
• Greedy Algorithm for Snake
17-Aug-1617
• An active contour is a set of points that aims to enclose a
target object.
Active Contour : Snake
17-Aug-1618
Active Contour : Snake
• Contour is a bounding region of a target object.
• It is active because it is a self-learning process to modify
itself until closely bound the target object.
• Contour changes like a snake.
• Goal of snakes is to find salient image contours that
surround target object.
17-Aug-1619
Snake Spline
• Snake draws a contour surrounding the target object.
• There are many complex objects with complex
boundaries and multiple inflection points.
• Snake uses spline to be able to draw complex shapes
using simple shapes.
• Spline divides complex shapes into small segments that
are easier to graph.
17-Aug-1620
Spline
• Spline is a polynomial or a set of polynomials to
approximates complex shapes.
• Complex shapes has many inflection points that can
be divided into simple segments with fewer inflection
points.
• Because cubic polynomial has a maximum of only two
inflection points, it will be used to approximate complex
shapes.
17-Aug-1621
x(u)=𝒂 𝒙 𝒖 𝟑
+𝒃 𝒙 𝒖 𝟐
+𝒄 𝒙 𝒖 +𝒅 𝒙
y(u)=𝒂 𝒚 𝒖 𝟑
+𝒃 𝒚 𝒖 𝟐
+𝒄 𝒚 𝒖 +𝒅 𝒚
Spline
• Complex shapes are divided into segments of at most
two inflection points.
• These segments are approximated using the cubic
polynomial.
• Collection of segments are then connected together in a
smooth manner.
17-Aug-1622
Contour
• Contour is defined in terms of x and y of all spline cubic
polynomial inflection points used to approximate
complex shape.
𝒗 𝒔 = (𝒙 𝒔 , 𝒚 𝒔 )
17-Aug-1623
Snake Process
• Snake is similar to deformable templates in which they
may be semiautomatic.
• They rely on other mechanisms to place them near the
desired contour.
• User specify the initial contour and snake tries to modify
it to find optimal contour.
17-Aug-1624
Snake Energy Minimization
• Snake changes its contour using different forces:
o Internal forces
o Image forces
o External forces
• To judge contour optimality, snake uses energy
minimization techniques.
17-Aug-1625
Internal Forces –
Internal Energy
• Internal forces is used to modify the spline shape.
• Internal energy of spline is symbolized 𝑬𝒊𝒏𝒕 that just
depends on spline shape.
• It consists of first- and second-order terms of contour
points.
17-Aug-1626
Internal Forces Energy
• Internal energy has two parameters that control snake
shape:
o α controls amount of snake spline stretching.
o β controls amount of snake spline flexing/smoothing.
• The larger α, the more stretch snake contour is.
• The larger β, the smoother snake contour.
17-Aug-1627
Image Forces
17-Aug-1628
• How a snake can know we need to detect eye?
• Image forces guides the snake to a selected image
portion with certain features.
• Examples is to depend on:
o Lines
o Edges
Image Forces Energy
• To measure image force optimality, image energy is
calculated.
• If only line and edge are the features to guide the snake,
thus line energy 𝑬𝒍𝒊𝒏𝒆 and edge energy 𝑬 𝒆𝒅𝒈𝒆 are
calculated.
• There are two parameters used to control image forces:
o 𝒘𝒍𝒊𝒏𝒆 guides snake to align itself to dark regions.
o 𝒘 𝒆𝒅𝒈𝒆guides snake to align itself to sharp edges.
17-Aug-1629
Index
• Template Matching Overview
• Deformable Template
• Active Contour (Snake)
• Greedy Algorithm for Snake
17-Aug-1631
Greedy Algorithm for
Snakes
• Greedy algorithm implements the snake energy
minimization.
17-Aug-1632
Define snake parameters α,β, 𝒘𝒍𝒊𝒏𝒆
and 𝒘 𝒆𝒅𝒈𝒆
Select snake point
Check neighborhood points for
lower energy
Set new snake point to new
minimum
Greedy Algorithm -
Initialization
• Snake parameters are initialized
externally and initial contour is found.
• Say there are 10 points in the initial
contour, then Greedy algorithm will
be applied on all10 points.
17-Aug-1633
Define snake parameters α,β, 𝒘𝒍𝒊𝒏𝒆
and 𝒘 𝒆𝒅𝒈𝒆
Greedy Algorithm – Snake
Point Neighborhood
17-Aug-1634
After Iteration 1After Iteration 2After Iteration 3

More Related Content

Similar to Flexible Shape Matching

06 image features
06 image features06 image features
06 image featuresankit_ppt
 
Dictionary Learning in Games - GDC 2014
Dictionary Learning in Games - GDC 2014Dictionary Learning in Games - GDC 2014
Dictionary Learning in Games - GDC 2014Manchor Ko
 
Recommender Systems.pptx
Recommender Systems.pptxRecommender Systems.pptx
Recommender Systems.pptxNamrata Vij
 
Overview and Implementation of Principal Component Analysis
Overview and Implementation of Principal Component Analysis Overview and Implementation of Principal Component Analysis
Overview and Implementation of Principal Component Analysis Taweh Beysolow II
 
Scale free network Visualiuzation
Scale free network VisualiuzationScale free network Visualiuzation
Scale free network VisualiuzationHarshit Srivastava
 
lec08-numpy.pptx
lec08-numpy.pptxlec08-numpy.pptx
lec08-numpy.pptxlekha572836
 
Fea 1 /certified fixed orthodontic courses by Indian dental academy
Fea 1 /certified fixed orthodontic courses by Indian dental academy Fea 1 /certified fixed orthodontic courses by Indian dental academy
Fea 1 /certified fixed orthodontic courses by Indian dental academy Indian dental academy
 
Business Analytics Foundation with R Tools - Part 3
Business Analytics Foundation with R Tools - Part 3Business Analytics Foundation with R Tools - Part 3
Business Analytics Foundation with R Tools - Part 3Beamsync
 
Regression Analysis.pptx
Regression Analysis.pptxRegression Analysis.pptx
Regression Analysis.pptxarsh260174
 
Regression Analysis Techniques.pptx
Regression Analysis Techniques.pptxRegression Analysis Techniques.pptx
Regression Analysis Techniques.pptxYutaItadori
 

Similar to Flexible Shape Matching (14)

06 image features
06 image features06 image features
06 image features
 
Dictionary Learning in Games - GDC 2014
Dictionary Learning in Games - GDC 2014Dictionary Learning in Games - GDC 2014
Dictionary Learning in Games - GDC 2014
 
Recommender Systems.pptx
Recommender Systems.pptxRecommender Systems.pptx
Recommender Systems.pptx
 
Overview and Implementation of Principal Component Analysis
Overview and Implementation of Principal Component Analysis Overview and Implementation of Principal Component Analysis
Overview and Implementation of Principal Component Analysis
 
SVD.ppt
SVD.pptSVD.ppt
SVD.ppt
 
Scale free network Visualiuzation
Scale free network VisualiuzationScale free network Visualiuzation
Scale free network Visualiuzation
 
lec08-numpy.pptx
lec08-numpy.pptxlec08-numpy.pptx
lec08-numpy.pptx
 
Fea 1 /certified fixed orthodontic courses by Indian dental academy
Fea 1 /certified fixed orthodontic courses by Indian dental academy Fea 1 /certified fixed orthodontic courses by Indian dental academy
Fea 1 /certified fixed orthodontic courses by Indian dental academy
 
DAA Notes.pdf
DAA Notes.pdfDAA Notes.pdf
DAA Notes.pdf
 
Business Analytics Foundation with R Tools - Part 3
Business Analytics Foundation with R Tools - Part 3Business Analytics Foundation with R Tools - Part 3
Business Analytics Foundation with R Tools - Part 3
 
Stats chapter 4
Stats chapter 4Stats chapter 4
Stats chapter 4
 
Module-3a.pptx
Module-3a.pptxModule-3a.pptx
Module-3a.pptx
 
Regression Analysis.pptx
Regression Analysis.pptxRegression Analysis.pptx
Regression Analysis.pptx
 
Regression Analysis Techniques.pptx
Regression Analysis Techniques.pptxRegression Analysis Techniques.pptx
Regression Analysis Techniques.pptx
 

More from Ahmed Gad

ICEIT'20 Cython for Speeding-up Genetic Algorithm
ICEIT'20 Cython for Speeding-up Genetic AlgorithmICEIT'20 Cython for Speeding-up Genetic Algorithm
ICEIT'20 Cython for Speeding-up Genetic AlgorithmAhmed Gad
 
NumPyCNNAndroid: A Library for Straightforward Implementation of Convolutiona...
NumPyCNNAndroid: A Library for Straightforward Implementation of Convolutiona...NumPyCNNAndroid: A Library for Straightforward Implementation of Convolutiona...
NumPyCNNAndroid: A Library for Straightforward Implementation of Convolutiona...Ahmed Gad
 
Python for Computer Vision - Revision 2nd Edition
Python for Computer Vision - Revision 2nd EditionPython for Computer Vision - Revision 2nd Edition
Python for Computer Vision - Revision 2nd EditionAhmed Gad
 
Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...
Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...
Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...Ahmed Gad
 
M.Sc. Thesis - Automatic People Counting in Crowded Scenes
M.Sc. Thesis - Automatic People Counting in Crowded ScenesM.Sc. Thesis - Automatic People Counting in Crowded Scenes
M.Sc. Thesis - Automatic People Counting in Crowded ScenesAhmed Gad
 
Derivation of Convolutional Neural Network from Fully Connected Network Step-...
Derivation of Convolutional Neural Network from Fully Connected Network Step-...Derivation of Convolutional Neural Network from Fully Connected Network Step-...
Derivation of Convolutional Neural Network from Fully Connected Network Step-...Ahmed Gad
 
Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)Ahmed Gad
 
Derivation of Convolutional Neural Network (ConvNet) from Fully Connected Net...
Derivation of Convolutional Neural Network (ConvNet) from Fully Connected Net...Derivation of Convolutional Neural Network (ConvNet) from Fully Connected Net...
Derivation of Convolutional Neural Network (ConvNet) from Fully Connected Net...Ahmed Gad
 
Avoid Overfitting with Regularization
Avoid Overfitting with RegularizationAvoid Overfitting with Regularization
Avoid Overfitting with RegularizationAhmed Gad
 
Genetic Algorithm (GA) Optimization - Step-by-Step Example
Genetic Algorithm (GA) Optimization - Step-by-Step ExampleGenetic Algorithm (GA) Optimization - Step-by-Step Example
Genetic Algorithm (GA) Optimization - Step-by-Step ExampleAhmed Gad
 
ICCES 2017 - Crowd Density Estimation Method using Regression Analysis
ICCES 2017 - Crowd Density Estimation Method using Regression AnalysisICCES 2017 - Crowd Density Estimation Method using Regression Analysis
ICCES 2017 - Crowd Density Estimation Method using Regression AnalysisAhmed Gad
 
Backpropagation: Understanding How to Update ANNs Weights Step-by-Step
Backpropagation: Understanding How to Update ANNs Weights Step-by-StepBackpropagation: Understanding How to Update ANNs Weights Step-by-Step
Backpropagation: Understanding How to Update ANNs Weights Step-by-StepAhmed Gad
 
Computer Vision: Correlation, Convolution, and Gradient
Computer Vision: Correlation, Convolution, and GradientComputer Vision: Correlation, Convolution, and Gradient
Computer Vision: Correlation, Convolution, and GradientAhmed Gad
 
Python for Computer Vision - Revision
Python for Computer Vision - RevisionPython for Computer Vision - Revision
Python for Computer Vision - RevisionAhmed Gad
 
Anime Studio Pro 10 Tutorial as Part of Multimedia Course
Anime Studio Pro 10 Tutorial as Part of Multimedia CourseAnime Studio Pro 10 Tutorial as Part of Multimedia Course
Anime Studio Pro 10 Tutorial as Part of Multimedia CourseAhmed Gad
 
Brief Introduction to Deep Learning + Solving XOR using ANNs
Brief Introduction to Deep Learning + Solving XOR using ANNsBrief Introduction to Deep Learning + Solving XOR using ANNs
Brief Introduction to Deep Learning + Solving XOR using ANNsAhmed Gad
 
Operations in Digital Image Processing + Convolution by Example
Operations in Digital Image Processing + Convolution by ExampleOperations in Digital Image Processing + Convolution by Example
Operations in Digital Image Processing + Convolution by ExampleAhmed Gad
 
MATLAB Code + Description : Real-Time Object Motion Detection and Tracking
MATLAB Code + Description : Real-Time Object Motion Detection and TrackingMATLAB Code + Description : Real-Time Object Motion Detection and Tracking
MATLAB Code + Description : Real-Time Object Motion Detection and TrackingAhmed Gad
 
MATLAB Code + Description : Very Simple Automatic English Optical Character R...
MATLAB Code + Description : Very Simple Automatic English Optical Character R...MATLAB Code + Description : Very Simple Automatic English Optical Character R...
MATLAB Code + Description : Very Simple Automatic English Optical Character R...Ahmed Gad
 
Graduation Project - Face Login : A Robust Face Identification System for Sec...
Graduation Project - Face Login : A Robust Face Identification System for Sec...Graduation Project - Face Login : A Robust Face Identification System for Sec...
Graduation Project - Face Login : A Robust Face Identification System for Sec...Ahmed Gad
 

More from Ahmed Gad (20)

ICEIT'20 Cython for Speeding-up Genetic Algorithm
ICEIT'20 Cython for Speeding-up Genetic AlgorithmICEIT'20 Cython for Speeding-up Genetic Algorithm
ICEIT'20 Cython for Speeding-up Genetic Algorithm
 
NumPyCNNAndroid: A Library for Straightforward Implementation of Convolutiona...
NumPyCNNAndroid: A Library for Straightforward Implementation of Convolutiona...NumPyCNNAndroid: A Library for Straightforward Implementation of Convolutiona...
NumPyCNNAndroid: A Library for Straightforward Implementation of Convolutiona...
 
Python for Computer Vision - Revision 2nd Edition
Python for Computer Vision - Revision 2nd EditionPython for Computer Vision - Revision 2nd Edition
Python for Computer Vision - Revision 2nd Edition
 
Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...
Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...
Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...
 
M.Sc. Thesis - Automatic People Counting in Crowded Scenes
M.Sc. Thesis - Automatic People Counting in Crowded ScenesM.Sc. Thesis - Automatic People Counting in Crowded Scenes
M.Sc. Thesis - Automatic People Counting in Crowded Scenes
 
Derivation of Convolutional Neural Network from Fully Connected Network Step-...
Derivation of Convolutional Neural Network from Fully Connected Network Step-...Derivation of Convolutional Neural Network from Fully Connected Network Step-...
Derivation of Convolutional Neural Network from Fully Connected Network Step-...
 
Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)
 
Derivation of Convolutional Neural Network (ConvNet) from Fully Connected Net...
Derivation of Convolutional Neural Network (ConvNet) from Fully Connected Net...Derivation of Convolutional Neural Network (ConvNet) from Fully Connected Net...
Derivation of Convolutional Neural Network (ConvNet) from Fully Connected Net...
 
Avoid Overfitting with Regularization
Avoid Overfitting with RegularizationAvoid Overfitting with Regularization
Avoid Overfitting with Regularization
 
Genetic Algorithm (GA) Optimization - Step-by-Step Example
Genetic Algorithm (GA) Optimization - Step-by-Step ExampleGenetic Algorithm (GA) Optimization - Step-by-Step Example
Genetic Algorithm (GA) Optimization - Step-by-Step Example
 
ICCES 2017 - Crowd Density Estimation Method using Regression Analysis
ICCES 2017 - Crowd Density Estimation Method using Regression AnalysisICCES 2017 - Crowd Density Estimation Method using Regression Analysis
ICCES 2017 - Crowd Density Estimation Method using Regression Analysis
 
Backpropagation: Understanding How to Update ANNs Weights Step-by-Step
Backpropagation: Understanding How to Update ANNs Weights Step-by-StepBackpropagation: Understanding How to Update ANNs Weights Step-by-Step
Backpropagation: Understanding How to Update ANNs Weights Step-by-Step
 
Computer Vision: Correlation, Convolution, and Gradient
Computer Vision: Correlation, Convolution, and GradientComputer Vision: Correlation, Convolution, and Gradient
Computer Vision: Correlation, Convolution, and Gradient
 
Python for Computer Vision - Revision
Python for Computer Vision - RevisionPython for Computer Vision - Revision
Python for Computer Vision - Revision
 
Anime Studio Pro 10 Tutorial as Part of Multimedia Course
Anime Studio Pro 10 Tutorial as Part of Multimedia CourseAnime Studio Pro 10 Tutorial as Part of Multimedia Course
Anime Studio Pro 10 Tutorial as Part of Multimedia Course
 
Brief Introduction to Deep Learning + Solving XOR using ANNs
Brief Introduction to Deep Learning + Solving XOR using ANNsBrief Introduction to Deep Learning + Solving XOR using ANNs
Brief Introduction to Deep Learning + Solving XOR using ANNs
 
Operations in Digital Image Processing + Convolution by Example
Operations in Digital Image Processing + Convolution by ExampleOperations in Digital Image Processing + Convolution by Example
Operations in Digital Image Processing + Convolution by Example
 
MATLAB Code + Description : Real-Time Object Motion Detection and Tracking
MATLAB Code + Description : Real-Time Object Motion Detection and TrackingMATLAB Code + Description : Real-Time Object Motion Detection and Tracking
MATLAB Code + Description : Real-Time Object Motion Detection and Tracking
 
MATLAB Code + Description : Very Simple Automatic English Optical Character R...
MATLAB Code + Description : Very Simple Automatic English Optical Character R...MATLAB Code + Description : Very Simple Automatic English Optical Character R...
MATLAB Code + Description : Very Simple Automatic English Optical Character R...
 
Graduation Project - Face Login : A Robust Face Identification System for Sec...
Graduation Project - Face Login : A Robust Face Identification System for Sec...Graduation Project - Face Login : A Robust Face Identification System for Sec...
Graduation Project - Face Login : A Robust Face Identification System for Sec...
 

Recently uploaded

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 

Recently uploaded (20)

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 

Flexible Shape Matching

  • 2. Index • Template Matching Overview • Deformable Template • Active Contour (Snake) • Greedy Algorithm for Snake 17-Aug-162
  • 3. Index • Template Matching Overview • Deformable Template • Active Contour (Snake) • Greedy Algorithm for Snake 17-Aug-163
  • 4. Template Matching - Problems • Large number of comparisons. • Exact match of multiple parameters. 17-Aug-164
  • 5. Template Matching - Solution • Reduce number of matched points. 17-Aug-165 Still fixed and not adaptable
  • 6. Index • Template Matching Overview • Deformable Template • Active Contour (Snake) • Greedy Algorithm for Snake 17-Aug-166
  • 7. Deformable Template – Exact Match Solution • Rather than using a fixed template with fixed parameters, more flexible template is used. 17-Aug-167
  • 8. Deformable Template – Many Comparisons Solution • Use only key edge points to detect object. • These points are discriminant points of the object which are edge points. 𝒓 𝟐 =(𝒙 − 𝑪 𝒄𝒙) 𝟐+(𝒚 − 𝑪 𝒄𝒚) 𝟐 17-Aug-168
  • 9. Deformable Template – Dynamic Templates Generation • The set of parameter values that makes the template best matches the edge points is the best parameters to use. {𝑪 𝒑, 𝒂, 𝒃, 𝒄, 𝑪 𝒄, r} • Deformable templates may not be completely autonomous. 17-Aug-169
  • 10. Template Energy • Good template parameters is what maximizes the energy. • The goal is to find parameters that maximize 𝑬 𝒆. 17-Aug-1612
  • 11. More Parameters • More parameters can be used to make results more accurate. • By a little eye analysis, it is apparent that usually sclera is white and iris is darker than it. • Adding these parameters can enhance results. Sclera Iris 17-Aug-1613
  • 12. Combine Parameters • Combining all parameters, result in this final energy. • Where 𝑪 𝒆, 𝑪 𝒗, 𝑪 𝒑 are weighting parameters that control the influence of this parameter over the resultant energy. • Goal is to maximize E. 17-Aug-1614
  • 13. Many Parameters – Problem • For each parameter, there are a number of values that needs to be tested until maximum energy reached. • Say 11 parameters selected and each parameter can have 100 values, so there are more than 𝟏𝟎 𝟐𝟓 combinations of parameter values needed to be tested. 17-Aug-1615
  • 14. Many Parameters – Solution • This problem can be solved in two ways: o Optimization techniques that not reduce number of combinations but try to make calculations quickly. o Techniques to reduce number of parameters such as snakes. 17-Aug-1616
  • 15. Index • Template Matching Overview • Deformable Template • Active Contour (Snake) • Greedy Algorithm for Snake 17-Aug-1617
  • 16. • An active contour is a set of points that aims to enclose a target object. Active Contour : Snake 17-Aug-1618
  • 17. Active Contour : Snake • Contour is a bounding region of a target object. • It is active because it is a self-learning process to modify itself until closely bound the target object. • Contour changes like a snake. • Goal of snakes is to find salient image contours that surround target object. 17-Aug-1619
  • 18. Snake Spline • Snake draws a contour surrounding the target object. • There are many complex objects with complex boundaries and multiple inflection points. • Snake uses spline to be able to draw complex shapes using simple shapes. • Spline divides complex shapes into small segments that are easier to graph. 17-Aug-1620
  • 19. Spline • Spline is a polynomial or a set of polynomials to approximates complex shapes. • Complex shapes has many inflection points that can be divided into simple segments with fewer inflection points. • Because cubic polynomial has a maximum of only two inflection points, it will be used to approximate complex shapes. 17-Aug-1621 x(u)=𝒂 𝒙 𝒖 𝟑 +𝒃 𝒙 𝒖 𝟐 +𝒄 𝒙 𝒖 +𝒅 𝒙 y(u)=𝒂 𝒚 𝒖 𝟑 +𝒃 𝒚 𝒖 𝟐 +𝒄 𝒚 𝒖 +𝒅 𝒚
  • 20. Spline • Complex shapes are divided into segments of at most two inflection points. • These segments are approximated using the cubic polynomial. • Collection of segments are then connected together in a smooth manner. 17-Aug-1622
  • 21. Contour • Contour is defined in terms of x and y of all spline cubic polynomial inflection points used to approximate complex shape. 𝒗 𝒔 = (𝒙 𝒔 , 𝒚 𝒔 ) 17-Aug-1623
  • 22. Snake Process • Snake is similar to deformable templates in which they may be semiautomatic. • They rely on other mechanisms to place them near the desired contour. • User specify the initial contour and snake tries to modify it to find optimal contour. 17-Aug-1624
  • 23. Snake Energy Minimization • Snake changes its contour using different forces: o Internal forces o Image forces o External forces • To judge contour optimality, snake uses energy minimization techniques. 17-Aug-1625
  • 24. Internal Forces – Internal Energy • Internal forces is used to modify the spline shape. • Internal energy of spline is symbolized 𝑬𝒊𝒏𝒕 that just depends on spline shape. • It consists of first- and second-order terms of contour points. 17-Aug-1626
  • 25. Internal Forces Energy • Internal energy has two parameters that control snake shape: o α controls amount of snake spline stretching. o β controls amount of snake spline flexing/smoothing. • The larger α, the more stretch snake contour is. • The larger β, the smoother snake contour. 17-Aug-1627
  • 26. Image Forces 17-Aug-1628 • How a snake can know we need to detect eye? • Image forces guides the snake to a selected image portion with certain features. • Examples is to depend on: o Lines o Edges
  • 27. Image Forces Energy • To measure image force optimality, image energy is calculated. • If only line and edge are the features to guide the snake, thus line energy 𝑬𝒍𝒊𝒏𝒆 and edge energy 𝑬 𝒆𝒅𝒈𝒆 are calculated. • There are two parameters used to control image forces: o 𝒘𝒍𝒊𝒏𝒆 guides snake to align itself to dark regions. o 𝒘 𝒆𝒅𝒈𝒆guides snake to align itself to sharp edges. 17-Aug-1629
  • 28. Index • Template Matching Overview • Deformable Template • Active Contour (Snake) • Greedy Algorithm for Snake 17-Aug-1631
  • 29. Greedy Algorithm for Snakes • Greedy algorithm implements the snake energy minimization. 17-Aug-1632 Define snake parameters α,β, 𝒘𝒍𝒊𝒏𝒆 and 𝒘 𝒆𝒅𝒈𝒆 Select snake point Check neighborhood points for lower energy Set new snake point to new minimum
  • 30. Greedy Algorithm - Initialization • Snake parameters are initialized externally and initial contour is found. • Say there are 10 points in the initial contour, then Greedy algorithm will be applied on all10 points. 17-Aug-1633 Define snake parameters α,β, 𝒘𝒍𝒊𝒏𝒆 and 𝒘 𝒆𝒅𝒈𝒆
  • 31. Greedy Algorithm – Snake Point Neighborhood 17-Aug-1634 After Iteration 1After Iteration 2After Iteration 3