Computer Vision, Robert Pless

Slides:



Advertisements
Similar presentations
Lecture 11: Two-view geometry
Advertisements

Stereo Vision Reading: Chapter 11
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
CS6670: Computer Vision Noah Snavely Lecture 17: Stereo
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.
The Fundamental Matrix F
Stanford CS223B Computer Vision, Winter 2006 Lecture 6 Stereo II Professor Sebastian Thrun CAs: Dan Maynes-Aminzade, Mitul Saha, Greg Corrado Stereo.
Stereo Binocular Stereo Calibration (finish up) Next Time Motivation
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.
Computer Vision : CISC 4/689
Stereo and Structure from Motion
Stereo Computation using Iterative Graph-Cuts
Lecture 20: Two-view geometry CS6670: Computer Vision Noah Snavely.
Lec 21: Fundamental Matrix
CSE473/573 – Stereo Correspondence
Announcements PS3 Due Thursday PS4 Available today, due 4/17. Quiz 2 4/24.
Stereo Guest Lecture by Li Zhang
Project 1 artifact winners Project 2 questions Project 2 extra signup slots –Can take a second slot if you’d like Announcements.
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.
Multiple View Geometry : Computational Photography Alexei Efros, CMU, Fall 2006 © Martin Quinn …with a lot of slides stolen from Steve Seitz and.
3-D Scene u u’u’ Study the mathematical relations between corresponding image points. “Corresponding” means originated from the same 3D point. Objective.
Computer Vision Spring ,-685 Instructor: S. Narasimhan WH 5409 T-R 10:30am – 11:50am Lecture #15.
Stereo Readings Trucco & Verri, Chapter 7 –Read through 7.1, 7.2.1, 7.2.2, 7.3.1, 7.3.2, and 7.4, –The rest is optional. Single image stereogram,
Camera Calibration & Stereo Reconstruction Jinxiang Chai.
Announcements Project 1 artifact winners Project 2 questions
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 Vision Reading: Chapter 11 Stereo matching computes depth from two or more images Subproblems: –Calibrating camera positions. –Finding all corresponding.
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 Stereo Vision. Bahadir K. Gunturk2 Pinhole Camera.
Bahadir K. Gunturk1 Phase Correlation Bahadir K. Gunturk2 Phase Correlation Take cross correlation Take inverse Fourier transform  Location of the impulse.
Geometric Transformations
Lecture 16: Stereo CS4670 / 5670: Computer Vision Noah Snavely Single image stereogram, by Niklas EenNiklas Een.
stereo Outline : Remind class of 3d geometry Introduction
Digital Image Processing
776 Computer Vision Jan-Michael Frahm Spring 2012.
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.
Project 2 artifacts—vote now!! Project 3 questions? Start thinking about final project ideas, partners Announcements.
Stereo Matching Using Dynamic Programming
Project 3 code & artifact due Tuesday Final project proposals due noon Wed (by ) –One-page writeup (from project web page), specifying: »Your team.
Multiple View Geometry and Stereo. Overview Single camera geometry – Recap of Homogenous coordinates – Perspective projection model – Camera calibration.
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
제 5 장 스테레오.
CS4670 / 5670: Computer Vision Kavita Bala Lec 27: Stereo.
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?
Computer Vision Stereo Vision.
Stereo vision Many slides adapted from Steve Seitz.
Presentation transcript:

Computer Vision, Robert Pless our goal is to understand the process of stereo vision. Last time, we studied the “Essential” Matrix, which describe where a point in one image may appear in a second image. Computer Vision, Robert Pless

Computer Vision, Robert Pless Rectification Need to rotate each camera so the epipole is along the y-axis. (0,+/-1,0) Is this unique? Computer Vision, Robert Pless

Stereo Image Rectification Computer Vision, Robert Pless

Computer Vision, Robert Pless

Stereo Image Rectification reproject image planes onto a common plane parallel to the line between optical centers pixel motion is horizontal after this transformation C. Loop and Z. Zhang. Computing Rectifying Homographies for Stereo Vision. IEEE Conf. Computer Vision and Pattern Recognition, 1999. Computer Vision, Robert Pless

Computer Vision, Robert Pless Stereo Rectification Computer Vision, Robert Pless

Computer Vision, Robert Pless Rectification Computer Vision, Robert Pless

