Computer Vision cmput 613 Sequential 3D Modeling from images using epipolar geometry and F 3D Modeling from images using epipolar geometry and F Martin.

Slides:



Advertisements
Similar presentations
Lecture 11: Two-view geometry
Advertisements

Gratuitous Picture US Naval Artillery Rangefinder from World War I (1918)!!
MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling.
Two-View Geometry CS Sastry and Yang
Multiple View Reconstruction Class 24 Multiple View Geometry Comp Marc Pollefeys.
N-view factorization and bundle adjustment CMPUT 613.
Structure from motion Class 9 Read Chapter 5. 3D photography course schedule (tentative) LectureExercise Sept 26Introduction- Oct. 3Geometry & Camera.
Lecture 8: Stereo.
Camera calibration and epipolar geometry
Structure from motion.
Scene Planes and Homographies class 16 Multiple View Geometry Comp Marc Pollefeys.
Projective structure from motion
Stereo. STEREOPSIS Reading: Chapter 11. The Stereopsis Problem: Fusion and Reconstruction Human Stereopsis and Random Dot Stereograms Cooperative Algorithms.
Adam Rachmielowski 615 Project: Real-time monocular vision-based SLAM.
Robot Vision SS 2008 Matthias Rüther 1 ROBOT VISION Lesson 6: Shape from Stereo Matthias Rüther Slides partial courtesy of Marc Pollefeys Department of.
3D reconstruction class 11
Computing F and rectification class 14 Multiple View Geometry Comp Marc Pollefeys.
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
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Multiple View Geometry
Multiple-view Reconstruction from Points and Lines
3D reconstruction of cameras and structure x i = PX i x’ i = P’X i.
Many slides and illustrations from J. Ponce
Multiple View Geometry Comp Marc Pollefeys
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Two-view geometry Epipolar geometry F-matrix comp. 3D reconstruction Structure comp.
Computer Vision Optical Flow Marc Pollefeys COMP 256 Some slides and illustrations from L. Van Gool, T. Darell, B. Horn, Y. Weiss, P. Anandan, M. Black,
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Triangulation and Multi-View Geometry Class 9 Read notes Section 3.3, , 5.1 (if interested, read Triggs’s paper on MVG using tensor notation, see.
Assignment 2 Compute F automatically from image pair (putative matches, 8-point, 7-point, iterative, RANSAC, guided matching) (due by Wednesday 19/03/03)
Multiple View Reconstruction Class 23 Multiple View Geometry Comp Marc Pollefeys.
May 2004Stereo1 Introduction to Computer Vision CS / ECE 181B Tuesday, May 11, 2004  Multiple view geometry and stereo  Handout #6 available (check with.
Lec 21: Fundamental Matrix
CSE473/573 – Stereo Correspondence
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Stereo matching Class 10 Read Chapter 7 Tsukuba dataset.
3-D Scene u u’u’ Study the mathematical relations between corresponding image points. “Corresponding” means originated from the same 3D point. Objective.
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry Topics: Basics of projective geometry Points and hyperplanes in projective space Homography.
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
Lecture 11 Stereo Reconstruction I Lecture 11 Stereo Reconstruction I Mata kuliah: T Computer Vision Tahun: 2010.
Geometry and Algebra of Multiple Views
1 Preview At least two views are required to access the depth of a scene point and in turn to reconstruct scene structure Multiple views can be obtained.
Projective cameras Motivation Elements of Projective Geometry Projective structure from motion Planches : –
Computer Vision cmput 498/613 3D Modeling from images 3D Modeling from images Martin Jagersand.
Structure from Motion Course web page: vision.cis.udel.edu/~cv April 25, 2003  Lecture 26.
3D Reconstruction Jeff Boody. Goals ● Reconstruct 3D models from a sequence of at least two images ● No prior knowledge of the camera or scene ● Use the.
Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:
Computer Vision cmput 428/615 3D Modeling from images 3D Modeling from images Martin Jagersand.
Robot Vision SS 2007 Matthias Rüther 1 ROBOT VISION Lesson 6a: Shape from Stereo, short summary Matthias Rüther Slides partial courtesy of Marc Pollefeys.
Two-view geometry Epipolar geometry F-matrix comp. 3D reconstruction
Computer Vision cmput 498/613
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry Topics: Basics of projective geometry Points and hyperplanes in projective space Homography.
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry Topics: Basics of projective geometry Points and hyperplanes in projective space Homography.
776 Computer Vision Jan-Michael Frahm & Enrique Dunn Spring 2013.
Uncalibrated reconstruction Calibration with a rig Uncalibrated epipolar geometry Ambiguities in image formation Stratified reconstruction Autocalibration.
EECS 274 Computer Vision Projective Structure from Motion.
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.
CSE 185 Introduction to Computer Vision Stereo 2.
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry
Epipolar Geometry and Stereo Vision
Epipolar geometry.
3D Photography: Epipolar geometry
Estimating 2-view relationships
Uncalibrated Geometry & Stratification
Chapter 11: Stereopsis Stereopsis: Fusing the pictures taken by two cameras and exploiting the difference (or disparity) between them to obtain the depth.
Presentation transcript:

Computer Vision cmput 613 Sequential 3D Modeling from images using epipolar geometry and F 3D Modeling from images using epipolar geometry and F Martin Jagersand

Projection equationProjection equation x i =P i X x i =P i X Resection:Resection: –x i,X P i Multi-view geometry - resection Given image points and 3D points calculate camera projection matrix.

Projection equationProjection equation x i =P i X x i =P i X Intersection:Intersection: –x i,P i X Multi-view geometry - intersection Given image points and camera projections in at least 2 views calculate the 3D points (structure)

Projection equationProjection equation x i =P i X x i =P i X Structure from motion (SFM)Structure from motion (SFM) –x i P i, X Multi-view geometry - SFM Given image points in at least 2 views calculate the 3D points (structure) and camera projection matrices (motion) Estimate projective structure Rectify the reconstruction to metric (autocalibration)

Depth from stereo Calibrated aligned camerasCalibrated aligned cameras Z X (0,0) (d,0) Z=fZ=f xlxl xrxr Disparity d Trinocular Vision System (Point Grey Research)

2 view geometry (Epipolar geometry)

Fundamental matrix Algebraic representation of epipolar geometryAlgebraic representation of epipolar geometry Step 1: X on a plane  Step 2: epipolar line l’ F 3x3, Rank 2, det(F)=0 Linear sol. – 8 corr. Points (unique) Nonlinear sol. – 7 corr. points (3sol.) Very sensitive to noise & outliers Epipolar lines: Epipoles: [Faugeras ’92, Hartley ’92 ]

Computing F; 8 pt alg separate known from unknown (data) (unknowns) (linear)

8-point algorithm Solve for nontrivial solution using SVD: Var subst:Now Min Hence x = last vector in V

Initial structure and motion Epipolar geometry  Projective calibration compatible with F Yields correct projective camera setup (Faugeras´92,Hartley´92) Obtain structure through triangulation Use reprojection error for minimization Avoid measurements in projective space

Compute P i+1 using robust approach Find additional matches using predicted projection Extend, correct and refine reconstruction 2D-2D 2D-3D mimi m i+1 M new view Determine pose towards existing structure

Structure from images: 3D Point reconstruction

linear triangulation homogeneous inhomogeneous invariance? algebraic error yes, constraint no (except for affine)

Linear triangulation Alternative way of linear intersection: Formulate a set of linear equations explicitly solving for ’sFormulate a set of linear equations explicitly solving for ’s See our VR2003 tutorial p. 26

Reconstruction uncertainty consider angle between rays

Objective Given two uncalibrated images compute (P M,P‘ M,{X Mi }) (i.e. within similarity of original scene and cameras) Algorithm (i)Compute projective reconstruction (P,P‘,{X i }) (a)Compute F from x i ↔x‘ i (b)Compute P,P‘ from F (c)Triangulate X i from x i ↔x‘ i (ii)Rectify reconstruction from projective to metric Direct method: compute H from control points Stratified method: (a)Affine reconstruction: compute  ∞ (b)Metric reconstruction: compute IAC  Summary: 2view Reconstuction

Sequential structure from motion using 2 and 3 view geom Initialize structure and motion from two viewsInitialize structure and motion from two views For each additional viewFor each additional view –Determine pose –Refine and extend structure Determine correspondences robustly by jointly estimating matches and epipolar geometryDetermine correspondences robustly by jointly estimating matches and epipolar geometry

Non-sequential image collections 4.8im/pt 64 images 3792 points Problem: Features are lost and reinitialized as new features Solution: Match with other close views

For every view i Extract features Compute two view geometry i-1/i and matches Compute pose using robust algorithm Refine existing structure Initialize new structure Relating to more views Problem: find close views in projective frame For every view i Extract features Compute two view geometry i-1/i and matches Compute pose using robust algorithm For all close views k Compute two view geometry k/i and matches Infer new 2D-3D matches and add to list Refine pose using all 2D-3D matches Refine existing structure Initialize new structure

Determining close views If viewpoints are close then most image changes can be modelled through a planar homographyIf viewpoints are close then most image changes can be modelled through a planar homography Qualitative distance measure is obtained by looking at the residual error on the best possible planar homographyQualitative distance measure is obtained by looking at the residual error on the best possible planar homography Distance =

9.8im/pt 4.8im/pt 64 images 3792 points 2170 points Non-sequential image collections (2)

Refining a captured model: Bundle adjustment Refine structure X j and motion P iRefine structure X j and motion P i Minimize geometric errorMinimize geometric error ML solution, assuming noise is GaussianML solution, assuming noise is Gaussian Tolerant to missing dataTolerant to missing data

Projective ambiguity and self-calibration Given an uncalibrated image sequence with corresponding point it is possible to reconstruct the object up to an unknown projective transformation Autocalibration (self-calibration): Determine a projective transformation T that upgrades the projective reconstruction to a metric one. T

A complete modeling system projective Sequence of frames scene structure 1.Get corresponding points (tracking). 2.2,3 view geometry: compute F,T between consecutive frames (recompute correspondences). 3.Initial reconstruction: get an initial structure from a subsequence with big baseline (trilinear tensor, factorization …) and bind more frames/points using resection/intersection. 4.Self-calibration. 5.Bundle adjustment.

A complete modeling system affine Sequence of frames scene structure 1.Get corresponding points (tracking). 2.Affine factorization. (This already computes ML estimate over all frames so no need for bundle adjustment for simple scenes. 3.Self-calibration. 4.If several model segments: Merge, bundle adjust.

Examples – modeling with dynamic texture Cobzas, Birkbeck, Rachmielowski, Yerex, Jagersand

Examples: geometric modeling Debevec and Taylor: Façade

Examples: geometric modeling Pollefeys: Arenberg Castle

Examples: geometric modeling INRIA – VISIRE project

Examples: geometric modeling CIP Prague – Projective Reconstruction Based on Cake Configuration

Reading: FP Chapter 11. The Stereopsis Problem: Fusion and Reconstruction Human Stereopsis and Random Dot Stereograms Cooperative Algorithms Correlation-Based Fusion Multi-Scale Edge Matching Dynamic Programming Using Three or More Cameras Dense stereo Go back to original images, do dense matching.Go back to original images, do dense matching. Try to get dense depth mapsTry to get dense depth maps

All epipolar lines are parallel in the rectified image plane. Rectification

simplify stereo matching by warping the images Apply projective transformation so that epipolar lines correspond to horizontal scanlines e e map epipole e to (1,0,0) try to minimize image distortion problem when epipole in (or close to) the image Image rectification through homography warp

Stereo matching Optimal path (dynamic programming ) Similarity measure (SSD or NCC) Constraints epipolar ordering uniqueness disparity limit disparity gradient limit Trade-off Matching cost (data) Discontinuities (prior) (Cox et al. CVGIP’96; Koch’96; Falkenhagen´97; Van Meerbergen,Vergauwen,Pollefeys,VanGool IJCV‘02)

Disparity map image I(x,y) image I´(x´,y´) Disparity map D(x,y) (x´,y´)=(x+D(x,y),y)

Hierarchical stereo matching Downsampling (Gaussian pyramid) Disparity propagation Allows faster computation Deals with large disparity ranges ( Falkenhagen´97;Van Meerbergen,Vergauwen,Pollefeys,VanGool IJCV‘02)

Example: reconstruct image from neighboring images