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

Similar documents
Optimization and least squares. Prof. Noah Snavely CS1114

Instance-level recognition

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

Automatic Image Alignment (feature-based)

Instance-level recognition

CS1114: Study Guide 2

Feature Matching and RANSAC

CS5670: Computer Vision

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

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

CS4670: Computer Vision

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

CS1114 Assignment 5, Part 2

Homographies and RANSAC

Hough Transform and RANSAC

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

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

Image Warping. Many slides from Alyosha Efros + Steve Seitz. Photo by Sean Carroll

Local Features: Detection, Description & Matching

Feature Matching and Robust Fitting

Stereo and Epipolar geometry

CS664 Lecture #16: Image registration, robust statistics, motion

Local Patch Descriptors

Estimate Geometric Transformation

RANSAC: RANdom Sampling And Consensus

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

Feature Detectors and Descriptors: Corners, Lines, etc.

Image correspondences and structure from motion

CS 558: Computer Vision 4 th Set of Notes

Automatic Image Alignment

CSE 527: Introduction to Computer Vision

Lecture: RANSAC and feature detectors

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

Local features: detection and description. Local invariant features

Homography estimation

Local features and image matching. Prof. Xin Yang HUST

Local features: detection and description May 12 th, 2015

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

Instance-level recognition part 2

Instance-level recognition II.

Edge and corner detection

Automatic Image Alignment

Keypoint-based Recognition and Object Search

3D Reconstruction from Two Views

Final project bits and pieces

Photo by Carl Warner

Structure from Motion. Introduction to Computer Vision CSE 152 Lecture 10

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

Image Stitching. Slides from Rick Szeliski, Steve Seitz, Derek Hoiem, Ira Kemelmacher, Ali Farhadi

CSE 252B: Computer Vision II

Object Recognition with Invariant Features

Image transformations. Prof. Noah Snavely CS Administrivia

Math background. 2D Geometric Transformations. Implicit representations. Explicit representations. Read: CS 4620 Lecture 6

Lecture 5 2D Transformation

Photo Tourism: Exploring Photo Collections in 3D

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

3D Computer Vision. Structure from Motion. Prof. Didier Stricker

Computer Vision I. Announcements. Random Dot Stereograms. Stereo III. CSE252A Lecture 16

CS6670: Computer Vision

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

Model Fitting, RANSAC. Jana Kosecka

CS 4495 Computer Vision A. Bobick. Motion and Optic Flow. Stereo Matching

Feature Based Registration - Image Alignment

Image stitching. Digital Visual Effects Yung-Yu Chuang. with slides by Richard Szeliski, Steve Seitz, Matthew Brown and Vaclav Hlavac

Combining Appearance and Topology for Wide

CS4670: Computer Vision

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

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

A NEW FEATURE BASED IMAGE REGISTRATION ALGORITHM INTRODUCTION

Structure from motion

CS 395T Lecture 12: Feature Matching and Bundle Adjustment. Qixing Huang October 10 st 2018

Linear Algebra Review

CS231A Section 6: Problem Set 3

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

Leow Wee Kheng CS4243 Computer Vision and Pattern Recognition. Robust Methods. CS4243 Robust Methods 1

Stitching and Blending

A Comparison of SIFT, PCA-SIFT and SURF

Local Feature Detectors

Graphics Pipeline 2D Geometric Transformations

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

Computer Vision I - Filtering and Feature detection

CS5670: Computer Vision

CS201: Computer Vision Introduction to Tracking

CS 4620 Midterm 1. Tuesday 22 October minutes

Computer Vision. Exercise 3 Panorama Stitching 09/12/2013. Compute Vision : Exercise 3 Panorama Stitching

Midterm Examination CS 534: Computational Photography

CS4620/5620. Professor: Kavita Bala. Cornell CS4620/5620 Fall 2012 Lecture Kavita Bala 1 (with previous instructors James/Marschner)

Structure from Motion

Linked lists. Prof. Noah Snavely CS1114

CS 664 Image Matching and Robust Fitting. Daniel Huttenlocher

CSCI 5980/8980: Assignment #4. Fundamental Matrix

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

Lecture 8 Fitting and Matching

521466S Machine Vision Assignment #3 Image Features

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

UNIVERSITY OF TORONTO Faculty of Applied Science and Engineering. ROB501H1 F: Computer Vision for Robotics. Midterm Examination.

