Lecture 12: Image alignment CS4670/5760: Computer Vision Kavita Bala

Slides:



Advertisements
Similar presentations
Lecture 11: Two-view geometry
Advertisements

Feature Matching and Robust Fitting Computer Vision CS 143, Brown James Hays Acknowledgment: Many slides from Derek Hoiem and Grauman&Leibe 2008 AAAI Tutorial.
MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling.
Computer vision: models, learning and inference
Two-View Geometry CS Sastry and Yang
CSc D Computer Vision – Ioannis Stamos 3-D Computer Vision CSc Camera Calibration.
Image alignment Image from
Lecture 11: Transformations CS4670/5760: Computer Vision Kavita Bala.
Single-view metrology
Some useful linear algebra. Linearly independent vectors span(V): span of vector space V is all linear combinations of vectors v i, i.e.
Lecture 19: Single-view modeling CS6670: Computer Vision Noah Snavely.
Fitting. We’ve learned how to detect edges, corners, blobs. Now what? We would like to form a higher-level, more compact representation of the features.
Announcements Project 2 questions Midterm out on Thursday
Lecture 7: Image Alignment and Panoramas CS6670: Computer Vision Noah Snavely What’s inside your fridge?
Projective geometry Slides from Steve Seitz and Daniel DeMenthon
Lecture 11: Structure from motion CS6670: Computer Vision Noah Snavely.
Lecture 9: Image alignment CS4670: Computer Vision Noah Snavely
Panorama signups Panorama project issues? Nalwa handout Announcements.
Lecture 16: Single-view modeling, Part 2 CS6670: Computer Vision Noah Snavely.
Lecture 8: Image Alignment and RANSAC
Camera parameters Extrinisic parameters define location and orientation of camera reference frame with respect to world frame Intrinsic parameters define.
Lecture 10: Robust fitting CS4670: Computer Vision Noah Snavely.
Computing transformations Prof. Noah Snavely CS1114
Lecture 12: Structure from motion CS6670: Computer Vision Noah Snavely.
Sebastian Thrun CS223B Computer Vision, Winter Stanford CS223B Computer Vision, Winter 2006 Lecture 4 Camera Calibration Professor Sebastian Thrun.
כמה מהתעשייה? מבנה הקורס השתנה Computer vision.
Projective Geometry and Single View Modeling CSE 455, Winter 2010 January 29, 2010 Ames Room.
Single-view modeling, Part 2 CS4670/5670: Computer Vision Noah Snavely.
Image Stitching Ali Farhadi CSE 455
CSE 185 Introduction to Computer Vision
CSC 589 Lecture 22 Image Alignment and least square methods Bei Xiao American University April 13.
Projective geometry of 2-space DLT alg HZ 4.1 Rectification HZ 2.7 Hierarchy of maps Invariants HZ 2.4 Projective transform HZ 2.3 Behaviour at infinity.
Camera Geometry and Calibration Thanks to Martial Hebert.
Fitting and Registration Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 02/14/12.
Digital Image Processing Lecture 7: Geometric Transformation March 16, 2005 Prof. Charlene Tsai.
Fitting & Matching Lecture 4 – Prof. Bregler Slides from: S. Lazebnik, S. Seitz, M. Pollefeys, A. Effros.
Vector Norms and the related Matrix Norms. Properties of a Vector Norm: Euclidean Vector Norm: Riemannian metric:
Announcements Project 3 due Thursday by 11:59pm Demos on Friday; signup on CMS Prelim to be distributed in class Friday, due Wednesday by the beginning.
Parameter estimation. 2D homography Given a set of (x i,x i ’), compute H (x i ’=Hx i ) 3D to 2D camera projection Given a set of (X i,x i ), compute.
Computer Vision : CISC 4/689 Going Back a little Cameras.ppt.
Model Fitting Computer Vision CS 143, Brown James Hays 10/03/11 Slides from Silvio Savarese, Svetlana Lazebnik, and Derek Hoiem.
Reconnaissance d’objets et vision artificielle Jean Ponce Equipe-projet WILLOW ENS/INRIA/CNRS UMR 8548 Laboratoire.
776 Computer Vision Jan-Michael Frahm Spring 2012.
Project 1 Due NOW Project 2 out today –Help session at end of class Announcements.
Fitting.
Project 2 went out on Tuesday You should have a partner You should have signed up for a panorama kit Announcements.
Parameter estimation class 5 Multiple View Geometry CPSC 689 Slides modified from Marc Pollefeys’ Comp
Lecture 10: Image alignment CS4670/5760: Computer Vision Noah Snavely
776 Computer Vision Jan-Michael Frahm Spring 2012.
Lecture 16: Image alignment
CS4670 / 5670: Computer Vision Kavita Bala Lecture 20: Panoramas.
University of Ioannina
CS4670 / 5670: Computer Vision Kavita Bala Lec 27: Stereo.
COSC579: Image Align, Mosaic, Stitch
Lecture 7: Image alignment
Two-view geometry Computer Vision Spring 2018, Lecture 10
A special case of calibration
Image Stitching Slides from Rick Szeliski, Steve Seitz, Derek Hoiem, Ira Kemelmacher, Ali Farhadi.
Idea: projecting images onto a common plane
Nonlinear Fitting.
Lecture 8: Image alignment
Lecture 8: Image alignment
Camera Calibration from Planar Patterns
Calibration and homographies
Back to equations of geometric transformations
CS5760: Computer Vision Lecture 9: RANSAC Noah Snavely
CS5760: Computer Vision Lecture 9: RANSAC Noah Snavely
Image Stitching Linda Shapiro ECE/CSE 576.
Lecture 11: Image alignment, Part 2
Image Stitching Linda Shapiro ECE P 596.
Presentation transcript:

