SlideShare a Scribd company logo
1 of 37
Course: Machine Vision
Image Matching
Session 12
D5627 ā€“ I Gede Putra Kusuma Negara, B.Eng., PhD
Outline
ā€¢ Definition
ā€¢ Invariant features
ā€¢ Scale Invariant Feature Transform
ā€¢ Feature matching
Definition
Definition
ā€¢ Image matching can be defined as ā€œthe process of bringing two
images geometrically into agreement so that corresponding pixels in
the two images correspond to the same physical region of the scene
being imaged
ā€¢ Image matching problem is accomplished by transforming (e.g.,
translating, rotating, scaling) one of the images in such a way that the
similarity with the other image is maximized in some sense
ā€¢ The 3D nature of real-world scenarios makes this solution complex to
achieve, specially because images can be taken from arbitrary
viewpoints and in different illumination conditions.
Image Matching
ā€¢ Image matching is a fundamental aspect of many problems in
computer vision, including object and scene recognition, content-
based image retrieval, stereo correspondence, motion tracking,
texture classification and video data mining.
ā€¢ It is a complex problem, that remains challenging due to partial
occlusions, image deformations, and viewpoint or lighting changes
that may occur across different images
Image Matching (example)
by Diva Sian
by swashford
Feature Matching
ā€¢ What stuff in the left image matches with stuff on the right?
ā€¢ This information is important for for automatic panorama stitching
Harder Case
by Diva Sian by scgbt
Even Harder Case
NASA Mars Rover images with SIFT feature matches
Figure by Noah Snavely
Image Matching Procedure
1. Detection of distinguished regions
2. Local invariant description of these regions
3. Definition of the correspondence space
4. searching of a globally consistent subset of correspondences.
Invariant Features
Invariant Local Features
1. At an interesting
point, letā€™s define a
coordinate system
(x,y axis)
2. Use the coordinate
system to pull out a
patch at that point
Invariant Local Features
ā€¢ Algorithm for finding points and representing their patches should produce similar
results even when conditions vary
ā€¢ Buzzword is ā€œinvarianceā€
ā€“ Geometric invariance: translation, rotation, scale
ā€“ Photometric invariance: brightness, exposure, ā€¦etc.
Feature Descriptors
What makes good feature?
ā€¢ We would like to align by matching local features of these 3 images
ā€¢ What would be the good local features (ones easy to match)?
Local Measure of Uniqueness
Suppose we only consider a small window of pixels
ā€¢ What defines whether a feature is a good or bad candidate?
ā€¢ How does the window change when we shift it?
ā€¢ Shifting the window in any direction causes a big change
ā€œflatā€ region:
no change in all
directions
ā€œedgeā€:
no change along
the edge direction
ā€œcornerā€:
significant change
in all directions
Harris Corner Detector
(example)
Invariance
Suppose we are comparing two images I1 and I2
ā€“ I2 may be a transformed version of I1
ā€“ What kinds of transformations are we likely to encounter in
practice?
Weā€™d like to find the same features regardless of the
transformation
ā€“ This is called transformational invariance
ā€“ Most feature methods are designed to be invariant to
ā€¢ Translation, 2D rotation, scale
ā€“ They can usually also handle
ā€¢ Limited 3D rotations (SIFT works up to about 60 degrees)
ā€¢ Limited affine transformations (2D rotation, scale, shear)
ā€¢ Limited illumination/contrast changes
How to achieve invariance?
1. Make sure our detector is invariant
ā€“ Harris is invariant to translation and rotation
ā€“ Scale is trickier
ā€¢ common approach is to detect features at many scales using a Gaussian pyramid
(e.g., MOPS)
ā€¢ More sophisticated methods find ā€œthe best scaleā€ to represent each feature (e.g.,
SIFT)
2. Design an invariant feature descriptor
ā€“ A descriptor captures the information in a region around the
detected feature point
ā€“ The simplest descriptor: a square window of pixels
ā€¢ Whatā€™s this invariant to?
ā€“ Letā€™s look at some better approachesā€¦
Scale invariant detection
ā€¢ Suppose we are looking for
corners
ā€¢ Key idea: find scale that
gives local maximum of f
ā€“ f is a local maximum in both
position and scale
ā€“ Common definition of f:
Laplacian
(or difference between two
Gaussian filtered images with
different sigmas)
Slide from Tinne Tuytelaars
Lindeberg et al, 1996
Slide from Tinne Tuytelaars
Lindeberg et al., 1996
Rotation invariance for feature
descriptors
Find dominant orientation of the image patch
ā€¢ This is given by x+, the eigenvector of H corresponding to ļ¬+
ā€“ ļ¬+ is the larger eigenvalue
ā€¢ Rotate the patch according to this angle
Figure by Matthew Brown
Multiscale Oriented PatcheS
descriptor
Take 40x40 square window
around detected feature
ā€¢ Scale to 1/5 size (using
prefiltering)
ā€¢ Rotate to horizontal
ā€¢ Sample 8x8 square
window centered at
feature
ā€¢ Intensity normalize the
window by subtracting
the mean, dividing by the
standard deviation in the
window (both window I
and aI+b will match)
8 pixels
Detections at Multiple Scales
Scale Invariant Feature Transform
Scale Invariant Feature
Transform
Basic idea:
ā€¢ Take 16x16 square window
around detected feature
ā€¢ Compute edge orientation (angle
of the gradient - 90 ) for each
pixel
ā€¢ Throw out weak edges
(threshold gradient magnitude)
ā€¢ Create histogram of surviving
edge orientations
0 2ļ°
SIFT Descriptor
Full version
ā€¢ Divide the 16x16 window into a 4x4 grid of cells (2x2 case shown
below)
ā€¢ Compute an orientation histogram for each cell
ā€¢ 16 cells * 8 orientations = 128 dimensional descriptor
SIFT Properties
Extraordinarily robust matching technique
ā€¢ Can handle changes in viewpoint
ā€¢ Up to about 60 degree out of plane rotation
ā€¢ Can handle significant changes in illumination, sometimes even day
vs. night (next example)
ā€¢ Fast and efficientā€”can run in real time
ā€¢ Lots of code available
http://people.csail.mit.edu/albert/ladypack/wiki/index.php?title=Kno
wn_implementations_of_SIFT
SIFT in Action
Feature Matching
Feature Matching
Given a feature in I1, how to find
the best match in I2?
1. Define distance function that
compares two descriptors
2. Test all the features in I2, find the one
with min distance
How to define the difference
between two features f1, f2?
ā€¢ Simple approach is SSD(f1, f2)
ā€“ Sum of square differences between
entries of the two descriptors
ā€“ Can give good scores to very
ambiguous (bad) matches
I1
f1
f2
I2
Feature Distance
How to define the difference
between two features f1, f2?
ā€¢ Better approach: ratio
distance = SSD(f1, f2) /
SSD(f1, f2ā€™)
ā€“ f2 is best SSD match to f1 in I2
ā€“ f2ā€™ is 2nd best SSD match to f1 in
I2
ā€“ gives small values for ambiguous
matches
f1
f2
f2ā€™
I1
I2
Evaluating the Results
ā€¢ How can we measure the performance of a feature matcher?
50
75
200
feature distance
True/false Positive
The distance threshold affects performance
ā€¢ True positives = # of detected matches that are correct
ā€“ Suppose we want to maximize theseā€”how to choose threshold?
ā€¢ False positives = # of detected matches that are incorrect
ā€“ Suppose we want to minimize theseā€”how to choose threshold?
50
75
200
feature distance
false match
true match
Applications
Features are used for:
ā€¢ Image alignment (e.g., mosaics)
ā€¢ 3D reconstruction
ā€¢ Motion tracking
ā€¢ Object recognition
ā€¢ Indexing and database retrieval
ā€¢ Robot navigation
ā€¢ ā€¦ etc.
Acknowledgment
Some of slides in this PowerPoint presentation are adaptation from
various slides, many thanks to:
1. Deva Ramanan, Department of Computer Science, University of
California at Irvine (http://www.ics.uci.edu/~dramanan/)
Thank You

More Related Content

What's hot

Feature detection and matching
Feature detection and matchingFeature detection and matching
Feature detection and matchingKuppusamy P
Ā 
Image segmentation
Image segmentationImage segmentation
Image segmentationMd Shabir Alam
Ā 
Various object detection and tracking methods
Various object detection and tracking methodsVarious object detection and tracking methods
Various object detection and tracking methodssujeeshkumarj
Ā 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and SegmentationA B Shinde
Ā 
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSINGTYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSINGKamana Tripathi
Ā 
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSINGTYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSINGKamana Tripathi
Ā 
Image segmentation in Digital Image Processing
Image segmentation in Digital Image ProcessingImage segmentation in Digital Image Processing
Image segmentation in Digital Image ProcessingDHIVYADEVAKI
Ā 
Edge Detection algorithm and code
Edge Detection algorithm and codeEdge Detection algorithm and code
Edge Detection algorithm and codeVaddi Manikanta
Ā 
Image segmentation ajal
Image segmentation ajalImage segmentation ajal
Image segmentation ajalAJAL A J
Ā 
Image segmentation
Image segmentationImage segmentation
Image segmentationDeepak Kumar
Ā 
Image segmentation
Image segmentationImage segmentation
Image segmentationBulbul Agrawal
Ā 
Threshold Selection for Image segmentation
Threshold Selection for Image segmentationThreshold Selection for Image segmentation
Threshold Selection for Image segmentationParijat Sinha
Ā 
Video Segmentation
Video SegmentationVideo Segmentation
Video SegmentationSmriti Jain
Ā 
Features image processing and Extaction
Features image processing and ExtactionFeatures image processing and Extaction
Features image processing and ExtactionAli A Jalil
Ā 
Exploring Methods to Improve Edge Detection with Canny Algorithm
Exploring Methods to Improve Edge Detection with Canny AlgorithmExploring Methods to Improve Edge Detection with Canny Algorithm
Exploring Methods to Improve Edge Detection with Canny AlgorithmPrasad Thakur
Ā 

What's hot (20)

Feature detection and matching
Feature detection and matchingFeature detection and matching
Feature detection and matching
Ā 
PPT s02-machine vision-s2
PPT s02-machine vision-s2PPT s02-machine vision-s2
PPT s02-machine vision-s2
Ā 
Image segmentation
Image segmentation Image segmentation
Image segmentation
Ā 
Image segmentation
Image segmentationImage segmentation
Image segmentation
Ā 
Segmentation Techniques -I
Segmentation Techniques -ISegmentation Techniques -I
Segmentation Techniques -I
Ā 
Various object detection and tracking methods
Various object detection and tracking methodsVarious object detection and tracking methods
Various object detection and tracking methods
Ā 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
Ā 
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSINGTYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
Ā 
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSINGTYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
Ā 
Image segmentation in Digital Image Processing
Image segmentation in Digital Image ProcessingImage segmentation in Digital Image Processing
Image segmentation in Digital Image Processing
Ā 
PPT s03-machine vision-s2
PPT s03-machine vision-s2PPT s03-machine vision-s2
PPT s03-machine vision-s2
Ā 
Ed34785790
Ed34785790Ed34785790
Ed34785790
Ā 
Edge Detection algorithm and code
Edge Detection algorithm and codeEdge Detection algorithm and code
Edge Detection algorithm and code
Ā 
Image segmentation ajal
Image segmentation ajalImage segmentation ajal
Image segmentation ajal
Ā 
Image segmentation
Image segmentationImage segmentation
Image segmentation
Ā 
Image segmentation
Image segmentationImage segmentation
Image segmentation
Ā 
Threshold Selection for Image segmentation
Threshold Selection for Image segmentationThreshold Selection for Image segmentation
Threshold Selection for Image segmentation
Ā 
Video Segmentation
Video SegmentationVideo Segmentation
Video Segmentation
Ā 
Features image processing and Extaction
Features image processing and ExtactionFeatures image processing and Extaction
Features image processing and Extaction
Ā 
Exploring Methods to Improve Edge Detection with Canny Algorithm
Exploring Methods to Improve Edge Detection with Canny AlgorithmExploring Methods to Improve Edge Detection with Canny Algorithm
Exploring Methods to Improve Edge Detection with Canny Algorithm
Ā 

Similar to PPT s11-machine vision-s2

Computer Vision descriptors
Computer Vision descriptorsComputer Vision descriptors
Computer Vision descriptorsWael Badawy
Ā 
06 image features
06 image features06 image features
06 image featuresankit_ppt
Ā 
Scale Invariant Feature Transform
Scale Invariant Feature TransformScale Invariant Feature Transform
Scale Invariant Feature Transformkislayabhi
Ā 
Lecture 6-computer vision features descriptors matching
Lecture 6-computer vision features descriptors matchingLecture 6-computer vision features descriptors matching
Lecture 6-computer vision features descriptors matchingcairo university
Ā 
Michal Erel's SIFT presentation
Michal Erel's SIFT presentationMichal Erel's SIFT presentation
Michal Erel's SIFT presentationwolf
Ā 
SIFT vs other Feature Descriptor
SIFT vs other Feature DescriptorSIFT vs other Feature Descriptor
SIFT vs other Feature DescriptorNisar Ahmed Rana
Ā 
From Experimentation to Production: The Future of WebGL
From Experimentation to Production: The Future of WebGLFrom Experimentation to Production: The Future of WebGL
From Experimentation to Production: The Future of WebGLFITC
Ā 
11 cie552 image_featuresii_sift
11 cie552 image_featuresii_sift11 cie552 image_featuresii_sift
11 cie552 image_featuresii_siftElsayed Hemayed
Ā 
Computer Vision invariance
Computer Vision invarianceComputer Vision invariance
Computer Vision invarianceWael Badawy
Ā 
Dip lect2-Machine Vision Fundamentals
Dip  lect2-Machine Vision Fundamentals Dip  lect2-Machine Vision Fundamentals
Dip lect2-Machine Vision Fundamentals Abdul Abbasi
Ā 
Computer Vision panoramas
Computer Vision  panoramasComputer Vision  panoramas
Computer Vision panoramasWael Badawy
Ā 
project_PPT_final
project_PPT_finalproject_PPT_final
project_PPT_finalRanjan Ganguli
Ā 
3 D texturing
 3 D texturing 3 D texturing
3 D texturingkrishn verma
Ā 
Image processing.pdf
Image processing.pdfImage processing.pdf
Image processing.pdfJasaRChoudhary
Ā 
Cahall Final Intern Presentation
Cahall Final Intern PresentationCahall Final Intern Presentation
Cahall Final Intern PresentationDaniel Cahall
Ā 
Object Based Image Analysis
Object Based Image Analysis Object Based Image Analysis
Object Based Image Analysis Kabir Uddin
Ā 

Similar to PPT s11-machine vision-s2 (20)

Computer Vision descriptors
Computer Vision descriptorsComputer Vision descriptors
Computer Vision descriptors
Ā 
06 image features
06 image features06 image features
06 image features
Ā 
Scale Invariant Feature Transform
Scale Invariant Feature TransformScale Invariant Feature Transform
Scale Invariant Feature Transform
Ā 
Lecture 6-computer vision features descriptors matching
Lecture 6-computer vision features descriptors matchingLecture 6-computer vision features descriptors matching
Lecture 6-computer vision features descriptors matching
Ā 
Michal Erel's SIFT presentation
Michal Erel's SIFT presentationMichal Erel's SIFT presentation
Michal Erel's SIFT presentation
Ā 
SIFT vs other Feature Descriptor
SIFT vs other Feature DescriptorSIFT vs other Feature Descriptor
SIFT vs other Feature Descriptor
Ā 
From Experimentation to Production: The Future of WebGL
From Experimentation to Production: The Future of WebGLFrom Experimentation to Production: The Future of WebGL
From Experimentation to Production: The Future of WebGL
Ā 
11 cie552 image_featuresii_sift
11 cie552 image_featuresii_sift11 cie552 image_featuresii_sift
11 cie552 image_featuresii_sift
Ā 
Computer Vision invariance
Computer Vision invarianceComputer Vision invariance
Computer Vision invariance
Ā 
Dip lect2-Machine Vision Fundamentals
Dip  lect2-Machine Vision Fundamentals Dip  lect2-Machine Vision Fundamentals
Dip lect2-Machine Vision Fundamentals
Ā 
WT in IP.ppt
WT in IP.pptWT in IP.ppt
WT in IP.ppt
Ā 
SIFT.ppt
SIFT.pptSIFT.ppt
SIFT.ppt
Ā 
SIFT.ppt
SIFT.pptSIFT.ppt
SIFT.ppt
Ā 
Computer Vision panoramas
Computer Vision  panoramasComputer Vision  panoramas
Computer Vision panoramas
Ā 
project_PPT_final
project_PPT_finalproject_PPT_final
project_PPT_final
Ā 
3 D texturing
 3 D texturing 3 D texturing
3 D texturing
Ā 
Image processing.pdf
Image processing.pdfImage processing.pdf
Image processing.pdf
Ā 
L12 GIS (a).pdf
L12 GIS (a).pdfL12 GIS (a).pdf
L12 GIS (a).pdf
Ā 
Cahall Final Intern Presentation
Cahall Final Intern PresentationCahall Final Intern Presentation
Cahall Final Intern Presentation
Ā 
Object Based Image Analysis
Object Based Image Analysis Object Based Image Analysis
Object Based Image Analysis
Ā 

More from Binus Online Learning

LN sesi 2 delivering quality-1
LN sesi 2 delivering quality-1LN sesi 2 delivering quality-1
LN sesi 2 delivering quality-1Binus Online Learning
Ā 
PPT Sesi 2 FO the guest delivering quality-1
PPT Sesi 2 FO the guest delivering quality-1PPT Sesi 2 FO the guest delivering quality-1
PPT Sesi 2 FO the guest delivering quality-1Binus Online Learning
Ā 
PPT Sesi 3 FO the guest - delivering quality 2
PPT Sesi 3 FO the guest - delivering quality 2 PPT Sesi 3 FO the guest - delivering quality 2
PPT Sesi 3 FO the guest - delivering quality 2 Binus Online Learning
Ā 
LN sesi 3 delivering quality-2
LN sesi 3 delivering quality-2LN sesi 3 delivering quality-2
LN sesi 3 delivering quality-2Binus Online Learning
Ā 
LN sesi 4 managing guest reservation-1
LN sesi 4 managing guest reservation-1LN sesi 4 managing guest reservation-1
LN sesi 4 managing guest reservation-1Binus Online Learning
Ā 
PPT Sesi 4 managing guest reservation-1
PPT Sesi 4 managing guest reservation-1 PPT Sesi 4 managing guest reservation-1
PPT Sesi 4 managing guest reservation-1 Binus Online Learning
Ā 
LN sesi 5 managing guest reservation-2
LN sesi 5 managing guest reservation-2LN sesi 5 managing guest reservation-2
LN sesi 5 managing guest reservation-2Binus Online Learning
Ā 

More from Binus Online Learning (20)

LN s12-machine vision-s2
LN s12-machine vision-s2LN s12-machine vision-s2
LN s12-machine vision-s2
Ā 
LN s10-machine vision-s2
LN s10-machine vision-s2LN s10-machine vision-s2
LN s10-machine vision-s2
Ā 
LN s09-machine vision-s2
LN s09-machine vision-s2LN s09-machine vision-s2
LN s09-machine vision-s2
Ā 
LN s08-machine vision-s2
LN s08-machine vision-s2LN s08-machine vision-s2
LN s08-machine vision-s2
Ā 
LN s07-machine vision-s2
LN s07-machine vision-s2LN s07-machine vision-s2
LN s07-machine vision-s2
Ā 
LN s06-machine vision-s2
LN s06-machine vision-s2LN s06-machine vision-s2
LN s06-machine vision-s2
Ā 
LN s05-machine vision-s2
LN s05-machine vision-s2LN s05-machine vision-s2
LN s05-machine vision-s2
Ā 
LN s04-machine vision-s2
LN s04-machine vision-s2LN s04-machine vision-s2
LN s04-machine vision-s2
Ā 
LN s03-machine vision-s2
LN s03-machine vision-s2LN s03-machine vision-s2
LN s03-machine vision-s2
Ā 
LN s02-machine vision-s2
LN s02-machine vision-s2LN s02-machine vision-s2
LN s02-machine vision-s2
Ā 
LN s01-machine vision-s2
LN s01-machine vision-s2LN s01-machine vision-s2
LN s01-machine vision-s2
Ā 
PPT s09-machine vision-s2
PPT s09-machine vision-s2PPT s09-machine vision-s2
PPT s09-machine vision-s2
Ā 
PPT s05-machine vision-s2
PPT s05-machine vision-s2PPT s05-machine vision-s2
PPT s05-machine vision-s2
Ā 
LN sesi 2 delivering quality-1
LN sesi 2 delivering quality-1LN sesi 2 delivering quality-1
LN sesi 2 delivering quality-1
Ā 
PPT Sesi 2 FO the guest delivering quality-1
PPT Sesi 2 FO the guest delivering quality-1PPT Sesi 2 FO the guest delivering quality-1
PPT Sesi 2 FO the guest delivering quality-1
Ā 
PPT Sesi 3 FO the guest - delivering quality 2
PPT Sesi 3 FO the guest - delivering quality 2 PPT Sesi 3 FO the guest - delivering quality 2
PPT Sesi 3 FO the guest - delivering quality 2
Ā 
LN sesi 3 delivering quality-2
LN sesi 3 delivering quality-2LN sesi 3 delivering quality-2
LN sesi 3 delivering quality-2
Ā 
LN sesi 4 managing guest reservation-1
LN sesi 4 managing guest reservation-1LN sesi 4 managing guest reservation-1
LN sesi 4 managing guest reservation-1
Ā 
PPT Sesi 4 managing guest reservation-1
PPT Sesi 4 managing guest reservation-1 PPT Sesi 4 managing guest reservation-1
PPT Sesi 4 managing guest reservation-1
Ā 
LN sesi 5 managing guest reservation-2
LN sesi 5 managing guest reservation-2LN sesi 5 managing guest reservation-2
LN sesi 5 managing guest reservation-2
Ā 

Recently uploaded

Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
Ā 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
Ā 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
Ā 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
Ā 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
Ā 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
Ā 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
Ā 
pipeline in computer architecture design
pipeline in computer architecture  designpipeline in computer architecture  design
pipeline in computer architecture designssuser87fa0c1
Ā 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
Ā 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
Ā 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
Ā 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
Ā 
Call Us ā‰½ 8377877756 ā‰¼ Call Girls In Shastri Nagar (Delhi)
Call Us ā‰½ 8377877756 ā‰¼ Call Girls In Shastri Nagar (Delhi)Call Us ā‰½ 8377877756 ā‰¼ Call Girls In Shastri Nagar (Delhi)
Call Us ā‰½ 8377877756 ā‰¼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
Ā 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
Ā 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
Ā 

Recently uploaded (20)

Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
Ā 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
Ā 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
Ā 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Ā 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Ā 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
Ā 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
Ā 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
Ā 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
Ā 
pipeline in computer architecture design
pipeline in computer architecture  designpipeline in computer architecture  design
pipeline in computer architecture design
Ā 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
Ā 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
Ā 
young call girls in Green ParkšŸ” 9953056974 šŸ” escort Service
young call girls in Green ParkšŸ” 9953056974 šŸ” escort Serviceyoung call girls in Green ParkšŸ” 9953056974 šŸ” escort Service
young call girls in Green ParkšŸ” 9953056974 šŸ” escort Service
Ā 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
Ā 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
Ā 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
Ā 
Call Us ā‰½ 8377877756 ā‰¼ Call Girls In Shastri Nagar (Delhi)
Call Us ā‰½ 8377877756 ā‰¼ Call Girls In Shastri Nagar (Delhi)Call Us ā‰½ 8377877756 ā‰¼ Call Girls In Shastri Nagar (Delhi)
Call Us ā‰½ 8377877756 ā‰¼ Call Girls In Shastri Nagar (Delhi)
Ā 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
Ā 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
Ā 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Ā 

PPT s11-machine vision-s2

  • 1. Course: Machine Vision Image Matching Session 12 D5627 ā€“ I Gede Putra Kusuma Negara, B.Eng., PhD
  • 2. Outline ā€¢ Definition ā€¢ Invariant features ā€¢ Scale Invariant Feature Transform ā€¢ Feature matching
  • 4. Definition ā€¢ Image matching can be defined as ā€œthe process of bringing two images geometrically into agreement so that corresponding pixels in the two images correspond to the same physical region of the scene being imaged ā€¢ Image matching problem is accomplished by transforming (e.g., translating, rotating, scaling) one of the images in such a way that the similarity with the other image is maximized in some sense ā€¢ The 3D nature of real-world scenarios makes this solution complex to achieve, specially because images can be taken from arbitrary viewpoints and in different illumination conditions.
  • 5. Image Matching ā€¢ Image matching is a fundamental aspect of many problems in computer vision, including object and scene recognition, content- based image retrieval, stereo correspondence, motion tracking, texture classification and video data mining. ā€¢ It is a complex problem, that remains challenging due to partial occlusions, image deformations, and viewpoint or lighting changes that may occur across different images
  • 6. Image Matching (example) by Diva Sian by swashford
  • 7. Feature Matching ā€¢ What stuff in the left image matches with stuff on the right? ā€¢ This information is important for for automatic panorama stitching
  • 8. Harder Case by Diva Sian by scgbt
  • 9. Even Harder Case NASA Mars Rover images with SIFT feature matches Figure by Noah Snavely
  • 10. Image Matching Procedure 1. Detection of distinguished regions 2. Local invariant description of these regions 3. Definition of the correspondence space 4. searching of a globally consistent subset of correspondences.
  • 12. Invariant Local Features 1. At an interesting point, letā€™s define a coordinate system (x,y axis) 2. Use the coordinate system to pull out a patch at that point
  • 13. Invariant Local Features ā€¢ Algorithm for finding points and representing their patches should produce similar results even when conditions vary ā€¢ Buzzword is ā€œinvarianceā€ ā€“ Geometric invariance: translation, rotation, scale ā€“ Photometric invariance: brightness, exposure, ā€¦etc. Feature Descriptors
  • 14. What makes good feature? ā€¢ We would like to align by matching local features of these 3 images ā€¢ What would be the good local features (ones easy to match)?
  • 15. Local Measure of Uniqueness Suppose we only consider a small window of pixels ā€¢ What defines whether a feature is a good or bad candidate? ā€¢ How does the window change when we shift it? ā€¢ Shifting the window in any direction causes a big change ā€œflatā€ region: no change in all directions ā€œedgeā€: no change along the edge direction ā€œcornerā€: significant change in all directions
  • 17. Invariance Suppose we are comparing two images I1 and I2 ā€“ I2 may be a transformed version of I1 ā€“ What kinds of transformations are we likely to encounter in practice? Weā€™d like to find the same features regardless of the transformation ā€“ This is called transformational invariance ā€“ Most feature methods are designed to be invariant to ā€¢ Translation, 2D rotation, scale ā€“ They can usually also handle ā€¢ Limited 3D rotations (SIFT works up to about 60 degrees) ā€¢ Limited affine transformations (2D rotation, scale, shear) ā€¢ Limited illumination/contrast changes
  • 18. How to achieve invariance? 1. Make sure our detector is invariant ā€“ Harris is invariant to translation and rotation ā€“ Scale is trickier ā€¢ common approach is to detect features at many scales using a Gaussian pyramid (e.g., MOPS) ā€¢ More sophisticated methods find ā€œthe best scaleā€ to represent each feature (e.g., SIFT) 2. Design an invariant feature descriptor ā€“ A descriptor captures the information in a region around the detected feature point ā€“ The simplest descriptor: a square window of pixels ā€¢ Whatā€™s this invariant to? ā€“ Letā€™s look at some better approachesā€¦
  • 19. Scale invariant detection ā€¢ Suppose we are looking for corners ā€¢ Key idea: find scale that gives local maximum of f ā€“ f is a local maximum in both position and scale ā€“ Common definition of f: Laplacian (or difference between two Gaussian filtered images with different sigmas)
  • 20. Slide from Tinne Tuytelaars Lindeberg et al, 1996 Slide from Tinne Tuytelaars Lindeberg et al., 1996
  • 21.
  • 22. Rotation invariance for feature descriptors Find dominant orientation of the image patch ā€¢ This is given by x+, the eigenvector of H corresponding to ļ¬+ ā€“ ļ¬+ is the larger eigenvalue ā€¢ Rotate the patch according to this angle Figure by Matthew Brown
  • 23. Multiscale Oriented PatcheS descriptor Take 40x40 square window around detected feature ā€¢ Scale to 1/5 size (using prefiltering) ā€¢ Rotate to horizontal ā€¢ Sample 8x8 square window centered at feature ā€¢ Intensity normalize the window by subtracting the mean, dividing by the standard deviation in the window (both window I and aI+b will match) 8 pixels
  • 26. Scale Invariant Feature Transform Basic idea: ā€¢ Take 16x16 square window around detected feature ā€¢ Compute edge orientation (angle of the gradient - 90 ) for each pixel ā€¢ Throw out weak edges (threshold gradient magnitude) ā€¢ Create histogram of surviving edge orientations 0 2ļ°
  • 27. SIFT Descriptor Full version ā€¢ Divide the 16x16 window into a 4x4 grid of cells (2x2 case shown below) ā€¢ Compute an orientation histogram for each cell ā€¢ 16 cells * 8 orientations = 128 dimensional descriptor
  • 28. SIFT Properties Extraordinarily robust matching technique ā€¢ Can handle changes in viewpoint ā€¢ Up to about 60 degree out of plane rotation ā€¢ Can handle significant changes in illumination, sometimes even day vs. night (next example) ā€¢ Fast and efficientā€”can run in real time ā€¢ Lots of code available http://people.csail.mit.edu/albert/ladypack/wiki/index.php?title=Kno wn_implementations_of_SIFT
  • 31. Feature Matching Given a feature in I1, how to find the best match in I2? 1. Define distance function that compares two descriptors 2. Test all the features in I2, find the one with min distance How to define the difference between two features f1, f2? ā€¢ Simple approach is SSD(f1, f2) ā€“ Sum of square differences between entries of the two descriptors ā€“ Can give good scores to very ambiguous (bad) matches I1 f1 f2 I2
  • 32. Feature Distance How to define the difference between two features f1, f2? ā€¢ Better approach: ratio distance = SSD(f1, f2) / SSD(f1, f2ā€™) ā€“ f2 is best SSD match to f1 in I2 ā€“ f2ā€™ is 2nd best SSD match to f1 in I2 ā€“ gives small values for ambiguous matches f1 f2 f2ā€™ I1 I2
  • 33. Evaluating the Results ā€¢ How can we measure the performance of a feature matcher? 50 75 200 feature distance
  • 34. True/false Positive The distance threshold affects performance ā€¢ True positives = # of detected matches that are correct ā€“ Suppose we want to maximize theseā€”how to choose threshold? ā€¢ False positives = # of detected matches that are incorrect ā€“ Suppose we want to minimize theseā€”how to choose threshold? 50 75 200 feature distance false match true match
  • 35. Applications Features are used for: ā€¢ Image alignment (e.g., mosaics) ā€¢ 3D reconstruction ā€¢ Motion tracking ā€¢ Object recognition ā€¢ Indexing and database retrieval ā€¢ Robot navigation ā€¢ ā€¦ etc.
  • 36. Acknowledgment Some of slides in this PowerPoint presentation are adaptation from various slides, many thanks to: 1. Deva Ramanan, Department of Computer Science, University of California at Irvine (http://www.ics.uci.edu/~dramanan/)