A Summary of Projective Geometry

1. (10 pts) Order the following three images by how much memory they occupy:

Object recognition of Glagolitic characters using Sift and Ransac

Miniature faking. In close-up photo, the depth of field is limited.

Transcription:

Robust fitting Prof. Noah Snavely CS111 http://www.cs.cornell.edu/courses/cs111 Administrivia A due on Friday (please sign up for demo slots) A5 will be out soon Prelim is coming up, Tuesday, /

Roadmap What s left (next.5 weeks): assignments (A5, A) 1 final project 3 quizzes prelims 3 Tricks with convex hull What else can we do with convex hull? Answer: sort! Given a list of numbers (x 1, x, x n ), create a list of D points: (x 1, x 1 ), (x, x ), (x n, x n ) Find the convex hull of these points the points will be in sorted order What does this tell us about the running time of convex hull?

Tricks with convex hull This is called a reduction from sorting to convex hull 5 Next couple weeks How do we detect an object in an image? Combines ideas from image transformations, least squares, and robustness

Invariant local features Find features that are invariant to transformations geometric invariance: translation, rotation, scale photometric invariance: brightness, exposure, Feature Descriptors (Slides courtesy Steve Seitz) Object matching in three steps 1. Detect features in the template and search images sift. Match features: find similar-looking features in the two images 3. Find a transformation T that explains the movement of the matched features

Image transformations 9 D Linear Transformations Can be represented with a D matrix And applied to a point using matrix multiplication

Image transformations Rotation is around the point (, ) the upper-left corner of the image This isn t really what we want 11 Translation We really want to rotate around the center of the image Approach: move the center of the image to the origin, rotate, then the center back (Moving an image is called translation ) But translation isn t linear 1

Homogeneous coordinates Add a 1 to the end of our D points (x, y) (x, y, 1) Homogeneous D points We can represent transformations on D homogeneous coordinates as 3D matrices 13 Translation Other transformations just add an extra row and column with [ 1 ] scale rotation 1

Correct rotation Translate center to origin Rotate Translate back to center 15 Affine transformations A D affine transformation has the form: Can be thought of as a x linear transformation plus translation This will come up again soon in object detection 1

Mileage Fitting affine transformations We will fit an affine transformation to a set of feature matches Problem: there are many incorrect matches 17 Back to fitting Simple case: fitting a line 1 1 3 5 1

Mileage Mileage Linear regression But what happens here? 1 1 3 5 How do we fix this? 19 Least squares fitting 1 1 3 5 This objective function measures the goodness of a hypothesized line

Mileage Mileage Beyond least squares We need to change our objective function Needs to be robust to outliers 1 1 3 5 1 Beyond least squares Idea: count the number of points that are close to the line 1 1 3 5

Mileage Mileage Testing goodness Idea: count the number of points that are close to the line 1 1 3 5 3 Testing goodness Idea: count the number of points that are close to the line 1 Score = 1 3 5

Mileage Mileage Testing goodness Idea: count the number of points that are close to the line 1 1 3 5 5 Testing goodness Idea: count the number of points that are close to the line 1 Score = 3 1 3 5

Mileage Mileage Testing goodness Idea: count the number of points that are close to the line 1 1 3 5 7 Testing goodness Idea: count the number of points that are close to the line 1 Score = 7 1 3 5

Mileage Testing goodness How can we tell if a point agrees with a line? Compute the distance the point and the line, and threshold 1 1 3 5 9 Testing goodness If the distance is small, we call this point an inlier to the line If the distance is large, it s an outlier to the line For an inlier point and a good line, this distance will be close to (but not exactly) zero For an outlier point or bad line, this distance will probably be large Objective function: find the line with the most inliers (or the fewest outliers) 3

Mileage Optimizing for inlier count How do we find the best possible line? 1 Score = 7 1 3 5 31 Algorithm (RANSAC) 1. Select two points at random. Solve for the line between those point 3. Count the number of inliers to the line L. If L has the highest number of inliers so far, save it 5. Repeat for N rounds, return the best L 3

Testing goodness This algorithm is called RANSAC (RANdom SAmple Consensus) example of a randomized algorithm Used in an amazing number of computer vision algorithms Requires two parameters: The agreement threshold (how close does an inlier have to be?) The number of rounds (how many do we need?) 33 Questions? 3

Next time 35