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

Similar documents
Stereo. Many slides adapted from Steve Seitz

Stereo vision. Many slides adapted from Steve Seitz

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

BIL Computer Vision Apr 16, 2014

Image Based Reconstruction II

CS5670: Computer Vision

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

Lecture 9 & 10: Stereo Vision

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

Epipolar Geometry and Stereo Vision

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

Stereo: Disparity and Matching

Epipolar Geometry and Stereo Vision

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

Chaplin, Modern Times, 1936

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

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

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

Recap from Previous Lecture

What have we leaned so far?

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

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

Lecture 10: Multi view geometry

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

Introduction à la vision artificielle X

Final project bits and pieces

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

Multiple View Geometry

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

Epipolar Geometry and Stereo Vision

Computer Vision Lecture 17

Computer Vision Lecture 17

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

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

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

Multiple View Geometry

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

Cameras and Stereo CSE 455. Linda Shapiro

Lecture 10: Multi-view geometry

Lecture 6 Stereo Systems Multi-view geometry

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

Epipolar Geometry and Stereo Vision

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

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

Stereo and structured light

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

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

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

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

Mosaics wrapup & Stereo

Lecture 14: Computer Vision

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

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

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

Stereo Vision Computer Vision (Kris Kitani) Carnegie Mellon University

A virtual tour of free viewpoint rendering

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

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

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

3D Photography: Active Ranging, Structured Light, ICP

Think-Pair-Share. What visual or physiological cues help us to perceive 3D shape and depth?

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

EE795: Computer Vision and Intelligent Systems

Dense 3D Reconstruction. Christiano Gava

Fundamentals of Stereo Vision Michael Bleyer LVA Stereo Vision

3D Photography: Stereo

CS6670: Computer Vision

Dense 3D Reconstruction. Christiano Gava

Rectification and Disparity

Lecture 8 Active stereo & Volumetric stereo

Lecture 10 Dense 3D Reconstruction

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

3D Scanning. Qixing Huang Feb. 9 th Slide Credit: Yasutaka Furukawa

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

Epipolar geometry contd.

Perception II: Pinhole camera and Stereo Vision

Geometric Reconstruction Dense reconstruction of scene geometry

Stereo and Epipolar geometry

Lecture 14: Basic Multi-View Geometry

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

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

EE795: Computer Vision and Intelligent Systems

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

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

3D Photography: Stereo Matching

Introduction to. Stereo Vision. Roland Brockers

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

Camera Drones Lecture 3 3D data generation

CEng Computational Vision

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

Step-by-Step Model Buidling

COMP 558 lecture 22 Dec. 1, 2010

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

Stereo Matching.

Complex Sensors: Cameras, Visual Sensing. The Robotics Primer (Ch. 9) ECE 497: Introduction to Mobile Robotics -Visual Sensors

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

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

Stereo imaging ideal geometry

Spatial track: range acquisition modeling

Rectification. Dr. Gerhard Roth

Transcription:

Binocular Stereo

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

Binocular stereo Given a calibrated binocular stereo pair, fuse it to produce a depth image image 1 image 2 Dense depth map

Binocular stereo Given a calibrated binocular stereo pair, fuse it to produce a depth image Humans can do it Stereograms: Invented by Sir Charles Wheatstone, 1838

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

Mark Twain at Pool Table", no date, UCR Museum of Photography

Binocular stereo Given a calibrated binocular stereo pair, fuse it to produce a depth image Humans can do it Autostereograms: www.magiceye.com

Binocular stereo Given a calibrated binocular stereo pair, fuse it to produce a depth image Humans can do it Autostereograms: www.magiceye.com

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 corresponding 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 Epipolar constraint: x R = I t = (T, 0, 0) x t The y-coordinates of corresponding points are the same!

Depth from disparity X x x z f f O Baseline O B 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

Correspondence search 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 Left Right scanline SSD

Correspondence search Left Right scanline Norm. corr

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) = B*f/(x-x )

