Stockman MSU/CSE Math models 3D to 2D Affine transformations in 3D; Projections 3D to 2D; Derivation of camera matrix form.

Slides:



Advertisements
Similar presentations
Today Composing transformations 3D Transformations
Advertisements

Epipolar Geometry.
Announcements. Structure-from-Motion Determining the 3-D structure of the world, and/or the motion of a camera using a sequence of images taken by a moving.
Invariants (continued).
3D reconstruction.
Mapping: Scaling Rotation Translation Warp
Computer Vision Optical Flow
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.
Geometry of Images Pinhole camera, projection A taste of projective geometry Two view geometry:  Homography  Epipolar geometry, the essential matrix.
MSU CSE 240 Fall 2003 Stockman CV: 3D to 2D mathematics Perspective transformation; camera calibration; stereo computation; and more.
Motion Analysis (contd.) Slides are from RPI Registration Class.
MSU CSE 803 Stockman Perspective algebra: quick- and-dirty first look Geometry of similar triangles yields algebra for computing world-image transformation.
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?
CS485/685 Computer Vision Prof. George Bebis
MSU CSE 803 Stockman Perspective algebra Geometry of similar triangles yields algebra for computing world-image transformation.
3-D Geometry.
COMP322/S2000/L221 Relationship between part, camera, and robot (cont’d) the inverse perspective transformation which is dependent on the focal length.
© 2003 by Davi GeigerComputer Vision October 2003 L1.1 Structure-from-EgoMotion (based on notes from David Jacobs, CS-Maryland) Determining the 3-D structure.
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.
The Pinhole Camera Model
CV: 3D sensing and calibration
MSU CSE 803 Fall 2008 Stockman1 CV: 3D sensing and calibration Coordinate system changes; perspective transformation; Stereo and structured light.
CS223b, Jana Kosecka Rigid Body Motion and Image Formation.
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.
Lec 21: Fundamental Matrix
Camera parameters Extrinisic parameters define location and orientation of camera reference frame with respect to world frame Intrinsic parameters define.
3D Graphics Goal: To produce 2D images of a mathematically described 3D environment Issues: –Describing the environment: Modeling (mostly later) –Computing.
3-D Scene u u’u’ Study the mathematical relations between corresponding image points. “Corresponding” means originated from the same 3D point. Objective.
Automatic Camera Calibration
Lecture 11 Stereo Reconstruction I Lecture 11 Stereo Reconstruction I Mata kuliah: T Computer Vision Tahun: 2010.
Transformations Aaron Bloomfield CS 445: Introduction to Graphics
COMP 175: Computer Graphics March 24, 2015
Euclidean cameras and strong (Euclidean) calibration Intrinsic and extrinsic parameters Linear least-squares methods Linear calibration Degenerate point.
Camera Geometry and Calibration Thanks to Martial Hebert.
Epipolar geometry The fundamental matrix and the tensor
Image Formation Fundamentals Basic Concepts (Continued…)
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.
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.
Metrology 1.Perspective distortion. 2.Depth is lost.
Geometric Camera Models
Jinxiang Chai Composite Transformations and Forward Kinematics 0.
1 Formation et Analyse d’Images Session 7 Daniela Hall 25 November 2004.
Affine Structure from Motion
CS-498 Computer Vision Week 7, Day 2 Camera Parameters Intrinsic Calibration  Linear  Radial Distortion (Extrinsic Calibration?) 1.
3D Imaging Motion.
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.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
3D Sensing 3D Shape from X Perspective Geometry Camera Model Camera Calibration General Stereo Triangulation 3D Reconstruction.
Camera Model Calibration
Digital Image Processing Additional Material : Imaging Geometry 11 September 2006 Digital Image Processing Additional Material : Imaging Geometry 11 September.
Instructor: Mircea Nicolescu Lecture 9
Lec 26: Fundamental Matrix CS4670 / 5670: Computer Vision Kavita Bala.
René Vidal and Xiaodong Fan Center for Imaging Science
Epipolar geometry.
Geometric Camera Models
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.
The Pinhole Camera Model
Presentation transcript:

Stockman MSU/CSE Math models 3D to 2D Affine transformations in 3D; Projections 3D to 2D; Derivation of camera matrix form

Stockman MSU/CSE Intuitive geometry first Look at geometry for stereo Look at geometry for structured light Look at using multiple camera THEN look at algebraic models to use for computer solutions

Stockman MSU/CSE Review environment and coordinate systems

