Stereo vision. Many slides adapted from Steve Seitz

Similar documents
Stereo. Many slides adapted from Steve Seitz

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

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

BIL Computer Vision Apr 16, 2014

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

CS4495/6495 Introduction to Computer Vision. 3B-L3 Stereo correspondence

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

Image Based Reconstruction II

Chaplin, Modern Times, 1936

Introduction à la vision artificielle X

Epipolar Geometry and Stereo Vision

Epipolar Geometry and Stereo Vision

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

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

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

Lecture 9 & 10: Stereo Vision

Stereo: Disparity and Matching

Final project bits and pieces

Multiple View Geometry

Lecture 10: Multi view geometry

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

Fundamental matrix. Let p be a point in left image, p in right image. Epipolar relation. Epipolar mapping described by a 3x3 matrix F

CS5670: Computer Vision

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

What have we leaned so far?

Computer Vision Lecture 17

Computer Vision Lecture 17

Lecture 10: Multi-view geometry

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

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

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

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

Cameras and Stereo CSE 455. Linda Shapiro

Recap from Previous Lecture

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

Outline. Immersive Visual Communication Pipeline. Lec 02 Human Vision System

Lecture 6 Stereo Systems Multi-view geometry

Epipolar Geometry and Stereo Vision

Multiple View Geometry

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

Kinect Device. How the Kinect Works. Kinect Device. What the Kinect does 4/27/16. Subhransu Maji Slides credit: Derek Hoiem, University of Illinois

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

Stereo Vision Computer Vision (Kris Kitani) Carnegie Mellon University

Human Body Recognition and Tracking: How the Kinect Works. Kinect RGB-D Camera. What the Kinect Does. How Kinect Works: Overview

Epipolar Geometry and Stereo Vision

Lecture 14: Computer Vision

Stereo and structured light

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

Stereo Matching. Stereo Matching. Face modeling. Z-keying: mix live and synthetic

EE795: Computer Vision and Intelligent Systems

A virtual tour of free viewpoint rendering

EE795: Computer Vision and Intelligent Systems

Mosaics wrapup & Stereo

Introduction to Computer Vision. Week 10, Winter 2010 Instructor: Prof. Ko Nishino

Fundamentals of Stereo Vision Michael Bleyer LVA Stereo Vision

Dense 3D Reconstruction. Christiano Gava

Ninio, J. and Stevens, K. A. (2000) Variations on the Hermann grid: an extinction illusion. Perception, 29,

3D Computer Vision. Depth Cameras. Prof. Didier Stricker. Oliver Wasenmüller

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

6.819 / 6.869: Advances in Computer Vision Antonio Torralba and Bill Freeman. Lecture 11 Geometry, Camera Calibration, and Stereo.

Stereo and Epipolar geometry

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

Step-by-Step Model Buidling

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

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

Multi-view stereo. Many slides adapted from S. Seitz

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

CEng Computational Vision

Dense 3D Reconstruction. Christiano Gava

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

Lecture 10 Dense 3D Reconstruction

Rectification and Disparity

Perception II: Pinhole camera and Stereo Vision

Lecture 14: Basic Multi-View Geometry

Lecture 10 Multi-view Stereo (3D Dense Reconstruction) Davide Scaramuzza

Stereo Matching.

COMP 558 lecture 22 Dec. 1, 2010

Project 4 Results. Representation. Data. Learning. Zachary, Hung-I, Paul, Emanuel. SIFT and HoG are popular and successful.

Miniature faking. In close-up photo, the depth of field is limited.

Passive 3D Photography

Stereo. Shadows: Occlusions: 3D (Depth) from 2D. Depth Cues. Viewing Stereo Stereograms Autostereograms Depth from Stereo

Stereo Wrap + Motion. Computer Vision I. CSE252A Lecture 17

3D photography. Digital Visual Effects, Spring 2007 Yung-Yu Chuang 2007/5/15

CS5670: Computer Vision

Multi-View Stereo for Community Photo Collections Michael Goesele, et al, ICCV Venus de Milo

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

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

CS 4495/7495 Computer Vision Frank Dellaert, Fall 07. Dense Stereo Some Slides by Forsyth & Ponce, Jim Rehg, Sing Bing Kang

Announcements. Stereo Vision Wrapup & Intro Recognition

3D Photography: Stereo Matching

Epipolar geometry contd.

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

SIMPLE ROOM SHAPE MODELING WITH SPARSE 3D POINT INFORMATION USING PHOTOGRAMMETRY AND APPLICATION SOFTWARE

3D Photography: Active Ranging, Structured Light, ICP

Lecture 19: Depth Cameras. Visual Computing Systems CMU , Fall 2013

Using temporal seeding to constrain the disparity search range in stereo matching

