Lecture 16: Image alignment

Slides:



Advertisements
Similar presentations
Ordinary Least-Squares
Advertisements

The fundamental matrix F
Lecture 11: Two-view geometry
Systems of Linear Equations (see Appendix A.6, Trucco & Verri) CS485/685 Computer Vision Prof. George Bebis.
Computer vision: models, learning and inference
Two-View Geometry CS Sastry and Yang
Slides by Olga Sorkine, Tel Aviv University. 2 The plan today Singular Value Decomposition  Basic intuition  Formal definition  Applications.
Image alignment Image from
Single-view metrology
3D Geometry and Camera Calibration. 3D Coordinate Systems Right-handed vs. left-handedRight-handed vs. left-handed x yz x yz.
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.
Math for CSLecture 41 Linear Least Squares Problem Over-determined systems Minimization problem: Least squares norm Normal Equations Singular Value Decomposition.
Epipolar geometry. (i)Correspondence geometry: Given an image point x in the first view, how does this constrain the position of the corresponding point.
Uncalibrated Geometry & Stratification Sastry and Yang
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
3D reconstruction of cameras and structure x i = PX i x’ i = P’X i.
Uncalibrated Epipolar - Calibration
Lecture 9: Image alignment CS4670: Computer Vision Noah Snavely
3D Geometry for Computer Graphics
Lecture 8: Image Alignment and RANSAC
Single-view geometry Odilon Redon, Cyclops, 1914.
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.
Structure Computation. How to compute the position of a point in 3- space given its image in two views and the camera matrices of those two views Use.
Projective Geometry and Single View Modeling CSE 455, Winter 2010 January 29, 2010 Ames Room.
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
Computing the Fundamental matrix Peter Praženica FMFI UK May 5, 2008.
Camera Geometry and Calibration Thanks to Martial Hebert.
© 2005 Yusuf Akgul Gebze Institute of Technology Department of Computer Engineering Computer Vision Geometric Camera Calibration.
Course 12 Calibration. 1.Introduction In theoretic discussions, we have assumed: Camera is located at the origin of coordinate system of scene.
Vector Norms and the related Matrix Norms. Properties of a Vector Norm: Euclidean Vector Norm: Riemannian metric:
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.
Ch. 3: Geometric Camera Calibration
Reconnaissance d’objets et vision artificielle Jean Ponce Equipe-projet WILLOW ENS/INRIA/CNRS UMR 8548 Laboratoire.
Stats & Summary. The Woodbury Theorem where the inverses.
Single-view geometry Odilon Redon, Cyclops, 1914.
Project 1 Due NOW Project 2 out today –Help session at end of class Announcements.
Instructor: Mircea Nicolescu Lecture 9
Parameter estimation class 5 Multiple View Geometry CPSC 689 Slides modified from Marc Pollefeys’ Comp
Lec 26: Fundamental Matrix CS4670 / 5670: Computer Vision Kavita Bala.
Lecture 10: Image alignment CS4670/5760: Computer Vision Noah Snavely
776 Computer Vision Jan-Michael Frahm Spring 2012.
Calibrating a single camera
CS4670 / 5670: Computer Vision Kavita Bala Lecture 20: Panoramas.
COSC579: Image Align, Mosaic, Stitch
Depth from disparity (x´,y´)=(x+D(x,y), y)
Homogeneous Coordinates (Projective Space)
Lecture 7: Image alignment
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.
Lecture 3: Camera Rotations and Homographies
Idea: projecting images onto a common plane
Reconstruction.
Lecture 8: Image alignment
Lecture 8: Image alignment
Camera Calibration from Planar Patterns
Calibration and homographies
Back to equations of geometric transformations
Announcements Project 2 extension: Friday, Feb 8
Image Stitching Linda Shapiro ECE/CSE 576.
Lecture 11: Image alignment, Part 2
Image Stitching Linda Shapiro ECE P 596.
Presentation transcript:

Lecture 16: Image alignment CS4670/5760: Computer Vision Kavita Bala Lecture 16: Image alignment http://www.wired.com/gadgetlab/2010/07/camera-software-lets-you-see-into-the-past/

Reading Appendix A.2, 6.1

Homographies

Why do we care? What is the relation between a plane in the world and a perspective image of it? Can we reconstruct another view from one image? Relation between pairs of images Need to make a mosaic

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 ?

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

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

Another view Problem: more equations than unknowns The gradient equations at the minimum can be written as (y-Xb) X A geometrical interpretation of these equations is that the vector of residuals, is orthogonal to the column space of X, since the dot product is equal to zero for any conformal vector, v. This means that is the shortest of all possible vectors , that is, the variance of the residuals is the minimum possible. 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 Can’t just sum the residuals. But sum of squares is used often.

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

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? 6. 2. 3 pairs

Affine transformations Residuals: Cost function:

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

Alternate formulation for homographies where the length of the vector [h00 h01 … h22] is 1

Solving for homographies Linear or non-linear?

Solving for homographies X’ is not linear in x and y. But constraints on the h values are linear.

Solving for homographies Linear set of equations in h. Need 4 points if you add the constraint of unit norm,

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

Homographies To unwarp (rectify) an image p’ p 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?

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