The reconstruction problem. Reconstruction by triangulation

Similar documents
Stereo Vision. MAN-522 Computer Vision

Unit 3 Multiple View Geometry

Geometry Pre AP Graphing Linear Equations

Machine vision. Summary # 11: Stereo vision and epipolar geometry. u l = λx. v l = λy

calibrated coordinates Linear transformation pixel coordinates

3D Sensing and Reconstruction Readings: Ch 12: , Ch 13: ,

Two-view geometry Computer Vision Spring 2018, Lecture 10

Structure from Motion and Multi- view Geometry. Last lecture

1.5 Equations of Lines and Planes in 3-D

Multiple View Geometry

Structure from motion

Camera Calibration. Schedule. Jesus J Caban. Note: You have until next Monday to let me know. ! Today:! Camera calibration

while its direction is given by the right hand rule: point fingers of the right hand in a 1 a 2 a 3 b 1 b 2 b 3 A B = det i j k

Lines and Planes in 3D

EECS 487, Fall 2005 Exam 2

Depth from two cameras: stereopsis

3D Sensing. 3D Shape from X. Perspective Geometry. Camera Model. Camera Calibration. General Stereo Triangulation.

CS231A Course Notes 4: Stereo Systems and Structure from Motion

Depth from two cameras: stereopsis

From Vertices To Fragments-1

Structure from motion

Clipping and Intersection

The end of affine cameras

Lecture 9: Epipolar Geometry

Structure from motion

Computer Vision Project-1

Fundamentals of Stereo Vision Michael Bleyer LVA Stereo Vision

Introduction Ray tracing basics Advanced topics (shading) Advanced topics (geometry) Graphics 2010/2011, 4th quarter. Lecture 11: Ray tracing

1.5 Equations of Lines and Planes in 3-D

Directional Derivatives and the Gradient Vector Part 2

NAME: DATE: PERIOD: 1. Find the coordinates of the midpoint of each side of the parallelogram.

Problems of Plane analytic geometry

Revision Problems for Examination 2 in Algebra 1

MAPI Computer Vision. Multiple View Geometry

Practical Linear Algebra: A Geometry Toolbox

Geometric Queries for Ray Tracing

Structured Light. Tobias Nöll Thanks to Marc Pollefeys, David Nister and David Lowe

GEOMETRY HONORS COORDINATE GEOMETRY PACKET

Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers

Lecture 14: Basic Multi-View Geometry

(Refer Slide Time: 00:02:02)

A point is pictured by a dot. While a dot must have some size, the point it represents has no size. Points are named by capital letters..

Light Reflection. Not drawn to scale.

Computer Vision Lecture 17

3D Reconstruction from Scene Knowledge

I can identify, name, and draw points, lines, segments, rays, and planes. I can apply basic facts about points, lines, and planes.

Perception and Action using Multilinear Forms

Directional Derivatives and the Gradient Vector Part 2

521493S Computer Graphics Exercise 1 (Chapters 1-3)

Also available in Hardcopy (.pdf): Coordinate Geometry

3D Computer Vision. Structured Light I. Prof. Didier Stricker. Kaiserlautern University.

Structure from Motion

Computer Vision cmput 428/615

Geometry of Multiple views

MERGING POINT CLOUDS FROM MULTIPLE KINECTS. Nishant Rai 13th July, 2016 CARIS Lab University of British Columbia

CS770/870 Spring 2017 Ray Tracing Implementation

Graded Assignment 2 Maple plots

Module 6: Pinhole camera model Lecture 32: Coordinate system conversion, Changing the image/world coordinate system

Multiple View Geometry in Computer Vision

Computer Graphics II

Colorado School of Mines. Computer Vision. Professor William Hoff Dept of Electrical Engineering &Computer Science.

f( x ), or a solution to the equation f( x) 0. You are already familiar with ways of solving

8.1 Geometric Queries for Ray Tracing

Slope, Distance, Midpoint

Computer Vision I - Algorithms and Applications: Multi-View 3D reconstruction

