Lecture 6 Stereo Systems Multi-view geometry

Similar documents
Lecture 6 Stereo Systems Multi- view geometry Professor Silvio Savarese Computational Vision and Geometry Lab Silvio Savarese Lecture 6-24-Jan-15

Lecture 10: Multi-view geometry

Lecture 10: Multi view geometry

EECS 442 Computer vision. Stereo systems. Stereo vision Rectification Correspondence problem Active stereo vision systems

BIL Computer Vision Apr 16, 2014

Lecture 9: Epipolar Geometry

Lecture 5 Epipolar Geometry

CEE598 - Visual Sensing for Civil Infrastructure Eng. & Mgmt.

Epipolar Geometry and Stereo Vision

Introduction à la vision artificielle X

Lecture 9 & 10: Stereo Vision

Epipolar Geometry and Stereo Vision

Structure from motion

There are many cues in monocular vision which suggests that vision in stereo starts very early from two similar 2D images. Lets see a few...

Structure from motion

Stereo. 11/02/2012 CS129, Brown James Hays. Slides by Kristen Grauman

CS231M Mobile Computer Vision Structure from motion

Lecture'9'&'10:'' Stereo'Vision'

Stereo II CSE 576. Ali Farhadi. Several slides from Larry Zitnick and Steve Seitz

Structure from Motion CSC 767

Stereo vision. Many slides adapted from Steve Seitz

Structure from Motion

Binocular stereo. Given a calibrated binocular stereo pair, fuse it to produce a depth image. Where does the depth information come from?

Stereo. Many slides adapted from Steve Seitz

Recovering structure from a single view Pinhole perspective projection

7. The Geometry of Multi Views. Computer Engineering, i Sejong University. Dongil Han

Image Based Reconstruction II

Structure from motion

Epipolar Geometry and Stereo Vision

Computer Vision I. Announcement. Stereo Vision Outline. Stereo II. CSE252A Lecture 15

Computer Vision Lecture 17

Image Transfer Methods. Satya Prakash Mallick Jan 28 th, 2003

Computer Vision Lecture 17

Announcements. Stereo

Cameras and Stereo CSE 455. Linda Shapiro

Computer Vision I. Announcements. Random Dot Stereograms. Stereo III. CSE252A Lecture 16

Structure from Motion

Image Rectification (Stereo) (New book: 7.2.1, old book: 11.1)

Stereo Vision. MAN-522 Computer Vision

Lecture 14: Basic Multi-View Geometry

Multiple View Geometry

Recap: Features and filters. Recap: Grouping & fitting. Now: Multiple views 10/29/2008. Epipolar geometry & stereo vision. Why multiple views?

55:148 Digital Image Processing Chapter 11 3D Vision, Geometry

Epipolar Geometry and Stereo Vision

Announcements. Stereo

Reminder: Lecture 20: The Eight-Point Algorithm. Essential/Fundamental Matrix. E/F Matrix Summary. Computing F. Computing F from Point Matches

Structure from Motion and Multi- view Geometry. Last lecture

The end of affine cameras

CS 231A Computer Vision (Winter 2015) Problem Set 2

Depth from two cameras: stereopsis

Stereo and Epipolar geometry

Two-view geometry Computer Vision Spring 2018, Lecture 10

Today. Stereo (two view) reconstruction. Multiview geometry. Today. Multiview geometry. Computational Photography

CS201 Computer Vision Camera Geometry

CS 4495 Computer Vision A. Bobick. Motion and Optic Flow. Stereo Matching

Depth from two cameras: stereopsis

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

But First: Multi-View Projective Geometry

Stereo: Disparity and Matching

CS231A Course Notes 4: Stereo Systems and Structure from Motion

CS 231A: Computer Vision (Winter 2018) Problem Set 2

Multi-view geometry problems

Rectification and Disparity

Epipolar geometry. x x

CS5670: Computer Vision

Correspondence and Stereopsis. Original notes by W. Correa. Figures from [Forsyth & Ponce] and [Trucco & Verri]

