Stereo Vision Computer Vision (Kris Kitani) Carnegie Mellon University

Similar documents
Rectification. Dr. Gerhard Roth

Stereo and structured light

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

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

Rectification and Distortion Correction

Rectification and Disparity

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

Stereo vision. Many slides adapted from Steve Seitz

Project 2 due today Project 3 out today. Readings Szeliski, Chapter 10 (through 10.5)

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

CS5670: Computer Vision

Cameras and Stereo CSE 455. Linda Shapiro

Epipolar Geometry and Stereo Vision

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

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

Computer Vision Lecture 17

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

Multiple View Geometry

Stereo. Many slides adapted from Steve Seitz

Project 3 code & artifact due Tuesday Final project proposals due noon Wed (by ) Readings Szeliski, Chapter 10 (through 10.5)

Computer Vision Lecture 17

Step-by-Step Model Buidling

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

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

1 Projective Geometry

BIL Computer Vision Apr 16, 2014

Epipolar Geometry and Stereo Vision

Stereo Vision. MAN-522 Computer Vision

CS 664 Slides #9 Multi-Camera Geometry. Prof. Dan Huttenlocher Fall 2003

EE795: Computer Vision and Intelligent Systems

What have we leaned so far?

Lecture 14: Basic Multi-View Geometry

Lecture 9 & 10: Stereo Vision

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

Stereo Image Rectification for Simple Panoramic Image Generation

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

Lecture 6 Stereo Systems Multi-view geometry

Image Based Reconstruction II

Perception II: Pinhole camera and Stereo Vision

Model-Based Stereo. Chapter Motivation. The modeling system described in Chapter 5 allows the user to create a basic model of a

Fundamentals of Stereo Vision Michael Bleyer LVA Stereo Vision

CS201 Computer Vision Camera Geometry

Stereo matching. Francesco Isgrò. 3D Reconstruction and Stereo p.1/21

COMPARATIVE STUDY OF DIFFERENT APPROACHES FOR EFFICIENT RECTIFICATION UNDER GENERAL MOTION

Two-view geometry Computer Vision Spring 2018, Lecture 10

calibrated coordinates Linear transformation pixel coordinates

Recap from Previous Lecture

ECE 470: Homework 5. Due Tuesday, October 27 in Seth Hutchinson. Luke A. Wendt

CS664 Lecture #19: Layers, RANSAC, panoramas, epipolar geometry

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

CSCI 5980: Assignment #3 Homography

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

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...

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

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

Computer Vision. Exercise Session 6 Stereo matching. Institute of Visual Computing

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

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

Stereo Vision A simple system. Dr. Gerhard Roth Winter 2012

Depth from two cameras: stereopsis

Epipolar Geometry and the Essential Matrix

CS6670: Computer Vision

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

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

Depth from two cameras: stereopsis

1 CSE 252A Computer Vision I Fall 2017

Geometric camera models and calibration

Public Library, Stereoscopic Looking Room, Chicago, by Phillips, 1923

Chaplin, Modern Times, 1936

Two-View Geometry (Course 23, Lecture D)

Lecture 9: Epipolar Geometry

Multiple View Image Rectification

Comments on Consistent Depth Maps Recovery from a Video Sequence

Projective Rectification from the Fundamental Matrix

Theory of Stereo vision system

Epipolar Geometry and Stereo Vision

MAPI Computer Vision. Multiple View Geometry

Camera Geometry II. COS 429 Princeton University

Unit 3 Multiple View Geometry

Index. 3D reconstruction, point algorithm, point algorithm, point algorithm, point algorithm, 253

Efficient Stereo Image Rectification Method Using Horizontal Baseline

A Novel Stereo Camera System by a Biprism

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

Lecture 14: Computer Vision

Stereo and Epipolar geometry

Index. 3D reconstruction, point algorithm, point algorithm, point algorithm, point algorithm, 263

LUMS Mine Detector Project

Recovering structure from a single view Pinhole perspective projection

Assignment 2: Stereo and 3D Reconstruction from Disparity

Multiple View Geometry

Rectification for Any Epipolar Geometry

Stereo imaging ideal geometry

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

1 (5 max) 2 (10 max) 3 (20 max) 4 (30 max) 5 (10 max) 6 (15 extra max) total (75 max + 15 extra)

Wide-Baseline Stereo Vision for Mars Rovers

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

Transactions on Information and Communications Technologies vol 16, 1996 WIT Press, ISSN

Multiple Baseline Stereo

SRI Small Vision System

A Compact Algorithm for Rectification of Stereo Pairs

Transcription:

Stereo Vision 16-385 Computer Vision (Kris Kitani) Carnegie Mellon University

What s different between these two images?

Objects that are close move more or less?

The amount of horizontal movement is inversely proportional to

The amount of horizontal movement is inversely proportional to the distance from the camera.

X image plane O O

X x f x image plane f O O

X Z f x x f O O

X Z f x x O O (baseline) b f

X X Z = x f Z f x x O O (baseline) b f

X X Z = x f Z b Z X = x f f x x O O (baseline) b f

X X Z = x f Z b Z X = x f f x x O O (baseline) b f Disparity d = x x = bf Z

X X Z = x f Z b Z X = x f f x x O O (baseline) b f Disparity d = x x inversely proportional to depth = bf Z