Stockman MSU/CSE Imaging ray in space Image of a point P must lie along the ray from that point to the optical center of the camera. (The algebraic model is 2 linear equations in 3 unknowns x,y,z, which constrain but do not uniquely solve for x,y,z.)

Stockman MSU/CSE General stereo environment A world point P seen by two cameras must lie at the intersection of two rays in space. (The algebraic model is 4 linear equations in the 3 unknowns x,y,z, enabling solution for x,y,z.) It is also common to use 3 cameras; the reason will be seen later on.

Stockman MSU/CSE General stereo computation

Stockman MSU/CSE Measuring the human body in a car while driving (ERL,LLC)

Stockman MSU/CSE General environment: structured light projection By replacing one camera with a projector, we can provide illumination features on the object surface and know what ray they are on. (Same algebraic model and calibration procedure as stereo.)

Stockman MSU/CSE Advantages/disadvantages + can add features to bland surface (such as a turbine blade or face) + can make the correspondence problem much easier (by counting or coloring stripes, etc.) - active sensing might disturb object (laser or bright light on face, etc.) - more power required

Stockman MSU/CSE Industrial machine vision case

Stockman MSU/CSE Industrial machine vision case

Stockman MSU/CSE Develop algebraic model for computer’s computations Need models for rotation, translation, scaling, projection

Stockman MSU/CSE Algebraic model of translation Shorthand model of transformation and its parameters: 3 translation components

Stockman MSU/CSE Algebraic model for scaling Three parameters are possible, but usually there is only one uniform scale factor.

Stockman MSU/CSE Algebraic model for rotation

Stockman MSU/CSE Algebraic model of rotation

Stockman MSU/CSE Arbitrary rotation Rotations about all 3 axes, or about a single arbitrary axis, can be combined into one matrix by composition. The matrix is orthonormal: the column vectors are othogonal unit vectors. It must be this way: the first column is R([1,0,0,1]); the second column is R([0,1,0,1]); the third column is R([0,0,1,1]).

Stockman MSU/CSE General rigid transformation Moving a 3d object on ANY path in space with ANY rotations results in (a) a single translation and (b) a rotation about a single axis. (Just think about what happens to the basis vectors.)

Stockman MSU/CSE Example: transform points from W to C coordinates

Stockman MSU/CSE Example change of coordinates

Stockman MSU/CSE How to do rigid alignment: perhaps model to sensed data Problem: given three matching points with coordinates in two coordinate systems, compute the rigid transformation that maps all points.

Stockman MSU/CSE Application: model-based inspection auto is delivered to approximate place on assembly line (+/- 10 cm) camera[s] take images and search for fixed features of auto transformation from auto (model) coordinates to workbench (real world) coordinates is then computed robots can then operate on the real object using the model coordinates of features (make weld, drill hole, etc.) machine vision can inspect real features in terms of where the model says they should be

Stockman MSU/CSE Algorithm for rigid 3D alignment using 3 correspondences

Stockman MSU/CSE Algorithm for 3d alignment from 3 corresponding points We assume that the triangles are congruent within measurement error, so they actually will align.

Stockman MSU/CSE Approach: transform both spaces until they align (I) Translate A and D to the origin so that they align in 3D Rotate in both spaces so that DE and AB correspond along the X axis

Stockman MSU/CSE 3d alignment (II) Rotate about the X axis until F and C are in the XY-plane. The 3 points of the 2 triangles should now align. Since all transformation components are invertible, we can solve the equation!

Stockman MSU/CSE Final solution: rigid alignment

Stockman MSU/CSE Deriving the camera matrix We now combine coordinate system change with projection to derive the form of the camera matrix.

Stockman MSU/CSE Composition to develop

Stockman MSU/CSE 3D world to 3D camera coords 4x4 rotation and translation matrix

Stockman MSU/CSE Projection of 3D point in camera coords to image [r,c] We derive this form in the slides below. We lose a dimension; the projection is not invertible.

Stockman MSU/CSE Perspective transformation (A) Camera frame is at center of projection. Note that matrix is not of full rank.

Stockman MSU/CSE Perspective transformation (B) As f goes to infinity, 1/f goes to 0 so it is obvious that the limit is orthographic projection with s=1.

Stockman MSU/CSE Return to overall

Stockman MSU/CSE Scale from scene units to image units

Stockman MSU/CSE Composed transformation Rigid transformation in 3D Projection from 3d to 2D Scale change in 2D space (real scene units to pixel coordinates)

Stockman MSU/CSE After a long way, we arrive at the camera matrix used before