Structure from Motion

Multiple View Geometry. Frank Dellaert

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

Structure from Motion

CS 2770: Intro to Computer Vision. Multiple Views. Prof. Adriana Kovashka University of Pittsburgh March 14, 2017

C280, Computer Vision

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

Stereo CSE 576. Ali Farhadi. Several slides from Larry Zitnick and Steve Seitz

CS 4495 Computer Vision A. Bobick. Motion and Optic Flow. Stereo Matching

1 Projective Geometry

Recap from Previous Lecture

Multiple View Geometry

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

55:148 Digital Image Processing Chapter 11 3D Vision, Geometry

Stereo and structured light

CS231A Midterm Review. Friday 5/6/2016

Rectification and Distortion Correction

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

Passive 3D Photography

Dense 3D Reconstruction. Christiano Gava

Last lecture. Passive Stereo Spacetime Stereo

3D reconstruction class 11

Camera Geometry II. COS 429 Princeton University

Stereo imaging ideal geometry

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

Rectification. Dr. Gerhard Roth

Undergrad HTAs / TAs. Help me make the course better! HTA deadline today (! sorry) TA deadline March 21 st, opens March 15th

Robert Collins CSE486, Penn State. Lecture 09: Stereo Algorithms

Stereo. Outline. Multiple views 3/29/2017. Thurs Mar 30 Kristen Grauman UT Austin. Multi-view geometry, matching, invariant features, stereo vision

Perception II: Pinhole camera and Stereo Vision

COMPARATIVE STUDY OF DIFFERENT APPROACHES FOR EFFICIENT RECTIFICATION UNDER GENERAL MOTION

Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)

Final project bits and pieces

Stereo Epipolar Geometry for General Cameras. Sanja Fidler CSC420: Intro to Image Understanding 1 / 33

Transcription:

Lecture 6 Stereo Systems Multi-view geometry Professor Silvio Savarese Computational Vision and Geometry Lab Silvio Savarese Lecture 6-5-Feb-4

Lecture 6 Stereo Systems Multi-view geometry Stereo systems Rectification Correspondence problem Multi-view geometry The SFM problem Affine SFM Reading: [AZ] Chapter: 4 Estimation 2D perspective transformations Chapter: 9 Epipolar Geometry and the Fundamental Matrix T Chapter: Computation of the Fundamental Matrix F [FP] Chapters: The geometry of multiple views Silvio Savarese Lecture 5-5-Feb-4

Epipolar geometry X For details see CS3A Lecture 9 x x 2 e e 2 Epipolar Plane Epipoles e, e 2 Baseline Epipolar Lines O O 2 = intersections of baseline with image planes = projections of the other camera center

Epipolar Constraint P p p O O p T E p E = Essential Matrix (Longuet-Higgins, 98) E T R

Epipolar Constraint P p p O O p T F p F K T T R K F = Fundamental Matrix (Faugeras and Luong, 992)

Example: Parallel image planes X e 2 x x 2 e 2 y z K K x O O 2 Epipolar lines are horizontal Epipoles go to infinity y-coordinates are equal x x y x x2 2 y

Rectification: making two images parallel For details on how to rectify two views see CS3A Lecture 9 H Courtesy figure S. Lazebnik

Why are parallel images useful? Makes the correspondence problem easier Makes triangulation easy Enables schemes for image interpolation

Application: view morphing S. M. Seitz and C. R. Dyer, Proc. SIGGRAPH 96, 996, 2-3

Morphing without using geometry

Rectification P I I s î y x I î S y x C y x î C s C

From its reflection!

Why are parallel images useful? Makes the correspondence problem easier Makes triangulation easy Enables schemes for image interpolation

Point triangulation P v v e 2 p p e 2 y u u K z O x O K

Computing depth P z u u f f O Baseline B O u u' B z f = disparity Note: Disparity is inversely proportional to depth

Disparity maps u u' B z f u u Stereo pair Disparity map / depth map http://vision.middlebury.edu/stereo/ Disparity map with occlusions

