Lecture 8: Image alignment

Slides:



Advertisements
Similar presentations
Ordinary Least-Squares
Advertisements

The fundamental matrix F
Lecture 11: Two-view geometry
COMP 116: Introduction to Scientific Programming Lecture 11: Linear Regression.
Two-View Geometry CS Sastry and Yang
Image alignment Image from
Image alignment Image from
Lecture 19: Single-view modeling CS6670: Computer Vision Noah Snavely.
General Linear Least-Squares and Nonlinear Regression
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 11: Structure from motion CS6670: Computer Vision Noah Snavely.
Lecture 9: Image alignment CS4670: Computer Vision Noah Snavely
Lecture 10: Cameras CS4670: Computer Vision Noah Snavely Source: S. Lazebnik.
Lecture 16: Single-view modeling, Part 2 CS6670: Computer Vision Noah Snavely.
Lecture 8: Image Alignment and RANSAC
Camera Calibration from Planar Patterns Homework 2 Help SessionCS223bStanford University Mitul Saha (courtesy: Jean-Yves Bouguet, Intel)
Linear Least Squares QR Factorization. Systems of linear equations Problem to solve: M x = b Given M x = b : Is there a solution? Is the solution unique?
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.
כמה מהתעשייה? מבנה הקורס השתנה Computer vision.
Robust fitting Prof. Noah Snavely CS1114
Projective Geometry and Single View Modeling CSE 455, Winter 2010 January 29, 2010 Ames Room.
Automatic Camera Calibration
Image Stitching Ali Farhadi CSE 455
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.
Lecture 12: Image alignment CS4670/5760: Computer Vision Kavita Bala
Summarized by Soo-Jin Kim
Advanced Computer Vision Feature-based Alignment Lecturer: Lu Yi & Prof. Fuh CSIE NTU.
Fitting and Registration Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 02/14/12.
Fitting & Matching Lecture 4 – Prof. Bregler Slides from: S. Lazebnik, S. Seitz, M. Pollefeys, A. Effros.
1 Multiple Regression A single numerical response variable, Y. Multiple numerical explanatory variables, X 1, X 2,…, X k.
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.
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.
Fitting image transformations Prof. Noah Snavely CS1114
Curve Fitting Introduction Least-Squares Regression Linear Regression Polynomial Regression Multiple Linear Regression Today’s class Numerical Methods.
776 Computer Vision Jan-Michael Frahm Spring 2012.
Optimization and least squares Prof. Noah Snavely CS1114
Lecture 22: Structure from motion CS6670: Computer Vision Noah Snavely.
Statistics 350 Lecture 2. Today Last Day: Section Today: Section 1.6 Homework #1: Chapter 1 Problems (page 33-38): 2, 5, 6, 7, 22, 26, 33, 34,
Lecture 10: Image alignment CS4670/5760: Computer Vision Noah Snavely
776 Computer Vision Jan-Michael Frahm Spring 2012.
Lecture 16: Image alignment
COSC579: Image Align, Mosaic, Stitch
Depth from disparity (x´,y´)=(x+D(x,y), y)
Lecture 7: Image alignment
Multiple Regression.
Two-view geometry Computer Vision Spring 2018, Lecture 10
Epipolar geometry.
A special case of calibration
Image Stitching Slides from Rick Szeliski, Steve Seitz, Derek Hoiem, Ira Kemelmacher, Ali Farhadi.
Features Readings All is Vanity, by C. Allan Gilbert,
Object recognition Prof. Graeme Bailey
Linear regression Fitting a straight line to observations.
Nonlinear Fitting.
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
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 8: Image alignment CS5760: Computer Vision Noah Snavely Lecture 8: Image alignment http://www.wired.com/gadgetlab/2010/07/camera-software-lets-you-see-into-the-past/

Reading Szeliski: Chapter 6.1

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 ?

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

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 (average) displacement

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

Least squares Find t that minimizes To solve, form the normal equations

Questions?

Least squares: linear regression (yi, xi) y = mx + b

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 p’ p 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?

Solving for homographies Not linear!

Solving for homographies

Solving for homographies 9 2n 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

Recap: Two Common Optimization Problems Problem statement Solution (matlab) Problem statement Solution

Questions?

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

Outliers outliers inliers