Homogeneous Coordinates (Projective Space) Let be a point in Euclidean space Change to homogeneous coordinates: Defined up to scale: Can go back to non-homogeneous.

Slides:



Advertisements
Similar presentations
Epipolar Geometry.
Advertisements

CS 691 Computational Photography Instructor: Gianfranco Doretto Image Warping.
Computer Vision, Robert Pless
Invariants (continued).
Two-View Geometry CS Sastry and Yang
Camera Calibration. Issues: what are intrinsic parameters of the camera? what is the camera matrix? (intrinsic+extrinsic) General strategy: view calibration.
Recovering metric and affine properties from images
Camera Models CMPUT 498/613 Richard Hartley and Andrew Zisserman, Multiple View Geometry, Cambridge University Publishers, 2000 Readings: HZ Ch 6, 7.
Camera calibration and epipolar geometry
Camera Models A camera is a mapping between the 3D world and a 2D image The principal camera of interest is central projection.
Image alignment Image from
Structure from motion.
Image Warping : Computational Photography Alexei Efros, CMU, Fall 2006 Some slides from Steve Seitz
Linear Algebra and SVD (Some slides adapted from Octavia Camps)
1 Basic geometric concepts to understand Affine, Euclidean geometries (inhomogeneous coordinates) projective geometry (homogeneous coordinates) plane at.
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Lecture 8: Geometric transformations CS4670: Computer Vision Noah Snavely.
Used slides/content with permission from
Image Warping : Computational Photography Alexei Efros, CMU, Fall 2008 Some slides from Steve Seitz
Projective geometry- 2D Acknowledgements Marc Pollefeys: for allowing the use of his excellent slides on this topic
Epipolar geometry. (i)Correspondence geometry: Given an image point x in the first view, how does this constrain the position of the corresponding point.
Structure from motion. Multiple-view geometry questions Scene geometry (structure): Given 2D point matches in two or more images, where are the corresponding.
Uncalibrated Geometry & Stratification Sastry and Yang
Lecture 7: Image Alignment and Panoramas CS6670: Computer Vision Noah Snavely What’s inside your fridge?
3-D Geometry.
Computer Vision : CISC4/689
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Previously Two view geometry: epipolar geometry Stereo vision: 3D reconstruction epipolar lines Baseline O O’ epipolar plane.
The Pinhole Camera Model
Camera parameters Extrinisic parameters define location and orientation of camera reference frame with respect to world frame Intrinsic parameters define.
Projective 2D geometry course 2 Multiple View Geometry Comp Marc Pollefeys.
3-D Scene u u’u’ Study the mathematical relations between corresponding image points. “Corresponding” means originated from the same 3D point. Objective.
Projective Geometry and Camera Models
Image Warping (Szeliski 3.6.1) cs129: Computational Photography James Hays, Brown, Fall 2012 Slides from Alexei Efros and Steve Seitz
CS 480/680 Computer Graphics Representation Dr. Frederick C Harris, Jr. Fall 2012.
Camera Geometry and Calibration Thanks to Martial Hebert.
Warping CSE 590 Computational Photography Tamara Berg.
Course 12 Calibration. 1.Introduction In theoretic discussions, we have assumed: Camera is located at the origin of coordinate system of scene.
Geometric Models & Camera Calibration
CSE 681 Review: Transformations. CSE 681 Transformations Modeling transformations build complex models by positioning (transforming) simple components.
Transformations Jehee Lee Seoul National University.
Imaging Geometry for the Pinhole Camera Outline: Motivation |The pinhole camera.
Metrology 1.Perspective distortion. 2.Depth is lost.
Geometric Camera Models
Single View Geometry Course web page: vision.cis.udel.edu/cv April 9, 2003  Lecture 20.
Vision Review: Image Formation Course web page: September 10, 2002.
Computer Vision : CISC 4/689 Going Back a little Cameras.ppt.
Geometric Transformations CSE 455 Ali Farhadi Many slides from Steve Seitz and Larry Zitnick.
Multi-linear Systems and Invariant Theory in the Context of Computer Vision and Graphics CS329 Amnon Shashua.
EECS 274 Computer Vision Affine Structure from Motion.
1 Chapter 2: Geometric Camera Models Objective: Formulate the geometrical relationships between image and scene measurements Scene: a 3-D function, g(x,y,z)
Reconnaissance d’objets et vision artificielle Jean Ponce Equipe-projet WILLOW ENS/INRIA/CNRS UMR 8548 Laboratoire.
Multimedia Programming 07: Image Warping Keyframe Animation Departments of Digital Contents Sang Il Park.
Camera Model Calibration
Camera Calibration Course web page: vision.cis.udel.edu/cv March 24, 2003  Lecture 17.
Image Warping 2D Geometric Transformations
Modeling Transformation
Projective 2D geometry course 2 Multiple View Geometry Comp Marc Pollefeys.
CS682, Jana Kosecka Rigid Body Motion and Image Formation Jana Kosecka
3. Transformation
Homogeneous Coordinates (Projective Space)
Geometric Transformations
Geometric Transformations
Geometric Camera Models
Geometric Transformations
Geometric Transformations
Single-view geometry Odilon Redon, Cyclops, 1914.
The Pinhole Camera Model
Geometric Transformations
Geometric Transformations
Presentation transcript:

Homogeneous Coordinates (Projective Space) Let be a point in Euclidean space Change to homogeneous coordinates: Defined up to scale: Can go back to non-homogeneous representation as follows:

3-D Transformations: Translation Ordinarily, a translation between points is expressed as a vector addition Homogeneous coordinates allow it to be written as a matrix multiplication:

3-D Rotations: Euler Angles Can decompose rotation of about arbi- trary 3-D axis into rotations about the coordinate axes (“yaw-roll-pitch”), where: (Clockwise when looking toward the origin)

3-D Transformations: Rotation A rotation of a point about an arbitrary axis normally expressed as a multiplication by the rotation matrix is written with homogeneous coordinates as follows:

3-D Transformations: Change of Coordinates Any rigid transformation can be written as a combined rotation and translation:

Pinhole Camera Model Camera center Principal point Image point Camera point Image plane Focal length Optical axis

Pinhole Perspective Projection Letting the camera coordinates of the projected point be leads by similar triangles to:

Projection Matrix Using homogeneous coordinates, we can describe perspective projection with a linear equation: (by the rule for converting between homogeneous and regular coordinates)

Example 1: 2D Translation Q: How can we represent translation as a 3x3 matrix? A: Using the rightmost column:

Translation Example of translation t x = 2 t y = 1 Homogeneous Coordinates

Basic 2D Transformations Basic 2D transformations as 3x3 matrices Translate RotateShear Scale

Affine Transformations Affine transformations are combinations of … –Linear transformations, and –Translations Properties of affine transformations: –Origin does not necessarily map to origin –Lines map to lines –Parallel lines remain parallel –Ratios are preserved –Closed under composition –Models change of basis

Projective Transformations Projective transformations … –Affine transformations, and –Projective warps Properties of projective transformations: –Origin does not necessarily map to origin –Lines map to lines –Parallel lines do not necessarily remain parallel –Ratios are not preserved –Closed under composition –Models change of basis

Matrix Composition Transformations can be combined by matrix multiplication p’ = T(t x,t y ) R(  ) S(s x,s y ) p

Homography (Projective Transformation) Definition: Projective transformation or 8DOF Recall (set f=1)

Homography Estimation Given N pairs of corresponding coordinates (u,v) <> (u’,v’), how to estimate eight-parameter transform H?

Computing the Homography 8 degrees of freedom in, so 4 pairs of 2-D points are sufficient to determine it –Other combinations of points and lines also work 3 collinear points in either image are a degenerate configuration preventing a unique solution Direct Linear Transformation (DLT) algorithm: Least-squares method for estimating

Huang’s LS Method A

Direct Linear Transformation (DLT) Method Since vectors are homogeneous, are parallel, so Let be row j of, be stacked ‘s Expanding and rearranging cross product above, we obtain, where

DLT Homography Estimation: Solve System Only 2 linearly independent equations in each, so leave out 3 rd to make it 2 x 9 Stack every to get 2n x 9 Solve by computing singular value decomposition (SVD) ; is last column of Solution is improved by normalizing image coordinates before applying DLT

Applying Homographies to Remove Perspective Distortion from Hartley & Zisserman 4 point correspondences suffice for the planar building facade

Homographies for Mosaicing from Hartley & Zisserman