Failures of correspondence search Textureless surfaces Occlusions, repetition Non-Lambertian surfaces, specularities

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

Results with window search Data Window-based matching Ground truth

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

Stereo as energy minimization Find disparity map d that minimizes an energy function Simple pixel / window matching = SSD distance between windows I(x, y) and J(x + d(x,y), y)

Stereo as energy minimization I(x, y) J(x, y) y = 141 d x C(x, y, d); the disparity space image (DSI)

Stereo as energy minimization y = 141 d x Simple pixel / window matching: choose the minimum of each column in the DSI independently:

Stereo as energy minimization y = 141 d x

Stereo as energy minimization y = 141 d x

Stereo as energy minimization y = 141 d x

Stereo as energy minimization d x 38

Stereo as energy minimization Better objective function { match cost { smoothness cost Want each pixel to find a good match in the other image Adjacent pixels should (usually) move about the same amount

Stereo as energy minimization match cost:

Stereo as energy minimization match cost: smoothness cost: : set of neighboring pixels Left and right

Smoothness cost How do we choose V? L 1 distance Potts model

Stereo as energy minimization y = 141 d x

Stereo as energy minimization y = 141 d x

Stereo as energy minimization y = 141 d x

Dynamic programming Can minimize this independently per scanline using dynamic programming (DP) : minimum cost of solution such that d(x,y) = d

Dynamic programming y = 141 d x

Dynamic programming y = 141 d x Cost of optimal path from the left

Dynamic programming y = 141 d x How to compute for this pixel?

Dynamic programming y = 141 d x How to compute for this pixel? Only 3 ways to get here...

Dynamic programming y = 141 d x This cost is...

Dynamic programming y = 141 d x This cost is... + + D Ed Es

Dynamic programming y = 141 d x Fill D all the way to the right

Dynamic programming y = 141 d x Pick the best one from the right column

Dynamic programming y = 141 d x Back track...

Dynamic programming y = 141 d x Back track...

Stereo as energy minimization y = 141 d x

Dynamic Programming

Dynamic programming is optimal 59

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 as energy minimization match cost: smoothness cost: : set of neighboring pixels Left and right

Stereo as energy minimization match cost: smoothness cost: : set of neighboring pixels 4-connected neighborhood

Pixelwise

Pixelwise

Pixelwise -> Scanline wise y = 141

Pixelwise -> Scanline wise y = 141

Pixelwise -> Scanline wise y = 141

Pixelwise

Pixelwise

Stereo as energy minimization match cost: smoothness cost: : set of neighboring pixels 4-connected neighborhood 8-connected neighborhood

Smoothness cost How do we choose V? L 1 distance

Stereo matching as energy minimization I 1 I 2 D Graph-cuts can be used to minimize such energy Y. Boykov, O. Veksler, and R. Zabih, Fast Approximate Energy Minimization via Graph Cuts, PAMI 2001

Same formulation with more images Change label from disparity to depth Change Ed(d) by using more images...

Same formulation with more images Change label from disparity to depth Change Ed(d) by using more images

Same formulation with more images Change label from disparity to depth Change Ed(d) by using more images...

Same formulation with more images Change label from disparity to depth Change Ed(d) by using more images Cost of assigning this depth comes from.........

With more images, engineering and tricks 77

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

Active stereo with structured light http://en.wikipedia.org/wiki/structured-light_3d_scanner

Kinect: Structured infrared light http://bbzippo.wordpress.com/2010/11/28/kinect-in-infrared/

Kinect fushion 82

Laser scanning Digital Michelangelo Project Levoy et al. 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 1.0 mm resolution (56 million triangles) The Digital Michelangelo Project, Levoy et al. Source: S. Seitz

Aligning range images A single range scan is not sufficient to describe a complex surface Need techniques to register multiple range images B. Curless and M. Levoy, A Volumetric Method for Building Complex Models from Range Images, SIGGRAPH 1996

Aligning range images A single range scan is not sufficient to describe a complex surface Need techniques to register multiple range images which brings us to multi-view stereo