Uncalibrated Geometry & Stratification Sastry and Yang

Slides:



Advertisements
Similar presentations
Epipolar Geometry.
Advertisements

More on single-view geometry
Lecture 11: Two-view geometry
3D reconstruction.
Geometry 2: A taste of projective geometry Introduction to Computer Vision Ronen Basri Weizmann Institute of Science.
MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling.
Projective Geometry- 3D
Two-View Geometry CS Sastry and Yang
Self-calibration.
Two-view geometry.
Recovering metric and affine properties from images
Camera calibration and epipolar geometry
Structure from motion.
Recovering metric and affine properties from images
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
3D reconstruction class 11
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.
Epipolar Geometry and the Fundamental Matrix F
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Multiple-view Reconstruction from Points and Lines
3D reconstruction of cameras and structure x i = PX i x’ i = P’X i.
Uncalibrated Epipolar - Calibration
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.
Projected image of a cube. Classical Calibration.
Camera parameters Extrinisic parameters define location and orientation of camera reference frame with respect to world frame Intrinsic parameters define.
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.
Automatic Camera Calibration
Computer vision: models, learning and inference
Camera Geometry and Calibration Thanks to Martial Hebert.
Multi-view geometry.
Epipolar geometry The fundamental matrix and the tensor
Projective cameras Motivation Elements of Projective Geometry Projective structure from motion Planches : –
© 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.
Lecture 04 22/11/2011 Shai Avidan הבהרה : החומר המחייב הוא החומר הנלמד בכיתה ולא זה המופיע / לא מופיע במצגת.
Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:
Geometric Camera Models
Two-view geometry Epipolar geometry F-matrix comp. 3D reconstruction
Geometry of Multiple Views
Affine Structure from Motion
Single-view geometry Odilon Redon, Cyclops, 1914.
A Flexible New Technique for Camera Calibration Zhengyou Zhang Sung Huh CSPS 643 Individual Presentation 1 February 25,
Two-view geometry. Epipolar Plane – plane containing baseline (1D family) Epipoles = intersections of baseline with image planes = projections of the.
EECS 274 Computer Vision Affine Structure from Motion.
Computer vision: models, learning and inference M Ahad Multiple Cameras
776 Computer Vision Jan-Michael Frahm & Enrique Dunn Spring 2013.
Auto-calibration we have just calibrated using a calibration object –another calibration object is the Tsai grid of Figure 7.1 on HZ182, which can be used.
MASKS © 2004 Invitation to 3D vision Uncalibrated Camera Chapter 6 Reconstruction from Two Uncalibrated Views Modified by L A Rønningen Oct 2008.
Reconstruction from Two Calibrated Views Two-View Geometry
Single-view geometry Odilon Redon, Cyclops, 1914.
Uncalibrated reconstruction Calibration with a rig Uncalibrated epipolar geometry Ambiguities in image formation Stratified reconstruction Autocalibration.
Structure from motion Multi-view geometry Affine structure from motion Projective structure from motion Planches : –
EECS 274 Computer Vision Projective Structure from Motion.
Multi-view geometry. Multi-view geometry problems Structure: Given projections of the same 3D point in two or more images, compute the 3D coordinates.
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry
René Vidal and Xiaodong Fan Center for Imaging Science
Two-view geometry Computer Vision Spring 2018, Lecture 10
Epipolar geometry.
3D Photography: Epipolar geometry
More on single-view geometry class 10
3D reconstruction class 11
Uncalibrated Geometry & Stratification
George Mason University
Two-view geometry.
Two-view geometry.
Multi-view geometry.
Presentation transcript:

Uncalibrated Geometry & Stratification Sastry and Yang Uncalibrated Camera Uncalibrated Geometry & Stratification Sastry and Yang MASKS © 2004 Invitation to 3D vision

Uncalibrated Camera calibrated coordinates Linear transformation pixel MASKS © 2004 Invitation to 3D vision

Overview Calibration with a rig Uncalibrated epipolar geometry Ambiguities in image formation Stratified reconstruction Autocalibration with partial scene knowledge MASKS © 2004 Invitation to 3D vision

Uncalibrated Camera Calibrated camera Uncalibrated camera Image plane coordinates Camera extrinsic parameters Perspective projection Calibrated camera Pixel coordinates Projection matrix Uncalibrated camera MASKS © 2004 Invitation to 3D vision

