CSE 185 Introduction to Computer Vision

Slides:



Advertisements
Similar presentations
Distinctive Image Features from Scale-Invariant Keypoints
Advertisements

Distinctive Image Features from Scale-Invariant Keypoints David Lowe.
Presented by Xinyu Chang
The SIFT (Scale Invariant Feature Transform) Detector and Descriptor
Fitting: The Hough transform. Voting schemes Let each feature vote for all the models that are compatible with it Hopefully the noise features will not.
Feature Matching and Robust Fitting Computer Vision CS 143, Brown James Hays Acknowledgment: Many slides from Derek Hoiem and Grauman&Leibe 2008 AAAI Tutorial.
Object Recognition using Invariant Local Features Applications l Mobile robots, driver assistance l Cell phone location or object recognition l Panoramas,
Object Recognition with Invariant Features n Definition: Identify objects or scenes and determine their pose and model parameters n Applications l Industrial.
Fitting: The Hough transform
Robust and large-scale alignment Image from
A Study of Approaches for Object Recognition
Object Recognition with Invariant Features n Definition: Identify objects or scenes and determine their pose and model parameters n Applications l Industrial.
Distinctive Image Feature from Scale-Invariant KeyPoints
Distinctive image features from scale-invariant keypoints. David G. Lowe, Int. Journal of Computer Vision, 60, 2 (2004), pp Presented by: Shalomi.
Fitting a Model to Data Reading: 15.1,
Scale Invariant Feature Transform (SIFT)
Automatic Image Alignment (feature-based) : Computational Photography Alexei Efros, CMU, Fall 2006 with a lot of slides stolen from Steve Seitz and.
Robust estimation Problem: we want to determine the displacement (u,v) between pairs of images. We are given 100 points with a correlation score computed.
Distinctive Image Features from Scale-Invariant Keypoints David G. Lowe – IJCV 2004 Brien Flewelling CPSC 643 Presentation 1.
Sebastian Thrun CS223B Computer Vision, Winter Stanford CS223B Computer Vision, Winter 2005 Lecture 3 Advanced Features Sebastian Thrun, Stanford.
Lecture 6: Feature matching and alignment CS4670: Computer Vision Noah Snavely.
Scale-Invariant Feature Transform (SIFT) Jinxiang Chai.
כמה מהתעשייה? מבנה הקורס השתנה Computer vision.
Fitting and Registration
CSE 185 Introduction to Computer Vision
Computer Vision - Fitting and Alignment
Distinctive Image Features from Scale-Invariant Keypoints By David G. Lowe, University of British Columbia Presented by: Tim Havinga, Joël van Neerbos.
Computer vision.
Fitting and Registration Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 02/14/12.
Object Tracking/Recognition using Invariant Local Features Applications l Mobile robots, driver assistance l Cell phone location or object recognition.
Local invariant features Cordelia Schmid INRIA, Grenoble.
Reporter: Fei-Fei Chen. Wide-baseline matching Object recognition Texture recognition Scene classification Robot wandering Motion tracking.
Photo by Carl Warner. Feature Matching and Robust Fitting Computer Vision James Hays Acknowledgment: Many slides from Derek Hoiem and Grauman&Leibe.
CSCE 643 Computer Vision: Extractions of Image Features Jinxiang Chai.
Edge Detection and Geometric Primitive Extraction Jinxiang Chai.
Distinctive Image Features from Scale-Invariant Keypoints David Lowe Presented by Tony X. Han March 11, 2008.
Computer Vision - Fitting and Alignment (Slides borrowed from various presentations)
CSE 185 Introduction to Computer Vision Feature Matching.
Project 3 questions? Interest Points and Instance Recognition Computer Vision CS 143, Brown James Hays 10/21/11 Many slides from Kristen Grauman and.
Lecture 9 Feature Extraction and Motion Estimation Slides by: Michael Black Clark F. Olson Jean Ponce.
Presented by David Lee 3/20/2006
776 Computer Vision Jan-Michael Frahm Spring 2012.
Recognizing specific objects Matching with SIFT Original suggestion Lowe, 1999,2004.
CSCI 631 – Foundations of Computer Vision March 15, 2016 Ashwini Imran Image Stitching.
SIFT.
Grouping and Segmentation. Sometimes edge detectors find the boundary pretty well.
776 Computer Vision Jan-Michael Frahm Spring 2012.
Segmentation by fitting a model: Hough transform and least squares
SIFT Scale-Invariant Feature Transform David Lowe
Lecture 13: Feature Descriptors and Matching
Presented by David Lee 3/20/2006
Lecture 07 13/12/2011 Shai Avidan הבהרה: החומר המחייב הוא החומר הנלמד בכיתה ולא זה המופיע / לא מופיע במצגת.
Distinctive Image Features from Scale-Invariant Keypoints
Local features: main components
Project 1: hybrid images
Line Fitting James Hayes.
Nearest-neighbor matching to feature database
Fitting: The Hough transform
Feature description and matching
A special case of calibration
Nearest-neighbor matching to feature database
CAP 5415 Computer Vision Fall 2012 Dr. Mubarak Shah Lecture-5
Photo by Carl Warner.
The SIFT (Scale Invariant Feature Transform) Detector and Descriptor
Photo by Carl Warner.
SIFT keypoint detection
SIFT.
Feature descriptors and matching
SIFT SIFT is an carefully designed procedure with empirically determined parameters for the invariant and distinctive features.
Presented by Xu Miao April 20, 2005
Presentation transcript:

CSE 185 Introduction to Computer Vision Feature Matching

Feature matching Correspondence: matching points, patches, edges, or regions across images ≈

Keypoint matching 1. Find a set of distinctive key- points 2. Define a region around each keypoint B1 B2 B3 3. Extract and normalize the region content 4. Compute a local descriptor from the normalized region 5. Match local descriptors

Review: Interest points Keypoint detection: repeatable and distinctive Corners, blobs, stable regions Harris, DoG, MSER SIFT

Which interest detector What do you want it for? Precise localization in x-y: Harris Good localization in scale: Difference of Gaussian Flexible region shape: MSER Best choice often application dependent Harris-/Hessian-Laplace/DoG work well for many natural categories MSER works well for buildings and printed things Why choose? Get more points with more detectors There have been extensive evaluations/comparisons [Mikolajczyk et al., IJCV’05, PAMI’05] All detectors/descriptors shown here work well

Local feature descriptors Most features can be thought of as templates, histograms (counts), or combinations The ideal descriptor should be Robust and distinctive Compact and efficient Most available descriptors focus on edge/gradient information Capture texture information Color rarely used

How do we decide which features match?

Feature matching Szeliski 4.1.3 Simple feature-space methods Evaluation methods Acceleration methods Geometric verification (Chapter 6)

Feature matching Simple criteria: One feature matches to another if those features are nearest neighbors and their distance is below some threshold. Problems: Threshold is difficult to set Non-distinctive features could have lots of close matches, only one of which is correct

Matching local features Threshold based on the ratio of 1st nearest neighbor to 2nd nearest neighbor distance Reject all matches in which the distance ration > 0.8, which eliminates 90% of false matches while discarding less than 5% correct matches

SIFT repeatability It shows the stability of detection for keypoint location, orientation, and final matching to a database as a function of affine distortion. The degree of affine distortion is expressed in terms of the equivalent viewpoint rotation in depth for a planar surface.

Fitting and alignment Fitting: find the parameters of a model that best fit the data Alignment: find the parameters of the transformation that best align matched points

Fitting and alignment Design challenges Design a suitable goodness of fit measure Similarity should reflect application goals Encode robustness to outliers and noise Design an optimization method Avoid local optima Find best parameters quickly

Fitting and alignment: Methods Global optimization / Search for parameters Least squares fit Robust least squares Iterative closest point (ICP) Hypothesize and test Generalized Hough transform RANSAC

Least squares line fitting y=mx+b Data: (x1, y1), …, (xn, yn) Line equation: yi = m xi + b Find (m, b) to minimize (xi, yi) Matlab: p = A \ y;

Least squares (global) optimization Good Clearly specified objective Optimization is easy Bad May not be what you want to optimize Sensitive to outliers Bad matches, extra points Doesn’t allow you to get multiple good fits Detecting multiple objects, lines, etc.

Hypothesize and test Propose parameters Score the given parameters Try all possible Each point votes for all consistent parameters Repeatedly sample enough points to solve for parameters Score the given parameters Number of consistent points, possibly weighted by distance Choose from among the set of parameters Global or local maximum of scores Possibly refine parameters using inliers

Hough transform: Outline Create a grid of parameter values Each point votes for a set of parameters, incrementing those values in grid Find maximum or local maxima in grid

Hough transform Given a set of points, find the curve or line that explains the data points best Duality: Each point has a dual line in the parameter space y m 􀁑 Basic ideas • A line is represented as . Every line in the image corresponds to a point in the parameter space • Every point in the image domain corresponds to a line in the parameter space (why ? Fix (x,y), (m,n) can change on the line . In other words, for all the lines passing through (x,y) in the image space, their parameters form a line in the parameter space) • Points along a line in the space correspond to lines passing through the same point in the parameter space (why ?) b x Hough space y = m x + b m = -(1/x)b + y/x

Hough transform y m b x x y m b 3 5 2 7 11 10 4 1 􀁑 Basic ideas b 􀁑 Basic ideas • A line is represented as . Every line in the image corresponds to a point in the parameter space • Every point in the image domain corresponds to a line in the parameter space (why ? Fix (x,y), (m,n) can change on the line . In other words, for all the lines passing through (x,y) in the image space, their parameters form a line in the parameter space) • Points along a line in the space correspond to lines passing through the same point in the parameter space (why ?)

Hough transform Issue : parameter space [m,b] is unbounded… Use a polar representation for the parameter space y Duality: Each point has a dual curve in the parameter space 􀁑 Basic ideas • A line is represented as . Every line in the image corresponds to a point in the parameter space • Every point in the image domain corresponds to a line in the parameter space (why ? Fix (x,y), (m,n) can change on the line . In other words, for all the lines passing through (x,y) in the image space, their parameters form a line in the parameter space) • Points along a line in the space correspond to lines passing through the same point in the parameter space (why ?) x Hough space

Hough transform: Experiments Figure 15.1, top half. Note that most points in the vote array are very dark, because they get only one vote. features votes

Hough transform

Hough transform: Experiments Noisy data This is 15.1 lower half features votes Need to adjust grid size or smooth

Hough transform: Experiments 15.2; main point is that lots of noise can lead to large peaks in the array features votes Issue: spurious peaks due to uniform noise

1. Image  Canny

2. Canny  Hough votes

3. Hough votes  Edges Find peaks and post-process

Hough transform example

Hough transform: Finding lines Using m,b parameterization Using r, theta parameterization Using oriented gradients Practical considerations Bin size Smoothing Finding multiple lines Finding line segments