Depth from two cameras: stereopsis

Lecture 8 Active stereo & Volumetric stereo

Passive 3D Photography

LUMS Mine Detector Project

Transcription:

Stereo vision Many slides adapted from Steve Seitz

What is stereo vision? Generic problem formulation: given several images of the same object or scene, compute a representation of its 3D shape

What is stereo vision? Generic problem formulation: given several images of the same object or scene, compute a representation of its 3D shape Images of the same object or scene Arbitrary number of images (from two to thousands) Arbitrary camera positions (isolated cameras or video sequence) Cameras can be calibrated or uncalibrated Representation of 3D shape Depth maps Meshes Point clouds Patch clouds Volumetric models Layered models

What is stereo vision? Generic problem formulation: given several images of the same object or scene, compute a representation of its 3D shape

What is stereo vision? Narrower formulation: given a calibrated binocular stereo pair, fuse it to produce a depth image image 1 image 2 Dense depth map

What is stereo vision? Narrower formulation: given a calibrated binocular stereo pair, fuse it to produce a depth image Humans can do it Stereograms: Invented by Sir Charles Wheatstone, 1838

What is stereo vision? Narrower formulation: given a calibrated binocular stereo pair, fuse it to produce a depth image Humans can do it Autostereograms: www.magiceye.com

What is stereo vision? Narrower formulation: given a calibrated binocular stereo pair, fuse it to produce a depth image Humans can do it Autostereograms: www.magiceye.com

Application of stereo: Robotic exploration Nomad robot searches for meteorites in Antartica Real-time stereo on Mars

Application: View Interpolation Right Image

Application: View Interpolation Left Image

Application: View Interpolation Disparity

Application: View Interpolation

Basic stereo matching algorithm For each pixel in the first image Find corresponding epipolar line in the right image Examine all pixels on the epipolar line and pick the best match Triangulate the matches to get depth information Simplest case: epipolar lines are scanlines When does this happen?

Simplest Case: Parallel images Image planes of cameras are parallel to each other and to the baseline Camera centers are at same height Focal lengths are the same

Simplest Case: Parallel images Image planes of cameras are parallel to each other and to the baseline Camera centers are at same height Focal lengths are the same Then, epipolar lines fall along the horizontal scan lines of the images

