Homogeneous Coordinates (Projective Space)

Slides:



Advertisements
Similar presentations
Epipolar Geometry.
Advertisements

CS 691 Computational Photography Instructor: Gianfranco Doretto Image Warping.
Computer Vision, Robert Pless
Invariants (continued).
3D reconstruction.
Camera Models CMPUT 498/613 Richard Hartley and Andrew Zisserman, Multiple View Geometry, Cambridge University Publishers, 2000 Readings: HZ Ch 6, 7.
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.
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.
Ch. 2: Rigid Body Motions and Homogeneous Transforms
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
3-D Geometry.
Computer Vision : CISC4/689
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
CMPUT 412 3D Computer Vision Presented by Azad Shademan Feb , 2007.
Previously Two view geometry: epipolar geometry Stereo vision: 3D reconstruction epipolar lines Baseline O O’ epipolar plane.
The Pinhole Camera Model
The Image Formation Pipeline
Camera parameters Extrinisic parameters define location and orientation of camera reference frame with respect to world frame Intrinsic parameters define.
Cameras, lenses, and calibration
Projective Geometry and Camera Models
© 2005 Yusuf Akgul Gebze Institute of Technology Department of Computer Engineering Computer Vision Geometric Camera Calibration.
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.
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
Transformations Jehee Lee Seoul National University.
Imaging Geometry for the Pinhole Camera Outline: Motivation |The pinhole camera.
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.
Multi-linear Systems and Invariant Theory in the Context of Computer Vision and Graphics CS329 Amnon Shashua.
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.
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
Calibrating a single camera
3. Transformation
Review: Transformations
Introduction to Computer Graphics CS 445 / 645
Review: Transformations
Image Warping (Szeliski Sec 2.1.2)
Image Warping (Szeliski Sec 2.1.2)
Image Warping : Computational Photography
Epipolar geometry.
Recap from Friday Image Completion Synthesis Order Graph Cut Scene Completion.
Geometric Transformations
Geometric Transformations
Geometric Camera Models
Image Warping : Computational Photography
Geometric Transformations
2D transformations (a.k.a. warping)
2D Geometric Transformations
Geometric Transformations
Image Warping (Szeliski Sec 2.1.2)
Single-view geometry Odilon Redon, Cyclops, 1914.
The Pinhole Camera Model
Geometric Transformations
Image Stitching Linda Shapiro ECE/CSE 576.
Geometric Transformations
Image Stitching Linda Shapiro ECE P 596.
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: the ordering is just a convention, and there are other representations (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 Image plane Optical axis Principal point Focal length Camera center Camera point Image point

Pinhole Perspective Projection Letting the camera coordinates of the projected point be leads by similar triangles to: this is why more distant objects appear smaller, of course

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 Homogeneous Coordinates tx = 2 ty = 1

Basic 2D Transformations Basic 2D transformations as 3x3 matrices Translate Scale Rotate Shear

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 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(tx,ty) R(Q) S(sx,sy) p

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

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 x’_i * first row + y’_i * second row = third row the w’s are the homogeneous coordinate; i used lambda in my definition

DLT Homography Estimation: Solve System Only 2 linearly independent equations in each , so leave out 3rd 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 x’_i * first row + y’_i * second row = third row

Applying Homographies to Remove Perspective Distortion this could be helpful with trying to recognize a building from different points of view—convert to a common one first. this sort of thing is also done to convert the ground plane in perspective to a bird’s eye view from Hartley & Zisserman 4 point correspondences suffice for the planar building facade

Homographies for Mosaicing from Hartley & Zisserman