Basic Stereo Algorithm Improvement: match windows This should look familar... Correlation, Sum of Squared Difference (SSD), etc. For each pixel in the left image For each epipolar line compare with every pixel on same epipolar line in right image pick pixel with minimum match cost Computer Vision, Robert Pless

Computer Vision, Robert Pless Then, finally, P Z Disparity: xl xr f pl pr Ol Or b Then given Z, we can compute X and Y. b is the stereo baseline d measures the difference in retinal position between corresponding points Computer Vision, Robert Pless

Using these constraints we can use matching for stereo Improvement: match windows For each pixel in the left image For each epipolar line compare with every pixel on same epipolar line in right image pick pixel with minimum match cost This will never work, so: Computer Vision, Robert Pless

Correspondence: Photometric constraint Same world point has same intensity in both images. Lambertian fronto-parallel Issues: Noise Specularity Foreshortening Computer Vision, Robert Pless

Computer Vision, Robert Pless = ? f g Comparing Windows: Most popular For each window, match to closest window on epipolar line in other image. Computer Vision, Robert Pless

Computer Vision, Robert Pless Window size W = 3 W = 20 Effect of window size Better results with adaptive window T. Kanade and M. Okutomi, A Stereo Matching Algorithm with an Adaptive Window: Theory and Experiment,, Proc. International Conference on Robotics and Automation, 1991. D. Scharstein and R. Szeliski. Stereo matching with nonlinear diffusion. International Journal of Computer Vision, 28(2):155-174, July 1998 smaller window: more detail, more noise bigger window: less noise, more detail Computer Vision, Robert Pless

Computer Vision, Robert Pless Stereo results Data from University of Tsukuba Scene Ground truth Computer Vision, Robert Pless

Results with window correlation Window-based matching (best window size) Ground truth Computer Vision, Robert Pless

Results with better method State of the art method Boykov et al., Fast Approximate Energy Minimization via Graph Cuts, International Conference on Computer Vision, September 1999. Ground truth Computer Vision, Robert Pless

Computer Vision, Robert Pless Stereo Results Trinocular stereo system available from Point Gray Research for $5K (circa ’97) Computer Vision, Robert Pless

Computer Vision, Robert Pless Stereo Example [Szeliski & Kang ‘95] depth map 3D rendering input image (1 of 2) Computer Vision, Robert Pless

Computer Vision, Robert Pless Stereo Example left image right image depth map H. Tao et al. “Global matching criterion and color segmentation based stereo” Computer Vision, Robert Pless

Computer Vision, Robert Pless Stereo Example Computer Vision, Robert Pless H. Tao et al. “Global matching criterion and color segmentation based stereo”

What are these additional constraints? corresponding points along corresponding epipolar lines Computer Vision, Robert Pless

Order ! Once the epipolar geometry is known, we can increase constraints on potential correspondences further... corresponding points along corresponding epipolar lines 3d points giving rise to those images Computer Vision, Robert Pless

Order ! Out-of-order points indicate “seeing around” an object, and generally doesn’t occur ... corresponding points along corresponding epipolar lines 3d points giving rise to those images Can you see the dynamic programming problem here? Computer Vision, Robert Pless

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

Search Over Correspondences Occluded Pixels Left scanline Right scanline Dis-occluded Pixels Three cases: Sequential – cost of match Occluded – cost of no match Disoccluded – cost of no match Computer Vision, Robert Pless

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

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

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

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

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

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

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

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

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 Computer Vision, Robert Pless

Computing Correspondences Both methods fail for smooth surfaces There is currently no good solution to the correspondence problem Computer Vision, Robert Pless

History and Philosophy of human stereo Features vs. Pixels? Do we extract features prior to matching? Julesz-style Random Dot Stereogram Computer Vision, Robert Pless

Computer Vision, Robert Pless Human abilities Computer Vision, Robert Pless

Computer Vision, Robert Pless Human abilities Computer Vision, Robert Pless

Computer Vision, Robert Pless Assignment: Stereo In or Stereo Out (2 options) Write a program that takes as input a rectified stereo pair, and creates the 3D model of the scene. Show your program output on: http://svs.gsfc.nasa.gov/vis/a000000/a003500/a003531/ Write a program that takes as input a depth map, and creates an auto-stereogram that gives that depth map. Google search for “depth map” Computer Vision, Robert Pless