Single-shot Extrinsic Calibration of a Generically Configured RGB-D Camera Rig from Scene Constraints

Section 13.5: Equations of Lines and Planes. 1 Objectives. 2 Assignments. 3 Lecture Notes

Ray Tracing. CS116B Chris Pollett Apr 20, 2004.

Midterm Exam Fundamentals of Computer Graphics (COMP 557) Thurs. Feb. 19, 2015 Professor Michael Langer

Gabriel Taubin. Desktop 3D Photography

Practical Linear Algebra: A Geometry Toolbox

3D Computer Vision. Structure from Motion. Prof. Didier Stricker

Raycasting. Chapter Raycasting foundations. When you look at an object, like the ball in the picture to the left, what do

Computer Vision Lecture 17

Basics of Computational Geometry

Geometry. Chapter 1 Points, Lines, Planes, and Angles

CS559 Computer Graphics Fall 2015

Graphs and Linear Functions

Archeoviz: Improving the Camera Calibration Process. Jonathan Goulet Advisor: Dr. Kostas Daniilidis

The Graphics Pipeline. Interactive Computer Graphics. The Graphics Pipeline. The Graphics Pipeline. The Graphics Pipeline: Clipping

The Rectangular Coordinate System and Equations of Lines. College Algebra

Lecture 5 Epipolar Geometry

Pin Hole Cameras & Warp Functions

Visual Recognition: Image Formation

CMPSCI 145 MIDTERM #2 SPRING 2017 April 7, 2017 Professor William T. Verts NAME PROBLEM SCORE POINTS GRAND TOTAL 100

Updated: January 11, 2016 Calculus III Section Math 232. Calculus III. Brian Veitch Fall 2015 Northern Illinois University

An idea which can be used once is a trick. If it can be used more than once it becomes a method

Week 2: Two-View Geometry. Padua Summer 08 Frank Dellaert

Let s write this out as an explicit equation. Suppose that the point P 0 = (x 0, y 0, z 0 ), P = (x, y, z) and n = (A, B, C).

Suggested problems - solutions

Test Name: Chapter 3 Review

Radiance. Pixels measure radiance. This pixel Measures radiance along this ray

Transformations Part If then, the identity transformation.

8r + 5 3r 4. HW: Algebra Skills. Name: Date: Period:

Topic 5.1: Line Elements and Scalar Line Integrals. Textbook: Section 16.2

Epipolar Geometry Prof. D. Stricker. With slides from A. Zisserman, S. Lazebnik, Seitz

3D Reconstruction with two Calibrated Cameras

Announcements. Motion. Structure-from-Motion (SFM) Motion. Discrete Motion: Some Counting

True/False. MATH 1C: SAMPLE EXAM 1 c Jeffrey A. Anderson ANSWER KEY

AP Physics: Curved Mirrors and Lenses

Transcription:

The reconstruction problem Both intrinsic and extr insic parameters are known: we can solve the reconstruction problem unambiguously by triangulation. Only the intrinsic parameters are known: we can solve the reconstruction problem but only up to an unknown scaling factor. Neither the extr insic nor the intrinsic parameters are available: we can solve the reconstruction problem but only up to an unknown, global projective transformation. Reconstruction by triangulation Assumptions and problem statement Both the extrinsic and intrinsic camera parameters are known. Compute the location of the 3D points from their projections p l and p r What is the solution? -The point P lies at the intersection of the two rays from O l through p l and from O r through p r.

-2- Practical difficulties -The two rays will not intersect exactly in space because of errors in the location of the corresponding features. -Find the point that is closest to both rays. -This is the midpoint P of line segment being perpendicular to both rays. Parametric line representation (review) -The parametric respresentation of the line passing through P 1 and P 2 is given by: P(t) = P 1 + t(p 2 P 1 ) or x(t) = x 1 + t(x 2 x 1 ) and y(t) = y 1 + t(y 2 y 1 ) -The direction of the line is given bythe vector t(p 2 P 1 ) t=1 t>1 t=0 0<t<1 P 2 t<0 P 1

