MSU CSE 240 Fall 2003 Stockman CV: 3D to 2D mathematics Perspective transformation; camera calibration; stereo computation; and more.

Slides:



Advertisements
Similar presentations
Computer Vision, Robert Pless
Advertisements

Lecture 11: Two-view geometry
Computer vision: models, learning and inference
Mapping: Scaling Rotation Translation Warp
Lecture 8: Stereo.
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.
3D Geometry and Camera Calibration. 3D Coordinate Systems Right-handed vs. left-handedRight-handed vs. left-handed x yz x yz.
Geometry of Images Pinhole camera, projection A taste of projective geometry Two view geometry:  Homography  Epipolar geometry, the essential matrix.
MSU CSE 803 Stockman Perspective algebra: quick- and-dirty first look Geometry of similar triangles yields algebra for computing world-image transformation.
MSU CSE 803 Stockman Perspective algebra Geometry of similar triangles yields algebra for computing world-image transformation.
CAU Kiel DAGM 2001-Tutorial on Visual-Geometric 3-D Scene Reconstruction 1 The plan for today Leftovers and from last time Camera matrix Part A) Notation,
Computer Vision : CISC4/689
Previously Two view geometry: epipolar geometry Stereo vision: 3D reconstruction epipolar lines Baseline O O’ epipolar plane.
CSE 803 Stockman Fall Stereo models Algebraic models for stereo.
Single-view geometry Odilon Redon, Cyclops, 1914.
CV: 3D sensing and calibration
Panoramas and Calibration : Rendering and Image Processing Alexei Efros …with a lot of slides stolen from Steve Seitz and Rick Szeliski.
MSU CSE 803 Fall 2008 Stockman1 CV: 3D sensing and calibration Coordinate system changes; perspective transformation; Stereo and structured light.
MSU CSE 803 Stockman CV: Matching in 2D Matching 2D images to 2D images; Matching 2D images to 2D maps or 2D models; Matching 2D maps to 2D maps.
May 2004Stereo1 Introduction to Computer Vision CS / ECE 181B Tuesday, May 11, 2004  Multiple view geometry and stereo  Handout #6 available (check with.
Camera parameters Extrinisic parameters define location and orientation of camera reference frame with respect to world frame Intrinsic parameters define.
Stockman MSU/CSE Math models 3D to 2D Affine transformations in 3D; Projections 3D to 2D; Derivation of camera matrix form.
CS 558 C OMPUTER V ISION Lecture IX: Dimensionality Reduction.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm Lecture #15.
3-D Scene u u’u’ Study the mathematical relations between corresponding image points. “Corresponding” means originated from the same 3D point. Objective.
Multi-view geometry. Multi-view geometry problems Structure: Given projections of the same 3D point in two or more images, compute the 3D coordinates.
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Spring 2013.
Automatic Camera Calibration
Lecture 11 Stereo Reconstruction I Lecture 11 Stereo Reconstruction I Mata kuliah: T Computer Vision Tahun: 2010.
Camera Geometry and Calibration Thanks to Martial Hebert.
Multi-view geometry.
Epipolar geometry The fundamental matrix and the tensor
Geometric Camera Models and Camera Calibration
Course 12 Calibration. 1.Introduction In theoretic discussions, we have assumed: Camera is located at the origin of coordinate system of scene.
Shape from Stereo  Disparity between two images  Photogrammetry  Finding Corresponding Points Correlation based methods Feature based methods.
3D Sensing and Reconstruction Readings: Ch 12: , Ch 13: , Perspective Geometry Camera Model Stereo Triangulation 3D Reconstruction by.
CS654: Digital Image Analysis Lecture 8: Stereo Imaging.
Geometric Camera Models
1 Formation et Analyse d’Images Session 7 Daniela Hall 25 November 2004.
© 2005 Martin Bujňák, Martin Bujňák Supervisor : RNDr.
Peripheral drift illusion. Multiple views Hartley and Zisserman Lowe stereo vision structure from motion optical flow.
Lecture 03 15/11/2011 Shai Avidan הבהרה : החומר המחייב הוא החומר הנלמד בכיתה ולא זה המופיע / לא מופיע במצגת.
Affine Structure from Motion
Single-view geometry Odilon Redon, Cyclops, 1914.
CS-498 Computer Vision Week 7, Day 2 Camera Parameters Intrinsic Calibration  Linear  Radial Distortion (Extrinsic Calibration?) 1.
3D Sensing Camera Model Camera Calibration
EECS 274 Computer Vision Affine Structure from Motion.
Feature Matching. Feature Space Outlier Rejection.
Computer vision: models, learning and inference M Ahad Multiple Cameras
3D Sensing 3D Shape from X Perspective Geometry Camera Model Camera Calibration General Stereo Triangulation 3D Reconstruction.
Single-view geometry Odilon Redon, Cyclops, 1914.
Digital Image Processing Additional Material : Imaging Geometry 11 September 2006 Digital Image Processing Additional Material : Imaging Geometry 11 September.
Geometry in Computer Vision Perspective Model, Calibration, and Stereo CSE 6367 – Computer Vision Vassilis Athitsos University of Texas at Arlington.
Lec 26: Fundamental Matrix CS4670 / 5670: Computer Vision Kavita Bala.
Correspondence and Stereopsis. Introduction Disparity – Informally: difference between two pictures – Allows us to gain a strong sense of depth Stereopsis.
Computer vision: geometric models Md. Atiqur Rahman Ahad Based on: Computer vision: models, learning and inference. ©2011 Simon J.D. Prince.
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
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry
Computer vision: models, learning and inference
Depth from disparity (x´,y´)=(x+D(x,y), y)
Two-view geometry Computer Vision Spring 2018, Lecture 10
Structure from motion Input: Output: (Tomasi and Kanade)
Multiple View Geometry for Robotics
CV: Matching in 2D Matching 2D images to 2D images; Matching 2D images to 2D maps or 2D models; Matching 2D maps to 2D maps MSU CSE 803 Stockman.
Single-view geometry Odilon Redon, Cyclops, 1914.
3D Sensing and Reconstruction Readings: Ch 12: , Ch 13: 13
Structure from motion Input: Output: (Tomasi and Kanade)
Presentation transcript:

MSU CSE 240 Fall 2003 Stockman CV: 3D to 2D mathematics Perspective transformation; camera calibration; stereo computation; and more

MSU CSE 240 Fall 2003 Stockman Roadmap of topics Review perspective transformation Camera calibration Stereo methods Structured light methods Depth-from-focus Shape-from-shading

MSU CSE 240 Fall 2003 Stockman Review coordinate systems World or global W Object or model M Camera or sensor C Camera or sensor D

MSU CSE 240 Fall 2003 Stockman Convenient notation for points and transformations This point P has 3 real world coordinates in coordinate system W This point P has 2 real coordinates in the image This transformation maps each point in the real world W to a point in the image I

MSU CSE 240 Fall 2003 Stockman Current goal Develop the theory in terms of modules (components) so that concepts are understood and can be put into practical application

MSU CSE 240 Fall 2003 Stockman Perspective transformation X and Y are scaled by the ratio of focal length to depth Z Camera origin is center of projection, not lens

MSU CSE 240 Fall 2003 Stockman In next homework & project fit camera model to image with jig jig has known precise 3D coordinates examine accuracy of camera model use camera model to do graphics use two camera models to compute depth from stereo

MSU CSE 240 Fall 2003 Stockman Notes on perspective trans. 3D world scaled according to ratio of depth to focal length scaling formulas are in terms of real numbers with the same units e.g. mm in the 3D world and mm in the image plane real image coordinates must be further scaled to pixel row and column entire 3D ray images to the same 2D point

MSU CSE 240 Fall 2003 Stockman Goal: General perspective trans to be developed (accept for now) Camera matrix C transforms 3D real world point into image row and column using 11 parameters

MSU CSE 240 Fall 2003 Stockman The 11 parameters Cij model internal camera parameters: focal length f ratio of pixel height and width any shear due to sensor chip alignment external orientation parameters: rotation of camera frame relative to world frame translation of camera frame relative to world The 11 parameters of this model are NOT independent. Radial distortion is not linear and is not modeled.

