CS4670: Computer Vision

Similar documents
Image matching. Announcements. Harder case. Even harder case. Project 1 Out today Help session at the end of class. by Diva Sian.

Harder case. Image matching. Even harder case. Harder still? by Diva Sian. by swashford

Harder case. Image matching. Even harder case. Harder still? by Diva Sian. by swashford

Local Patch Descriptors

Local Features: Detection, Description & Matching

Image Features. Work on project 1. All is Vanity, by C. Allan Gilbert,

Local features: detection and description. Local invariant features

Local features: detection and description May 12 th, 2015

Feature descriptors and matching

BSB663 Image Processing Pinar Duygulu. Slides are adapted from Selim Aksoy

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

Local Feature Detectors

Patch Descriptors. CSE 455 Linda Shapiro

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

Local features and image matching. Prof. Xin Yang HUST

Local invariant features

2D Image Processing Feature Descriptors

Feature Detectors and Descriptors: Corners, Lines, etc.

Patch Descriptors. EE/CSE 576 Linda Shapiro

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

CS5670: Computer Vision

CS4670/5670: Computer Vision Kavita Bala. Lecture 14: Feature matching and Transforms

The SIFT (Scale Invariant Feature

Mosaics. Today s Readings

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

Motion Estimation and Optical Flow Tracking

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

Computer Vision for HCI. Topics of This Lecture

Edge and corner detection

Image correspondences and structure from motion

Automatic Image Alignment (feature-based)

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

Eppur si muove ( And yet it moves )

SURF. Lecture6: SURF and HOG. Integral Image. Feature Evaluation with Integral Image

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

Local Image Features

Local Image Features

Digital Image Processing (CS/ECE 545) Lecture 5: Edge Detection (Part 2) & Corner Detection

Object Recognition with Invariant Features

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

Ulas Bagci

Local Image Features

Feature Based Registration - Image Alignment

CS6670: Computer Vision

Scale Invariant Feature Transform

Feature Matching and RANSAC

Homographies and RANSAC

CS 378: Autonomous Intelligent Robotics. Instructor: Jivko Sinapov

Computer Vision I - Appearance-based Matching and Projective Geometry

Scale Invariant Feature Transform

Autonomous Navigation for Flying Robots

Local Descriptors. CS 510 Lecture #21 April 6 rd 2015

Outline 7/2/201011/6/

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

Feature Detection and Matching

Augmented Reality VU. Computer Vision 3D Registration (2) Prof. Vincent Lepetit

CSE 252B: Computer Vision II

CAP 5415 Computer Vision Fall 2012

SCALE INVARIANT FEATURE TRANSFORM (SIFT)

HISTOGRAMS OF ORIENTATIO N GRADIENTS

School of Computing University of Utah

Srikumar Ramalingam. Review. 3D Reconstruction. Pose Estimation Revisited. School of Computing University of Utah

Scott Smith Advanced Image Processing March 15, Speeded-Up Robust Features SURF

Feature Matching and Robust Fitting

CS 231A Computer Vision (Winter 2018) Problem Set 3

Key properties of local features

Prof. Feng Liu. Spring /26/2017

Automatic Image Alignment

Wikipedia - Mysid

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

Chapter 3 Image Registration. Chapter 3 Image Registration

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

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

Computer Vision Course Lecture 04. Template Matching Image Pyramids. Ceyhun Burak Akgül, PhD cba-research.com. Spring 2015 Last updated 11/03/2015

SIFT - scale-invariant feature transform Konrad Schindler

CS 558: Computer Vision 4 th Set of Notes

Discovering Visual Hierarchy through Unsupervised Learning Haider Razvi

Lecture 16: Computer Vision

Lecture 16: Computer Vision

CS 231A Computer Vision (Winter 2014) Problem Set 3

Motion illusion, rotating snakes

Capturing, Modeling, Rendering 3D Structures

Keypoint-based Recognition and Object Search

Automatic Image Alignment

Large-Scale 3D Point Cloud Processing Tutorial 2013

Prof. Noah Snavely CS Administrivia. A4 due on Friday (please sign up for demo slots)

Templates, Image Pyramids, and Filter Banks

Srikumar Ramalingam. Review. 3D Reconstruction. Pose Estimation Revisited. School of Computing University of Utah

Correspondence and Stereopsis. Original notes by W. Correa. Figures from [Forsyth & Ponce] and [Trucco & Verri]

Feature Detection. Raul Queiroz Feitosa. 3/30/2017 Feature Detection 1

Image Processing. Image Features

Stereo and Epipolar geometry

Types of Edges. Why Edge Detection? Types of Edges. Edge Detection. Gradient. Edge Detection

Problems with template matching

Lecture 4.1 Feature descriptors. Trym Vegard Haavardsholm

Image Matching. AKA: Image registration, the correspondence problem, Tracking,

Visual Tracking (1) Tracking of Feature Points and Planar Rigid Objects

Today s lecture. Image Alignment and Stitching. Readings. Motion models

Implementation and Comparison of Feature Detection Methods in Image Mosaicing

Corner Detection. GV12/3072 Image Processing.

Transcription:

CS4670: Computer Vision Noah Snavely Lecture 6: Feature matching and alignment

Szeliski: Chapter 6.1 Reading

Last time: Corners and blobs

Scale-space blob detector: Example

Feature descriptors We know how to detect good points Next question: How to match them?? Answer: Come up with a descriptor for each point, find similar descriptors between the two images

How to achieve invariance Need both of the following: 1. Make sure your detector is invariant 2. Design an invariant feature descriptor Simplest descriptor: a single 0 What s this invariant to? Next simplest descriptor: a square window of pixels What s this invariant to? Let s look at some better approaches

Rotation invariance for feature descriptors Find dominant orientation of the image patch This is given by x max, the eigenvector of H corresponding to max (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 CSE 576: Computer Vision 8 pixels Adapted from slide by Matthew Brown

Detections at multiple scales

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 angle histogram Adapted from slide by David Lowe

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 Adapted from slide by David Lowe

Properties of SIFT 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 (below) Fast and efficient can run in real time Lots of code available http://people.csail.mit.edu/albert/ladypack/wiki/index.php/known_implementations_of_sift

SIFT Example sift 868 SIFT features

Feature matching Given a feature in I 1, how to find the best match in I 2? 1. Define distance function that compares two descriptors 2. Test all the features in I 2, find the one with min distance

Feature distance How to define the difference between two features f 1, f 2? Simple approach: L 2 distance, f 1 - f 2 can give good scores to ambiguous (incorrect) matches f 1 f 2 I 1 I 2

Feature distance How to define the difference between two features f 1, f 2? Better approach: ratio distance = f 1 - f 2 / f 1 - f 2 f 2 is best SSD match to f 1 in I 2 f 2 is 2 nd best SSD match to f 1 in I 2 gives large values for ambiguous matches f 1 f ' 2 f 2 I 1 I 2

Feature matching example 51 matches

Feature matching example 58 matches

Evaluating the results How can we measure the performance of a feature matcher? 50 75 200 feature distance

True/false positives How can we measure the performance of a feature matcher? 50 75 true match 200 false match feature distance 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?

Evaluating the results How can we measure the performance of a feature matcher? 1 0.7 # true positives # matching features (positives) recall true positive rate 0 0.1 false positive rate 1 # false positives # unmatched features (negatives) 1 - precision

Evaluating the results How can we measure the performance of a feature matcher? 1 ROC curve ( Receiver Operator Characteristic ) 0.7 # true positives # matching features (positives) recall true positive rate 0 0.1 false positive rate 1 # false positives # unmatched features (negatives) 1 - precision

Lots of applications Features are used for: Image alignment (e.g., mosaics) 3D reconstruction Motion tracking Object recognition (e.g., Google Goggles) Indexing and database retrieval Robot navigation other

Object recognition (David Lowe)

3D Reconstruction Internet Photos ( Colosseum ) Reconstructed 3D cameras and points

Sony Aibo SIFT usage: Recognize charging station Communicate with visual cards Teach object recognition

Questions?

Image alignment Image taken from same viewpoint, just rotated. Can we line them up?

Image alignment Why don t these image line up exactly?

What is the geometric relationship between these two images??