Real-time stereo sensing Nomad robot searches for meteorites in Antartica http://www.frc.ri.cmu.edu/projects/meteorobot/index.html

Subaru Eyesight system Pre-collision braking

How so you compute depth from a stereo pair?

1. Rectify images (make epipolar lines horizontal) 2. For each pixel a. Find epipolar line b. Scan line for best match c. Compute depth from disparity Z = bf d

How can you make the epipolar lines horizontal?

It s hard to make the image planes exactly parallel

How can you make the epipolar lines horizontal?

How can you make the epipolar lines horizontal? When this relationship holds: R = I t = (T,, ) x t x

How can you make the epipolar lines horizontal? When this relationship holds: R = I t = (T,, ) x x Let s try this out E = t R = & $ $ $ % T T #!!!" t This always has to hold x T E x" =,

t x x How can you make the epipolar lines horizontal? R = I t = (T,, )!!! " # $ $ $ % & = = T T R t E ( ) ( ) Tv T v u v u T T v u = " " " # $ % % % & '! = " " " # $ % % % & '!! ) ) ) * +,,, -. 1 1 1 E x x T = ", Write out the constraint Let s try this out This always has to hold When this relationship holds:

t x x How can you make the epipolar lines horizontal? R = I t = (T,, )!!! " # $ $ $ % & = = T T R t E ( ) ( ) v T Tv Tv T v u v u T T v u! = = " " " # $ % % % & '! = " " " # $ % % % & '!! ) ) ) * +,,, -. 1 1 1 E x x T = ", y coordinate is always the same! Write out the constraint Let s try this out This always has to hold The image of a 3D point will always be on the same horizontal line When this relationship holds:

What is stereo rectification?

What is stereo rectification?

What is stereo rectification? Reproject image planes onto a common plane parallel to the line between camera centers

What is stereo rectification? Reproject image planes onto a common plane parallel to the line between camera centers Need two homographies (3x3 transform), one for each input image reprojection C. Loop and Z. Zhang. Computing Rectifying Homographies for Stereo Vision.Computer Vision and Pattern Recognition, 1999.

Stereo Rectification 1. Rotate the right camera by R (aligns camera coordinate system orientation only) 2. Rotate (rectify) the left camera so that the epipole is at infinity 3. Rotate (rectify) the right camera so that the epipole is at infinity 4. Adjust the scale

Stereo Rectification: 1. Compute E to get R 2. Rotate right image by R 3. Rotate both images by Rrect 4. Scale both images by H

Stereo Rectification: rotate by R 1. Compute E to get R 2. Rotate right image by R 3. Rotate both images by Rrect 4. Scale both images by H

Stereo Rectification: 1. Compute E to get R 2. Rotate right image by R 3. Rotate both images by Rrect 4. Scale both images by H

Stereo Rectification: rotate by Rrect rotate by Rrect 1. Compute E to get R 2. Rotate right image by R 3. Rotate both images by Rrect 4. Scale both images by H

Stereo Rectification: 1. Compute E to get R 2. Rotate right image by R 3. Rotate both images by Rrect 4. Scale both images by H

Stereo Rectification: scale by H scale by H 1. Compute E to get R 2. Rotate right image by R 3. Rotate both images by Rrect 4. Scale both images by H

Stereo Rectification: 1. Compute E to get R 2. Rotate right image by R 3. Rotate both images by Rrect 4. Scale both images by H

What can we do after rectification?

Setting the epipole to infinity (Building R rect from e) Let R rect = 2 4 r > 1 r > 2 r > 3 3 5 Given: epipole e (using SVD on E) (translation from E) r 1 = e 1 = r 2 = T T 1 q Tx 2 + Ty 2 epipole coincides with translation vector T y T x cross product of e and the direction vector of the optical axis r 3 = r 1 r 2 orthogonal vector

r 1 = e 1 = T If and r 2 r 3 orthogonal T then R rect e 1 = 2 4 r > 1 e 1 r > 2 e 1 r > 3 e 1 3 5 = 2 4??? 3 5

r 1 = e 1 = T If and r 2 r 3 orthogonal T then R rect e 1 = 2 4 r > 1 e 1 r > 2 e 1 r > 3 e 1 3 5 = 2 4 1 3 5 Where is this point located on the image plane?

r 1 = e 1 = T If and r 2 r 3 orthogonal T then R rect e 1 = 2 4 r > 1 e 1 r > 2 e 1 r > 3 e 1 3 5 = 2 4 1 3 5 Where is this point located on the image plane? At x-infinity

Stereo Rectification Algorithm 1. Estimate E using the 8 point algorithm (SVD) 2. Estimate the epipole e (SVD of E) 3. Build Rrect from e 4. Decompose E into R and T 5. Set R1=Rrect and R2 = RRrect 6. Rotate each left camera point (warp image) [x y z ] = R1 [x y z] 7. Rectified points as p = f/z [x y z ] 8. Repeat 6 and 7 for right camera points using R2

Stereo Rectification Algorithm 1. Estimate E using the 8 point algorithm 2. Estimate the epipole e (solve Ee=) 3. Build Rrect from e 4. Decompose E into R and T 5. Set R1=Rrect and R2 = RRrect 6. Rotate each left camera point x ~ Hx where H = KR1 *You may need to alter the focal length (inside K) to keep points within the original image size 7. Repeat 6 and 7 for right camera points using R2

Unrectified

Unrectified Rectified

Unrectified Rectified