MSU CSE 240 Fall 2003 Stockman Camera matrix via least squares Minimize the residuals in the image plane. Get 2 equations for each pair ((r, c), (x, y, z))

MSU CSE 240 Fall 2003 Stockman 2 equations for each pair Here, (u, v) is the point in the image where 3D point (x,y,z) is projected. The 11 unknowns d jk form the camera matrix. Known image points Known 3D points Camera parameters

MSU CSE 240 Fall 2003 Stockman 2n linear equations from n pairs ((u,v) (x,y,z)) Standard linear algebra problem; easily solved in Matlab or by using a linear algebra package. Often, package replaces b’s with the residuals.

MSU CSE 240 Fall 2003 Stockman Use a jig for calibration Jig has known set of points Measure points in world system W or use the jig to define W Take image with camera and determine 2D points Get pairings ((r, c) (x, y, z))

MSU CSE 240 Fall 2003 Stockman Example calibration data # # IMAGE: g1view1.ras # # INPUT DATA | OUTPUT DATA # | Point Image 2-D (U,V) 3-D Coordinates (X,Y,Z) | 2-D Fit Data Residuals X Y | A | | B | | C | | D | | N | | O | | P | | # CALIBRATION MATRIX

MSU CSE 240 Fall 2003 Stockman 3D points on jig Dimensions in inches

MSU CSE 240 Fall 2003 Stockman Jig set in workspace Mapping is established between 3D points (x, y, z) and image points (u, v)

MSU CSE 240 Fall 2003 Stockman Other jigs used at MSU frame with wires and beads placed in car instead of the driver seat (to do stereo measurements of car driver) frame with wires and beads as big as a harp to calibrate space for people walking (up to 6 cameras, persons wear tight body suit with reflecting disks, cameras compute 3D motion trajectory)

MSU CSE 240 Fall 2003 Stockman Least squares set up 2n x x 1 2n x 1 = AX = B

MSU CSE 240 Fall 2003 Stockman Least squares abstraction

MSU CSE 240 Fall 2003 Stockman Justify the form of camera matrix Another sequence of slides Rotation, scaling, shear in 3D real world as a 3x3 (or 4x4) matrix Projection to real 2D image as 4x4 matrix Scaling real image coordinates to [r, c] coordinates as 4x4 matrix Combine them all into one 4x4 matrix

MSU CSE 240 Fall 2003 Stockman Other mathematical models Two camera stereo

MSU CSE 240 Fall 2003 Stockman Baseline stereo: carefully aligned cameras

MSU CSE 240 Fall 2003 Stockman Computing (x, y, z) in 3D from corresponding 2D image points

MSU CSE 240 Fall 2003 Stockman 2 calibrated cameras view the same 3D point at (r1,c1)(r2,c2)

MSU CSE 240 Fall 2003 Stockman Compute closest approach of the two rays: use center point V Shortest line segment between rays

MSU CSE 240 Fall 2003 Stockman Connector is perpendicular to both imaging rays

MSU CSE 240 Fall 2003 Stockman Solve for the endpoints of the connector Scaler mult. Fix book

MSU CSE 240 Fall 2003 Stockman Correspondence problem: more difficult aspect

MSU CSE 240 Fall 2003 Stockman Correspondence problem is difficult Can use interest points and cross correlation Can limit search to epipolar line Can use symbolic matching (Ch 11) to determine corresponding points (called structural stereopsis) apparently humans don’t need it

MSU CSE 240 Fall 2003 Stockman Epipolar constraint With aligned cameras, search for corresponding point is 1D along corresponding row of other camera.

MSU CSE 240 Fall 2003 Stockman Epipolar constraint for non baseline stereo computation If cameras are not aligned, a 1D search can still be determined for the corresponding point. P1, C1, C2 determine a plane that cuts image I2 in a line: P2 will be on that line. Need to know relative orientation of cameras C1 and C2

MSU CSE 240 Fall 2003 Stockman Measuring driver body position 4 cameras were used to measure driver position and posture while driving: 2mm accuracy achieved