-3- Computing P -Parametric representation of the line passing through O l and p l : O l + a(p l O l ) = ap l -Parametric representation of the line passing through O r and p r : Or L + b(pr L Or L ) = T + br T p r since Or L = R T Or R + T = T and pr L = R T pr R + T (pr R = p r,, pl L = p l ) -Suppose the endpoints P 1 and P 2 are given by P 1 = a 0 p l and P 2 = T + b 0 R T p r -The parametric equation of the line passing through P 1 and P 2 is given by: P 1 + c(p 2 P 1 ) -The desired point P (midpoint) is computed for c = 1/2

-4- Computing a 0 and b 0 -Consider the vector w orthogonal to both l and r is given by: w = (p l O l )x(pr L Or L ) = p l xr T p r (since pr R = R( pr L Or L )) -The line s going through P 1 with direction w is given by: a 0 p l + cw = a 0 p l + c(p l xr T p r ) -The lines s and r intersect at P 2 : a 0 p l + c 0 ( p l xr T p r ) = T + b 0 R T p r (assume s passes through P 2 for c = c 0 ) -Wecan obtain a 0 and b 0 by solving the following system of equations: a 0 p l b 0 R T p r + c 0 ( p l xr T p r ) = T

-5- Reconstruction up to a scale factor Assumptions and problem statement Only the intrinsic camera parameters are known. We have established n 8correspondences to compute E Compute the location of the 3D points from their projections p l and p r. Comments: We cannot recover the true scale of the viewed scene since we do not know the T baselile T (recall: Z = f d ). Reconstruction is unique only up to an unknown scaling factor. This factor can be determined if we know the distance between two points in the scene. Estimate E -Wecan estimate E using the 8-point algorithm. -The solution is unique up to an unknown scale factor. Recover T E T E = S T R T RS = S T S = T y 2 + Tz 2 T y T x T z T x T x T y Tz 2 + T x 2 T z T y T x T z T y T z T 2 x + T 2 y note: Tr(E T E) = 2 T 2 or T = Tr(E T E)/2 To simplify the recovery of T,let s divide E by T : 1 ˆT 2 x ˆT x ˆT y ˆT x ˆT z Ê T Ê = ˆT y ˆT x 1 ˆT 2 y ˆT y ˆT z where ˆT = T / T ˆT z ˆT x ˆT z ˆT y 1 ˆT 2 z (we can compute ˆT much easier from Ê T Ê)

-6- Recover R It can be shown that R i = w i + w j xw k where w i = Ê i x ˆT Ambiguity in ( ˆT, R) There is a twofold ambiguity in the sign of Ê and ˆT There will be four different estimates for ( ˆT, R) 3D reconstruction Let s compute the z coordinate of each point in the left camera frame: p l = f l P l Z l and p r = f r P r Z r = f r R(P l ˆT ) R T 3 (P l ˆT ) (since P r = R(P l T )) The first component x r of p r is: x r = f r R T 1 (P l ˆT ) R T 3 (P l ˆT ) Substiting P l = p l Z l f l into the above equation we get: Compute X l and Y l from P l = p l Z l f l Z l = f l ( f r R 1 x r R 3 ) T ˆT ( f r R 1 x r R 3 ) T p l Compute (X r, Y r, Z r )from P r = R(P l T )

-7- Algorithm Input: a set of corresponding points p l and p r 1. Estimate E 2. Recover ˆT 3. Recover R 4. Reconstruct Z l and Z r 5. If the signs of Z l and Z r are: 5.1 both negative for some point, change the sign of ˆT and goto step 4 5.2 one negative, one positive, for some point, change the sign of each entry of Ê and goto step 3. 5.3 both positive for all points, exit. Comment: the algorithm should not go through more than 4 iterations (why?)

-8- Reconstruction up to a projective transformation -Wewill not discuss this case (more complicated) -Look in the book if interested (pp. 166-170)