Feature Matching and Robust Fitting

Similar documents
10/03/11. Model Fitting. Computer Vision CS 143, Brown. James Hays. Slides from Silvio Savarese, Svetlana Lazebnik, and Derek Hoiem

Local Image Features

Local Image Features

EECS 442 Computer vision. Fitting methods

Motion illusion, rotating snakes

Straight Lines and Hough

Photo by Carl Warner

Lecture 9 Fitting and Matching

Lecture 8 Fitting and Matching

Hough Transform and RANSAC

Multi-stable Perception. Necker Cube

CS 558: Computer Vision 4 th Set of Notes

Fitting. Instructor: Jason Corso (jjcorso)! web.eecs.umich.edu/~jjcorso/t/598f14!! EECS Fall 2014! Foundations of Computer Vision!

Fitting: The Hough transform

Fitting: The Hough transform

Local Image Features

Fitting: The Hough transform

Instance-level recognition

Instance-level recognition

Homography estimation

(More) Algorithms for Cameras: Edge Detec8on Modeling Cameras/Objects. Connelly Barnes

Fitting. Fitting. Slides S. Lazebnik Harris Corners Pkwy, Charlotte, NC

Local features: detection and description. Local invariant features

Building a Panorama. Matching features. Matching with Features. How do we build a panorama? Computational Photography, 6.882

Model Fitting: The Hough transform I

CAP 5415 Computer Vision Fall 2012

CEE598 - Visual Sensing for Civil Infrastructure Eng. & Mgmt.

Computer Vision for HCI. Topics of This Lecture

Object Recognition with Invariant Features

Wikipedia - Mysid

Introduction. Introduction. Related Research. SIFT method. SIFT method. Distinctive Image Features from Scale-Invariant. Scale.

Local features and image matching. Prof. Xin Yang HUST

Feature Detectors and Descriptors: Corners, Lines, etc.

Local features: detection and description May 12 th, 2015

Scale Invariant Feature Transform

Local Features: Detection, Description & Matching

Perception IV: Place Recognition, Line Extraction

Instance-level recognition part 2

Instance-level recognition II.

Scale Invariant Feature Transform

SIFT: SCALE INVARIANT FEATURE TRANSFORM SURF: SPEEDED UP ROBUST FEATURES BASHAR ALSADIK EOS DEPT. TOPMAP M13 3D GEOINFORMATION FROM IMAGES 2014

CS 4495 Computer Vision A. Bobick. CS 4495 Computer Vision. Features 2 SIFT descriptor. Aaron Bobick School of Interactive Computing

Midterm Wed. Local features: detection and description. Today. Last time. Local features: main components. Goal: interest operator repeatability

Ulas Bagci

EE795: Computer Vision and Intelligent Systems

Image Features: Local Descriptors. Sanja Fidler CSC420: Intro to Image Understanding 1/ 58

Other Linear Filters CS 211A

Lecture 10 Detectors and descriptors

Feature Based Registration - Image Alignment

Keypoint-based Recognition and Object Search

Automatic Image Alignment (feature-based)

Model Fitting. Introduction to Computer Vision CSE 152 Lecture 11

Fitting. Lecture 8. Cristian Sminchisescu. Slide credits: K. Grauman, S. Seitz, S. Lazebnik, D. Forsyth, J. Ponce

CS231A Midterm Review. Friday 5/6/2016

Local Features Tutorial: Nov. 8, 04

Model Fitting, RANSAC. Jana Kosecka

Local invariant features