Lecture 12: Image alignment CS4670/5760: Computer Vision Kavita Bala

Announcements Project 1 Artifact voting closes tomorrow. Please vote. Project 2 released – Due Monday, March (by 11:59pm) Prelim next Thu – Send me mail if you have a conflict – All material till end of this week – Closed book – Will release last year’s midterm. But it was a take home.

PA2: Feature detection and matching

Reading Appendix A.2, 6.1

Fitting: find the parameters of a model that best fit the data Alignment: find the parameters of the transformation that best align matched points Common problems in vision

Alignment Alignment: find parameters of model that maps one set of points to another Typically want to solve for a global transformation that accounts for *most* true correspondences Difficulties – Noise (typically 1-3 pixels) – Outliers (often 50%)

Computing transformations ?

Simple case: translations How do we solve for ?

Mean displacement = Simple case: translations Displacement of match i =

Another view System of linear equations – What are the knowns? Unknowns? – How many unknowns? How many equations (per match)?

Another view Problem: more equations than unknowns – “Overdetermined” system of equations – We will find the least squares solution

Least squares formulation For each point we define the residuals as

Least squares formulation Goal: minimize sum of squared residuals “Least squares” solution For translations, is equal to mean displacement

Least squares formulation Can also write as a matrix equation 2n x 22 x 12n x 1

Least squares Find t that minimizes

Least squares: find t to minimize To solve, form the normal equations Differentiate and equate to 0 to minimize

Affine transformations How many unknowns? How many equations per match? How many matches do we need?

Affine transformations Residuals: Cost function:

Affine transformations Matrix form 2n x 6 6 x 1 2n x 1

Homographies To unwarp (rectify) an image solve for homography H given p and p’ solve equations of the form: p’ = Hp p p’

Alternate formulation for homographies where the length of the vector [h 00 h 01 … h 22 ] is 1

Solving for homographies Linear or non-linear?

Solving for homographies

Defines a least squares problem: 2n × 9 9 2n Since is only defined up to scale, solve for unit vector

Homographies To unwarp (rectify) an image solve for homography H given p and p’ solve equations of the form: p’ = Hp –linear in unknowns: coefficients of H –H is defined up to an arbitrary scale factor –how many points are necessary to solve for H? p p’

Solving for homographies Defines a least squares problem: Since is only defined up to scale, solve for unit vector Solution: = eigenvector of with smallest eigenvalue Works with 4 or more points 2n × 9 9 2n

Recap: Two Common Optimization Problems Problem statementSolution Problem statementSolution (matlab)