Taxonomy on Uncalibrated Reconstruction is known, back to calibrated case is unknown Calibration with complete scene knowledge (a rig) – estimate Uncalibrated reconstruction despite the lack of knowledge of Autocalibration (recover from uncalibrated images) Use partial knowledge Parallel lines, vanishing points, planar motion, constant intrinsic Ambiguities, stratification (multiple views) MASKS © 2004 Invitation to 3D vision

Calibration with a Rig Use the fact that both 3-D and 2-D coordinates of feature points on a pre-fabricated object (e.g., a cube) are known. MASKS © 2004 Invitation to 3D vision

Calibration with a Rig Given 3-D coordinates on known object Eliminate unknown scales Recover projection matrix Factor the into and using QR decomposition Solve for translation MASKS © 2004 Invitation to 3D vision

Uncalibrated Epipolar Geometry Epipolar constraint Fundamental matrix Equivalent forms of MASKS © 2004 Invitation to 3D vision

Properties of the Fundamental Matrix Epipolar lines Epipoles Image correspondences MASKS © 2004 Invitation to 3D vision

Properties of the Fundamental Matrix A nonzero matrix is a fundamental matrix if has a singular value decomposition (SVD) with for some . There is little structure in the matrix except that MASKS © 2004 Invitation to 3D vision

Estimating Fundamental Matrix Find such F that the epipolar error is minimized Pixel coordinates Fundamental matrix can be estimated up to scale Denote Rewrite Collect constraints from all points MASKS © 2004 Invitation to 3D vision

Two view linear algorithm – 8-point algorithm Solve the LLSE problem: Solution eigenvector associated with smallest eigenvalue of Compute SVD of F recovered from data Project onto the essential manifold: cannot be unambiguously decomposed into pose and calibration MASKS © 2004 Invitation to 3D vision

Calibrated vs. Uncalibrated Space MASKS © 2004 Invitation to 3D vision

Calibrated vs. Uncalibrated Space Distances and angles are modified by S MASKS © 2004 Invitation to 3D vision

Motion in the distorted space Calibrated space Uncalibrated space Uncalibrated coordinates are related by Conjugate of the Euclidean group MASKS © 2004 Invitation to 3D vision

What Does F Tell Us? can be inferred from point matches (eight-point algorithm) Cannot extract motion, structure and calibration from one fundamental matrix (two views) allows reconstruction up to a projective transformation (as we will see soon) encodes all the geometric information among two views when no additional information is available MASKS © 2004 Invitation to 3D vision

Decomposing the Fundamental Matrix Decomposition of the fundamental matrix into a skew symmetric matrix and a nonsingular matrix Decomposition of is not unique Unknown parameters - ambiguity Corresponding projection matrix MASKS © 2004 Invitation to 3D vision

Projective Reconstruction From points, extract , followed by computation of projection matrices and structure Canonical decomposition Given projection matrices – recover structure Projective ambiguity – non-singular 4x4 matrix Both and are consistent with the epipolar geometry – give the same fundamental matrix MASKS © 2004 Invitation to 3D vision

Projective Reconstruction Given projection matrices recover projective structure This is a linear problem and can be solve using linear least-squares Projective reconstruction – projective camera matrices and projective structure MASKS © 2004 Invitation to 3D vision Euclidean Structure Projective Structure

Euclidean vs Projective reconstruction Euclidean reconstruction – true metric properties of objects lenghts (distances), angles, parallelism are preserved Unchanged under rigid body transformations => Euclidean Geometry – properties of rigid bodies under rigid body transformations, similarity transformation Projective reconstruction – lengths, angles, parallelism are NOT preserved – we get distorted images of objects – their distorted 3D counterparts --> 3D projective reconstruction => Projective Geometry MASKS © 2004 Invitation to 3D vision

Homogeneous Coordinates (RBM) 3-D coordinates are related by: Homogeneous coordinates: Homogeneous coordinates are related by: MASKS © 2004 Invitation to 3D vision

