Stereo Vision Reading: Chapter 11 Stereo matching computes depth from two or more images Subproblems: –Calibrating camera positions. –Finding all corresponding.

Slides:



Advertisements
Similar presentations
Stereo Vision Reading: Chapter 11
Advertisements

Public Library, Stereoscopic Looking Room, Chicago, by Phillips, 1923.
Gratuitous Picture US Naval Artillery Rangefinder from World War I (1918)!!
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.
Recap from Previous Lecture Tone Mapping – Preserve local contrast or detail at the expense of large scale contrast. – Changing the brightness within.
Lecture 8: Stereo.
Stereo.
Last Time Pinhole camera model, projection
Stanford CS223B Computer Vision, Winter 2005 Lecture 6: Stereo 2 Sebastian Thrun, Stanford Rick Szeliski, Microsoft Hendrik Dahlkamp and Dan Morris, Stanford.
Stereo and Epipolar geometry
Stanford CS223B Computer Vision, Winter 2007 Lecture 6 Advanced Stereo Professors Sebastian Thrun and Jana Košecká CAs: Vaibhav Vaish and David Stavens.
CS6670: Computer Vision Noah Snavely Lecture 17: Stereo
Announcements Quiz Thursday Quiz Review Tomorrow: AV Williams 4424, 4pm. Practice Quiz handout.
Multiple View Geometry : Computational Photography Alexei Efros, CMU, Fall 2005 © Martin Quinn …with a lot of slides stolen from Steve Seitz and.
Computer Vision : CISC 4/689 Adaptation from: Prof. James M. Rehg, G.Tech.
Stanford CS223B Computer Vision, Winter 2006 Lecture 6 Stereo II Professor Sebastian Thrun CAs: Dan Maynes-Aminzade, Mitul Saha, Greg Corrado Stereo.
Stereopsis Mark Twain at Pool Table", no date, UCR Museum of Photography.
The plan for today Camera matrix
CS 223b 1 More on stereo and correspondence. CS 223b 2 =?f g Mostpopular For each window, match to closest window on epipolar line in other image. (slides.
3D from multiple views : Rendering and Image Processing Alexei Efros …with a lot of slides stolen from Steve Seitz and Jianbo Shi.
Stereo and Structure from Motion
Stereo Computation using Iterative Graph-Cuts
Matching Compare region of image to region of image. –We talked about this for stereo. –Important for motion. Epipolar constraint unknown. But motion small.
CSE473/573 – Stereo Correspondence
Announcements PS3 Due Thursday PS4 Available today, due 4/17. Quiz 2 4/24.
Stereo Guest Lecture by Li Zhang
Midterm went out on Tuesday (due next Tuesday) Project 3 out today Announcements.
Stereo Sebastian Thrun, Gary Bradski, Daniel Russakoff Stanford CS223B Computer Vision (with slides by James Rehg and.
COMP322/S2000/L271 Stereo Imaging Ref.V.S.Nalwa, A Guided Tour of Computer Vision, Addison Wesley, (ISBN ) Slides are adapted from CS641.
Multiple View Geometry : Computational Photography Alexei Efros, CMU, Fall 2006 © Martin Quinn …with a lot of slides stolen from Steve Seitz and.
Stereo matching “Stereo matching” is the correspondence problem –For a point in Image #1, where is the corresponding point in Image #2? C1C1 C2C2 ? ? C1C1.
3-D Scene u u’u’ Study the mathematical relations between corresponding image points. “Corresponding” means originated from the same 3D point. Objective.
Epipolar Geometry and Stereo Vision Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 04/12/11 Many slides adapted from Lana Lazebnik,
Computer Vision Spring ,-685 Instructor: S. Narasimhan WH 5409 T-R 10:30am – 11:50am Lecture #15.
Epipolar Geometry and Stereo Vision Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 03/05/15 Many slides adapted from Lana Lazebnik,
Camera Calibration & Stereo Reconstruction Jinxiang Chai.
Structure from images. Calibration Review: Pinhole Camera.
Lecture 12 Stereo Reconstruction II Lecture 12 Stereo Reconstruction II Mata kuliah: T Computer Vision Tahun: 2010.
Recap from Monday Image Warping – Coordinate transforms – Linear transforms expressed in matrix form – Inverse transforms useful when synthesizing images.
Epipolar geometry Epipolar Plane Baseline Epipoles Epipolar Lines
Stereo Dan Kong.
Stereo Readings Szeliski, Chapter 11 (through 11.5) Single image stereogram, by Niklas EenNiklas Een.
Stereo Many slides adapted from Steve Seitz.
Project 2 code & artifact due Friday Midterm out tomorrow (check your ), due next Fri Announcements TexPoint fonts used in EMF. Read the TexPoint.
Stereo Many slides adapted from Steve Seitz. Binocular stereo Given a calibrated binocular stereo pair, fuse it to produce a depth image image 1image.
Computer Vision, Robert Pless
Lec 22: Stereo CS4670 / 5670: Computer Vision Kavita Bala.
CSE 185 Introduction to Computer Vision Stereo. Taken at the same time or sequential in time stereo vision structure from motion optical flow Multiple.
Bahadir K. Gunturk1 Phase Correlation Bahadir K. Gunturk2 Phase Correlation Take cross correlation Take inverse Fourier transform  Location of the impulse.
Lecture 16: Stereo CS4670 / 5670: Computer Vision Noah Snavely Single image stereogram, by Niklas EenNiklas Een.
stereo Outline : Remind class of 3d geometry Introduction
Jochen Triesch, UC San Diego, 1 Stereo Outline: parallel camera axes convergent axes, epipolar geometry correspondence.
Solving for Stereo Correspondence Many slides drawn from Lana Lazebnik, UIUC.
Project 2 due today Project 3 out today Announcements TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAA.
Correspondence and Stereopsis Original notes by W. Correa. Figures from [Forsyth & Ponce] and [Trucco & Verri]
John Morris Stereo Vision (continued) Iolanthe returns to the Waitemata Harbour.
Stereo Matching Using Dynamic Programming
數位三維視訊 楊 家 輝 Jar-Ferr Yang 電腦與通信工程研究所 電機工程學系 國立成功大學 Institute of Computer and Communication Engineering Department of Electrical Engineering National Cheng.
Correspondence and Stereopsis. Introduction Disparity – Informally: difference between two pictures – Allows us to gain a strong sense of depth Stereopsis.
CSE 185 Introduction to Computer Vision Stereo 2.
Stereo CS4670 / 5670: Computer Vision Noah Snavely Single image stereogram, by Niklas EenNiklas Een.
Noah Snavely, Zhengqi Li
Epipolar Geometry and Stereo Vision
제 5 장 스테레오.
CS4670 / 5670: Computer Vision Kavita Bala Lec 27: Stereo.
EECS 274 Computer Vision Stereopsis.
Announcements Midterms graded (handed back at end of lecture)
Thanks to Richard Szeliski and George Bebis for the use of some slides
What have we learned so far?
Stereo vision Many slides adapted from Steve Seitz.
Presentation transcript:

Stereo Vision Reading: Chapter 11 Stereo matching computes depth from two or more images Subproblems: –Calibrating camera positions. –Finding all corresponding points (hardest part) –Computing depth or surfaces. – Slide credits for this chapter: David Jacobs, Frank Dellaert, Octavia Camps, Steve Seitz

Stereo vision Triangulate on two images of the same point to recover depth. –Feature matching across views –Calibrated cameras LeftRight baseline Matching correlation windows across scan lines depth

Correspondence It is fundamentally ambiguous, even with stereo constraints Ordering constraint……and its failure

The epipolar constraint Epipolar Constraint –Matching points lie along corresponding epipolar lines –Reduces correspondence problem to 1D search along conjugate epipolar lines –Greatly reduces cost and ambiguity of matching epipolar plane epipolar line Slide credit: Steve Seitz

Simplest Case: Rectified Images Image planes of cameras are parallel. Focal points are at same height. Focal lengths same. Then, epipolar lines fall along the horizontal scan lines of the images We will assume images have been rectified so that epipolar lines correspond to scan lines –Simplifies algorithms –Improves efficiency

We can always achieve this geometry with image rectification Image Reprojection –reproject image planes onto common plane parallel to line between optical centers Notice, only focal point of camera really matters (Seitz)

Correspondence: What should we match? Objects? Edges? Pixels? Collections of pixels?

Julesz: showed that recognition is not needed for stereo.

Correspondence: Epipolar constraint. The epipolar constraint helps, but much ambiguity remains.

Correspondence: Photometric constraint Same world point has same intensity in both images. –True for Lambertian fronto-parallel surfaces –Violations: Noise Specularity Foreshortening

Pixel matching For each epipolar line For each pixel in the left image compare with every pixel on same epipolar line in right image pick pixel with minimum match cost This leaves too much ambiguity, so: Improvement: match windows (Seitz)

Correspondence Using Correlation LeftRight SSD error disparity LeftRight scanline

Sum of Squared (Pixel) Differences LeftRight

Image Normalization Even when the cameras are identical models, there can be differences in gain and sensitivity. For these reason and more, it is a good idea to normalize the pixels in each window:

Images as Vectors LeftRight row 1 row 2 row 3 “Unwrap” image to form vector, using raster scan order Each window is a vector in an m 2 dimensional vector space. Normalization makes them unit length.

Image Metrics (Normalized) Sum of Squared Differences Normalized Correlation

Stereo Results Images courtesy of Point Grey Research

Window size W = 3W = 20 Effect of window size Some approaches have been developed to use an adaptive window size (try multiple sizes and select best match) (Seitz)

Stereo testing and comparisons Ground truthScene D. Scharstein and R. Szeliski. "A Taxonomy and Evaluation of Dense Two- Frame Stereo Correspondence Algorithms," International Journal of Computer Vision, 47 (2002), pp

Scharstein and Szeliski

Results with window correlation Window-based matching (best window size) Ground truth (Seitz)

Results with better method State of the art method: Graph cutsGround truth (Seitz)

Stereo Correspondences …… Left scanlineRight scanline

Stereo Correspondences …… Left scanlineRight scanline Match OcclusionDisocclusion

Search Over Correspondences Three cases: –Sequential – add cost of match (small if intensities agree) –Occluded – add cost of no match (large cost) –Disoccluded – add cost of no match (large cost) Left scanline Right scanline Occluded Pixels Disoccluded Pixels

Stereo Matching with Dynamic Programming Dynamic programming yields the optimal path through grid. This is the best set of matches that satisfy the ordering constraint Occluded Pixels Left scanline Dis-occluded Pixels Right scanline Start End

Dynamic Programming Efficient algorithm for solving sequential decision (optimal path) problems … How many paths through this trellis?

Dynamic Programming Suppose cost can be decomposed into stages: States:

Dynamic Programming Principle of Optimality for an n-stage assignment problem:

Dynamic Programming

Stereo Matching with Dynamic Programming Scan across grid computing optimal cost for each node given its upper-left neighbors. Backtrack from the terminal to get the optimal path. Occluded Pixels Left scanline Dis-occluded Pixels Right scanline Terminal

Stereo Matching with Dynamic Programming Scan across grid computing optimal cost for each node given its upper-left neighbors. Backtrack from the terminal to get the optimal path. Occluded Pixels Left scanline Dis-occluded Pixels Right scanline Terminal

Stereo Matching with Dynamic Programming Scan across grid computing optimal cost for each node given its upper-left neighbors. Backtrack from the terminal to get the optimal path. Occluded Pixels Left scanline Dis-occluded Pixels Right scanline Terminal

Computing Correspondence Another approach is to match edges rather than windows of pixels: Which method is better? –Edges tend to fail in dense texture (outdoors) –Correlation tends to fail in smooth featureless areas

Summary of different stereo methods Constraints: –Geometry, epipolar constraint. –Photometric: Brightness constancy, only partly true. –Ordering: only partly true. –Smoothness of objects: only partly true. Algorithms: –What you compare: points, regions, features? How you optimize: –Local greedy matches. –1D search. –2D search.