Why are parallel images useful? Makes the correspondence problem easier Makes triangulation easy Enables schemes for image interpolation

Correspondence problem P p p O O 2 Given a point in 3d, discover corresponding observations in left and right images [also called binocular fusion problem]

Correspondence problem P p p O O 2 Given a point in 3d, discover corresponding observations in left and right images [also called binocular fusion problem]

Correspondence problem A Cooperative Model (Marr and Poggio, 976) Correlation Methods (97--) Multi-Scale Edge Matching (Marr, Poggio and Grimson, 979-8) [FP] Chapters:

Correlation Methods (97--) p p 2 95 5 2

Correlation Methods (97--) p Pick up a window around p(u,v)

Correlation Methods (97--) Pick up a window around p(u,v) Build vector w Slide the window along v line in image 2 and compute w Keep sliding until w w is maximized.

Correlation Methods (97--) Normalized Correlation; minimize: (w w)(w (w w)(w w ) w )

Correlation methods Left Right scanline Credit slide S. Lazebnik Norm. corr

Correlation methods Window size = 3 Window size = 2 Smaller window - More detail - More noise Larger window - Smoother disparity maps - Less prone to noise Credit slide S. Lazebnik

Fore shortening effect Issues O O Occlusions O O

It is desirable to have small B/z ratio! Issues Small error in measurements implies large error in estimating depth O O

Issues Homogeneous regions Hard to match pixels in these regions

Repetitive patterns Issues

Correspondence problem is difficult! - Occlusions - Fore shortening - Baseline trade-off - Homogeneous regions - Repetitive patterns Apply non-local constraints to help enforce the correspondences

Results with window search Data Ground truth Window-based matching Credit slide S. Lazebnik

Lecture 6 Stereo Systems Multi-view geometry Stereo systems Rectification Correspondence problem Multi-view geometry The SFM problem Affine SFM Silvio Savarese Lecture 5-5-Feb-4

Structure from motion problem Courtesy of Oxford Visual Geometry Group

Structure from motion problem X j x j M m M x mj x 2j M 2 Given m images of n fixed 3D points x ij = M i X j, i =,, m, j =,, n

Structure from motion problem X j x j M m M x mj x 2j M 2 From the mxn correspondences x ij, estimate: m projection matrices M i n 3D points X j motion structure

Affine structure from motion (simpler problem) Image World Image From the mxn correspondences x ij, estimate: m projection matrices M i (affine cameras) n 3D points X j

Finite cameras p q r O Q R x K R M T X P

Question: R T??

Finite cameras p q r R Q P O X T x K R T R K M 3 3x Canonical perspective projection matrix Affine homography (in 3D) Affine Homography (in 2D) y x s K o y o x

p q r R Q O P Affine cameras y α x s α o y o x K T R K M Canonical affine projection matrix (points at infinity are mapped as points at infinity) R Q P What s the main difference???

Transformation in 2D Affinities: y x H y x t A y' x' a

Affine cameras X T x K R y x K T R K M b A 4affine] [4 3affine] 3 [ 2 23 22 2 3 2 b a a a b a a a M 2 23 22 2 3 2 X b AX x Euc M b b Z Y X a a a a a a y x [Homogeneous] [non-homogeneous image coordinates] b A M M Euc ; P M Euc

Affine cameras p P p M = camera matrix To recap: from now on we define M as the camera matrix for the affine case p u v AP b M P ; M A b

The Affine Structure-from-Motion Problem Given m images of n fixed points P j (=X i ) we can write N of cameras N of points Problem: estimate the m 24 matrices M i and the n positions P j from the mn correspondences p ij. How many equations and how many unknown? 2m n equations in 8m+3n unknowns Two approaches: - Algebraic approach (affine epipolar geometry; estimate F; cameras; points) - Factorization method

A factorization method Tomasi & Kanade algorithm C. Tomasi and T. Kanade. Shape and motion from image streams under orthography: A factorization method. IJCV, 9(2):37-54, November 992. Centering the data Factorization

Next lecture Multiple view geometry