Essential matrix for parallel images R t E E x x T ] [, 0 = = = = 0 0 0 0 0 0 0 ] [ T T R t E R = I t = (T, 0, 0) Epipolar constraint: = 0 0 0 ] [ x y x z y z a a a a a a a t x x

Essential matrix for parallel images R t E E x x T ] [, 0 = = = = 0 0 0 0 0 0 0 ] [ T T R t E Epipolar constraint: ( ) ( ) v T Tv Tv T v u v u T T v u = = = 0 0 1 0 1 0 0 0 0 0 0 0 1 R = I t = (T, 0, 0) The y-coordinates of corresponding points are the same! t x x

Depth from disparity X x x z f f O Baseline O B disparity = x x B f = z Disparity is inversely proportional to depth!

Stereo image rectification

Stereo image rectification reproject image planes onto a common plane parallel to the line between optical centers pixel motion is horizontal after this transformation two homographies (3x3 transform), one for each input image reprojection C. Loop and Z. Zhang. Computing Rectifying Homographies for Stereo Vision. IEEE Conf. Computer Vision and Pattern Recognition, 1999.

Rectification example

Basic stereo matching algorithm If necessary, rectify the two stereo images to transform epipolar lines into scanlines For each pixel x in the first image Find corresponding epipolar scanline in the right image Examine all pixels on the scanline and pick the best match x Compute disparity x-x and set depth(x) = 1/(x-x )

Correspondence problem Multiple matching hypotheses satisfy the epipolar constraint, but which one is correct?

Correspondence problem Let s make some assumptions to simplify the matching problem The baseline is relatively small (compared to the depth of scene points) Then most scene points are visible in both views Also, matching regions are similar in appearance

Correspondence problem Let s make some assumptions to simplify the matching problem The baseline is relatively small (compared to the depth of scene points) Then most scene points are visible in both views Also, matching regions are similar in appearance Additional constraints Uniqueness Ordering Continuity

Correspondence search with similarity constraint Left Right scanline Matching cost disparity Slide a window along the right scanline and compare contents of that window with the reference window in the left image Matching cost: SSD or normalized correlation

Correspondence search with similarity constraint Left Right scanline SSD

Correspondence search with similarity constraint Left Right scanline Norm. corr

Effect of window size Smaller window + More detail More noise Larger window + Smoother disparity maps Less detail W = 3 W = 20

The similarity constraint Corresponding regions in two images should be similar in appearance and non-corresponding regions should be different When will the similarity constraint fail?

Limitations of similarity constraint Textureless surfaces Occlusions, repetition Non-Lambertian surfaces, specularities

Results with window search Data Window-based matching Ground truth

Better methods exist... Graph cuts Ground truth Y. Boykov, O. Veksler, and R. Zabih, Fast Approximate Energy Minimization via Graph Cuts, PAMI 2001 For the latest and greatest: http://www.middlebury.edu/stereo/

How can we improve window-based matching? The similarity constraint is local (each reference window is matched independently) Need to enforce non-local correspondence constraints

Non-local constraints Uniqueness For any point in one image, there should be at most one matching point in the other image

Non-local constraints Uniqueness For any point in one image, there should be at most one matching point in the other image Ordering Corresponding points should be in the same order in both views

Non-local constraints Uniqueness For any point in one image, there should be at most one matching point in the other image Ordering Corresponding points should be in the same order in both views Ordering constraint doesn t hold

Non-local constraints Uniqueness For any point in one image, there should be at most one matching point in the other image Ordering Corresponding points should be in the same order in both views Smoothness We expect disparity values to change slowly (for the most part)

Scanline stereo Try to coherently match pixels on the entire scanline Different scanlines are still optimized independently Left image Right image

Shortest paths for scan-line stereo Left image I Right image I S left Right occlusion q t Left occlusion correspondence C occl s p S right C occl C corr Can be implemented with dynamic programming Ohta & Kanade 85, Cox et al. 96 Slide credit: Y. Boykov

Coherent stereo on 2D grid Scanline stereo generates streaking artifacts Can t use dynamic programming to find spatially coherent disparities/ correspondences on a 2D grid

Stereo matching as energy minimization I 1 I 2 D W 1 (i) W 2 (i+d(i)) D(i) MAP estimate of disparity image D: P D I, I ) P( I, I D) P( ) ( 1 2 1 2 D log P( D I1, I2) log P( I1, I 2 D) log P( D) E = α Edata ( I1, I2, D) + β Esmooth ( D) E ( W ( i) W ( i D( i ) 2 + data = 1 2 )) i ( D( i) D( j ) Esmooth = ρ ) neighbors i, j

Stereo matching as energy minimization I 1 I 2 D W 1 (i) W 2 (i+d(i)) D(i) E = α Edata ( I1, I2, D) + β Esmooth ( D) E ( W ( i) W ( i D( i ) 2 + data = 1 2 )) i Energy functions of this form can be minimized using graph cuts ( D( i) D( j ) Y. Boykov, O. Veksler, and R. Zabih, Fast Approximate Energy Minimization via Graph Cuts, PAMI 2001 Esmooth = ρ ) neighbors i, j

The role of the baseline Small Baseline Large Baseline Small baseline: large depth error Large baseline: difficult search problem Source: S. Seitz

Problem for wide baselines: Foreshortening Matching with fixed-size windows will fail! Possible solution: adaptively vary window size Another solution: model-based stereo

Model-based stereo Paul E. Debevec, Camillo J. Taylor, and Jitendra Malik. Modeling and Rendering Architecture from Photographs. SIGGRAPH 1996.

Model-based stereo key image offset image Paul E. Debevec, Camillo J. Taylor, and Jitendra Malik. Modeling and Rendering Architecture from Photographs. SIGGRAPH 1996.

Model-based stereo key image warped offset image displacement map Paul E. Debevec, Camillo J. Taylor, and Jitendra Malik. Modeling and Rendering Architecture from Photographs. SIGGRAPH 1996.

Active stereo with structured light Project structured light patterns onto the object simplifies the correspondence problem Allows us to use only one camera camera projector L. Zhang, B. Curless, and S. M. Seitz. Rapid Shape Acquisition Using Color Structured Light and Multi-pass Dynamic Programming. 3DPVT 2002

Active stereo with structured light L. Zhang, B. Curless, and S. M. Seitz. Rapid Shape Acquisition Using Color Structured Light and Multi-pass Dynamic Programming. 3DPVT 2002

Laser scanning Object Laser sheet Direction of travel CCD image plane Laser Cylindrical lens CCD Digital Michelangelo Project http://graphics.stanford.edu/projects/mich/ Optical triangulation Project a single stripe of laser light Scan it across the surface of the object This is a very precise version of structured light scanning Source: S. Seitz

Laser scanned models The Digital Michelangelo Project, Levoy et al. Source: S. Seitz

Laser scanned models The Digital Michelangelo Project, Levoy et al. Source: S. Seitz

Laser scanned models The Digital Michelangelo Project, Levoy et al. Source: S. Seitz

Laser scanned models The Digital Michelangelo Project, Levoy et al. Source: S. Seitz

Laser scanned models The Digital Michelangelo Project, Levoy et al. Source: S. Seitz