Lecture 10: Image alignment CS4670/5760: Computer Vision Noah Snavely

Slides:



Advertisements
Similar presentations
Lecture 11: Two-view geometry
Advertisements

Two-View Geometry CS Sastry and Yang
統計計算與模擬 政治大學統計系余清祥 2004 年 3 月 29 日至 4 月 14 日 第七、九週:矩陣運算
Image alignment Image from
Lecture 11: Transformations CS4670/5760: Computer Vision Kavita Bala.
Single-view metrology
Lecture 19: Single-view modeling CS6670: Computer Vision Noah Snavely.
Lecture 8: Geometric transformations CS4670: Computer Vision Noah Snavely.
Image Warping : Computational Photography Alexei Efros, CMU, Fall 2005 Some slides from Steve Seitz
Lecture 7: Image Alignment and Panoramas CS6670: Computer Vision Noah Snavely What’s inside your fridge?
Lecture 21: Multiple-view geometry and structure from motion
Projective geometry Slides from Steve Seitz and Daniel DeMenthon
Lecture 6: Image transformations and alignment CS6670: Computer Vision Noah Snavely.
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
Image Warping and Mosacing : Rendering and Image Processing Alexei Efros …with a lot of slides stolen from Steve Seitz and Rick Szeliski.
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.
CS 558 C OMPUTER V ISION Lecture IX: Dimensionality Reduction.
Multi-view geometry. Multi-view geometry problems Structure: Given projections of the same 3D point in two or more images, compute the 3D coordinates.
Image Stitching Ali Farhadi CSE 455
Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.
CSC 589 Lecture 22 Image Alignment and least square methods Bei Xiao American University April 13.
Lecture 12: Image alignment CS4670/5760: Computer Vision Kavita Bala
Image Warping (Szeliski 3.6.1) cs129: Computational Photography James Hays, Brown, Fall 2012 Slides from Alexei Efros and Steve Seitz
Camera Geometry and Calibration Thanks to Martial Hebert.
Multi-view geometry.
Warping CSE 590 Computational Photography Tamara Berg.
Digital Image Processing Lecture 7: Geometric Transformation March 16, 2005 Prof. Charlene Tsai.
1 Multiple Regression A single numerical response variable, Y. Multiple numerical explanatory variables, X 1, X 2,…, X k.
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.
Computer Vision : CISC 4/689 Going Back a little Cameras.ppt.
Reconnaissance d’objets et vision artificielle Jean Ponce Equipe-projet WILLOW ENS/INRIA/CNRS UMR 8548 Laboratoire.
Fitting image transformations Prof. Noah Snavely CS1114
Math 4030 – 11b Method of Least Squares. Model: Dependent (response) Variable Independent (control) Variable Random Error Objectives: Find (estimated)
Project 1 Due NOW Project 2 out today –Help session at end of class Announcements.
Project 2 went out on Tuesday You should have a partner You should have signed up for a panorama kit Announcements.
Lecture 22: Structure from motion CS6670: Computer Vision Noah Snavely.
Principal Warps: Thin-Plate Splines and the Decomposition of Deformations 김진욱 ( 이동통신망연구실 ; 박천현 (3D 모델링 및 처리연구실 ;
Lecture 15: Transforms and Alignment CS4670/5670: Computer Vision Kavita Bala.
Image Warping 2D Geometric Transformations
776 Computer Vision Jan-Michael Frahm Spring 2012.
Multi-view geometry. Multi-view geometry problems Structure: Given projections of the same 3D point in two or more images, compute the 3D coordinates.
Lecture 16: Image alignment
Coordinate Transformations
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.
Lecture 08: Coordinate Transformation II
Idea: projecting images onto a common plane
Linear regression Fitting a straight line to observations.
2D transformations (a.k.a. warping)
Discrete Least Squares Approximation
Multi-view geometry.
Lecture 8: Image alignment
Lecture 8: Image alignment
Calibration and homographies
Back to equations of geometric transformations
CS5760: Computer Vision Lecture 9: RANSAC Noah Snavely
Regression and Correlation of Data
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 10: Image alignment CS4670/5760: Computer Vision Noah Snavely

Reading Szeliski: Chapter 6.1

2D image transformations These transformations are a nested set of groups Closed under composition and inverse is a member

Last time: Image Warping Given a coordinate xform (x’,y’) = T(x,y) and a source image f(x,y), how do we compute an xformed image g(x’,y’) = f(T(x,y))? f(x,y)g(x’,y’) xx’ T(x,y) y y’

Computing transformations Given a set of matches between images A and B – How can we compute the transform T from A to B? – Find transform T that best “agrees” with the matches

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 To solve, form the normal equations

Questions?

Least squares: linear regression y = mx + b (y i, x i )

Linear regression residual error

Linear regression

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: wp’ = Hp –linear in unknowns: w and 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 Not linear!

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

Questions?

Image Alignment Algorithm Given images A and B 1.Compute image features for A and B 2.Match features between A and B 3.Compute homography between A and B using least squares on set of matches What could go wrong?