Homogenous and Projective Coordinates Homogenous coordinates in 3D before – attach 1 as the last coordinate – render the transformation as linear transformation Projective coordinates – all points are equivalent up to a scale 2D- projective plane 3D- projective space Each point on the plane is represented by a ray in projective space Ideal points – last coordinate is 0 – ray parallel to the image plane points at infinity – never intersects the image plane MASKS © 2004 Invitation to 3D vision

Vanishing points – points at infinity Representation of a 3-D line – in homogeneous coordinates When  -> 1 - vanishing points – last coordinate -> 0 Similarly in the image plane MASKS © 2004 Invitation to 3D vision

Ambiguities in the image formation Potential Ambiguities Ambiguity in K (K can be recovered uniquely – Cholesky or QR) Structure of the motion parameters Just an arbitrary choice of reference frame MASKS © 2004 Invitation to 3D vision

Ambiguities in Image Formation Structure of the (uncalibrated) projection matrix For any invertible 4 x 4 matrix In the uncalibrated case we cannot distinguish between camera imaging word from camera imaging distorted world In general, is of the following form In order to preserve the choice of the first reference frame we can restrict some DOF of MASKS © 2004 Invitation to 3D vision

Structure of the Projective Ambiguity 1st frame as reference Choose the projective reference frame then ambiguity is can be further decomposed as MASKS © 2004 Invitation to 3D vision

Stratified (Euclidean) Reconstruction General ambiguity – while preserving choice of first reference frame Decomposing the ambiguity into affine and projective one Note the different effect of the 4-th homogeneous coordinate MASKS © 2004 Invitation to 3D vision

Affine upgrade Upgrade projective structure to an affine structure Exploit partial scene knowledge Vanishing points, no skew, known principal point Special motions Pure rotation, pure translation, planar motion, rectilinear motion Constant camera parameters (multi-view) MASKS © 2004 Invitation to 3D vision

Affine upgrade using vanishing points How to compute Maps the points To points with affine coordinates Vanishing points – last homogeneous affine coordinate is 0 MASKS © 2004 Invitation to 3D vision

Affine Upgrade Need at least three vanishing points 3 equations, 4 unknowns (-1 scale) Solve for Set up and update the projective structure MASKS © 2004 Invitation to 3D vision

Euclidean upgrade We need to estimate remaining affine ambiguity In the case of special motions (e.g. pure rotation) – no projective ambiguity – cannot do projective reconstruction Estimate directly (special case of rotating camera – follows) Multi-view case – estimate projective and affine ambiguity together Use additional constraints of the scene structure (next) Autocalibration (Kruppa equations) Alternatives: MASKS © 2004 Invitation to 3D vision

Euclidean Upgrade using vanishing points Vanishing points – intersections of the parallel lines Vanishing points of three orthogonal directions Orthogonal directions – inner product is zero Provide directly constraints on matrix S – has 5 degrees of freedom, 3 vanishing points – 3 constraints (need additional assumption about K) Assume zero skew and aspect ratio = 1 MASKS © 2004 Invitation to 3D vision

Geometric Stratification MASKS © 2004 Invitation to 3D vision

Special Motions – Pure Rotation Calibrated Two views related by rotation only Mapping to a reference view – rotation can be estimated Mapping to a cylindrical surface MASKS © 2004 Invitation to 3D vision

Pure Rotation - Uncalibrated Case Calibrated Two views related by rotation only Conjugate rotation can be estimated Given C, how much does it tell us about K (or S) ? Given three rotations around linearly independent axes – S, K can be estimated using linear techniques Applications – image mosaics MASKS © 2004 Invitation to 3D vision

Overview of the methods MASKS © 2004 Invitation to 3D vision

Summary MASKS © 2004 Invitation to 3D vision

Direct Autocalibration Methods The fundamental matrix satisfies the Kruppa’s equations If the fundamental matrix is known up to scale Under special motions, Kruppa’s equations become linear. Solution to Kruppa’s equations is sensitive to noises. MASKS © 2004 Invitation to 3D vision

Direct Stratification from Multiple Views From the recovered projective projection matrix we obtain the absolute quadric contraints Partial knowledge in (e.g. zero skew, square pixel) renders the above constraints linear and easier to solve. The projection matrices can be recovered from the multiple-view rank method to be introduced later. MASKS © 2004 Invitation to 3D vision

Summary of (Auto)calibration Methods MASKS © 2004 Invitation to 3D vision