The SIFT (Scale Invariant Feature

EECS150 - Digital Design Lecture 14 FIFO 2 and SIFT. Recap and Outline

Feature descriptors. Alain Pagani Prof. Didier Stricker. Computer Vision: Object and People Tracking

Fi#ng & Matching Region Representa3on Image Alignment, Op3cal Flow

Feature descriptors and matching

SIFT - scale-invariant feature transform Konrad Schindler

ECE Digital Image Processing and Introduction to Computer Vision

Edge and corner detection

Lecture: RANSAC and feature detectors

Edge Detection. CSE 576 Ali Farhadi. Many slides from Steve Seitz and Larry Zitnick

Prof. Feng Liu. Spring /26/2017

Obtaining Feature Correspondences

Features Points. Andrea Torsello DAIS Università Ca Foscari via Torino 155, Mestre (VE)

Scale Invariant Feature Transform by David Lowe

Patch-based Object Recognition. Basic Idea

CEE598 - Visual Sensing for Civil Infrastructure Eng. & Mgmt.

SCALE INVARIANT FEATURE TRANSFORM (SIFT)

Bias-Variance Trade-off (cont d) + Image Representations

A Comparison of SIFT, PCA-SIFT and SURF

Computer Vision I - Filtering and Feature detection

EE368 Project Report CD Cover Recognition Using Modified SIFT Algorithm

CS4670: Computer Vision

Issues with Curve Detection Grouping (e.g., the Canny hysteresis thresholding procedure) Model tting They can be performed sequentially or simultaneou

2D Image Processing Feature Descriptors

Model Fitting: The Hough transform II

EE795: Computer Vision and Intelligent Systems

Computer Vision. Recap: Smoothing with a Gaussian. Recap: Effect of σ on derivatives. Computer Science Tripos Part II. Dr Christopher Town

Edge and Texture. CS 554 Computer Vision Pinar Duygulu Bilkent University

Outline 7/2/201011/6/

A NEW FEATURE BASED IMAGE REGISTRATION ALGORITHM INTRODUCTION

Image Features: Detection, Description, and Matching and their Applications

TA Section 7 Problem Set 3. SIFT (Lowe 2004) Shape Context (Belongie et al. 2002) Voxel Coloring (Seitz and Dyer 1999)

Object Category Detection. Slides mostly from Derek Hoiem

Feature Detection and Matching

Lecture 9: Hough Transform and Thresholding base Segmentation

AK Computer Vision Feature Point Detectors and Descriptors

PS3 Review Session. Kuan Fang CS231A 02/16/2018

Computer Vision 6 Segmentation by Fitting

Edges and Binary Images

Evaluation and comparison of interest points/regions

Feature Matching + Indexing and Retrieval

Computer Vision I - Basics of Image Processing Part 2

Feature Matching and RANSAC

Transcription:

Feature Matching and Robust Fitting Computer Vision CS 143, Brown Read Szeliski 4.1 James Hays Acknowledgment: Many slides from Derek Hoiem and Grauman&Leibe 2008 AAAI Tutorial

Project 2 questions?

This section: correspondence and alignment Correspondence: matching points, patches, edges, or regions across images

Overview of Keypoint Matching 1. Find a set of distinctive keypoints A 1 A 2 A 3 2. Define a region around each keypoint f A d( f A, f B ) T f B K. Grauman, B. Leibe 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

Review: Choosing an interest point 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

Review: Local 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 K. Grauman, B. Leibe

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 1 st nearest neighbor to 2 nd nearest neighbor distance. Lowe IJCV 2004

SIFT Repeatability Lowe IJCV 2004

SIFT Repeatability

How do we decide which features match?

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

Simple example: Fitting a line

Least squares line fitting Data: (x 1, y 1 ),, (x n, y n ) Line equation: y i = m x i + b Find (m, b) to minimize 0 2 2 y A Ap A T T dp de ) ( ) ( ) 2( 1 1 1 2 2 1 1 1 2 Ap Ap y Ap y y y Ap T T T n n n i i i y y b m x x y b m x E n i i i b mx y E 1 2 ) ( (x i, y i ) y=mx+b y A A A p y A Ap A T T T T 1 Matlab: p = A \ y; Modified from S. Lazebnik

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.

Robust least squares (to deal with outliers) General approach: minimize i u i (x i, θ) residual of i th point w.r.t. model parameters θ ρ robust function with scale parameter σ u x, ; i i u 2 n i 1 ( y i mx i b) 2 The robust function ρ Favors a configuration with small residuals Constant penalty for large residuals Slide from S. Savarese

Robust Estimator 1. Initialize: e.g., choose θ by least squares fit and 1.5 median error 2. Choose params to minimize: E.g., numerical optimization i 2 error(, data error(, data i ) 2 i ) 2 3. Compute new 1.5 median error 4. Repeat (2) and (3) until convergence

Other ways to search for parameters (for when no closed form solution exists) Line search 1. For each parameter, step through values and choose value that gives best fit 2. Repeat (1) until no parameter changes Grid search 1. Propose several sets of parameters, evenly sampled in the joint set 2. Choose best (or top few) and sample joint parameters around the current best; repeat Gradient descent 1. Provide initial position (e.g., random) 2. Locally search for better parameters by following gradient

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

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

Hough transform P.V.C. Hough, Machine Analysis of Bubble Chamber Pictures, Proc. Int. Conf. High Energy Accelerators and Instrumentation, 1959 Given a set of points, find the curve or line that explains the data points best y m x y = m x + b Hough space b Slide from S. Savarese

Hough transform y m x b y m 3 5 3 3 2 2 3 7 11 10 4 3 2 3 1 4 5 2 2 1 0 1 3 3 Slide from S. Savarese x b

Hough transform P.V.C. Hough, Machine Analysis of Bubble Chamber Pictures, Proc. Int. Conf. High Energy Accelerators and Instrumentation, 1959 Issue : parameter space [m,b] is unbounded Use a polar representation for the parameter space y x Hough space xcos ysin Slide from S. Savarese

Hough transform - experiments features votes Slide from S. Savarese

Hough transform - experiments Noisy data features votes Need to adjust grid size or smooth Slide from S. Savarese

Hough transform - experiments features votes Issue: spurious peaks due to uniform noise Slide from S. Savarese

1. Image Canny

2. Canny Hough votes

3. Hough votes Edges Find peaks and post-process

Hough transform example http://ostatic.com/files/images/ss_hough.jpg

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

Next lecture RANSAC Connecting model fitting with feature matching