CS 6501: 3D Reconstruction and Understanding Stereo Cameras

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)!!
Lecture 8: Stereo.
Stereo.
Last Time Pinhole camera model, projection
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.
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.
CSCE 641 Computer Graphics: Image-based Modeling Jinxiang Chai.
Stereo and Structure from Motion
Lecture 20: Two-view geometry CS6670: Computer Vision Noah Snavely.
Lecture 11: Stereo and optical flow CS6670: Computer Vision Noah Snavely.
May 2004Stereo1 Introduction to Computer Vision CS / ECE 181B Tuesday, May 11, 2004  Multiple view geometry and stereo  Handout #6 available (check with.
Lec 21: Fundamental Matrix
CSE473/573 – Stereo Correspondence
Announcements PS3 Due Thursday PS4 Available today, due 4/17. Quiz 2 4/24.
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.
Stereo matching Class 10 Read Chapter 7 Tsukuba dataset.
3-D Scene u u’u’ Study the mathematical relations between corresponding image points. “Corresponding” means originated from the same 3D point. Objective.
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry Topics: Basics of projective geometry Points and hyperplanes in projective space Homography.
Computer Vision Spring ,-685 Instructor: S. Narasimhan WH 5409 T-R 10:30am – 11:50am Lecture #15.
Automatic Camera Calibration
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.
CS654: Digital Image Analysis Lecture 8: Stereo Imaging.
Stereo Readings Szeliski, Chapter 11 (through 11.5) Single image stereogram, by Niklas EenNiklas Een.
Computer Vision, Robert Pless
Computer Vision Stereo Vision. Bahadir K. Gunturk2 Pinhole Camera.
Computer Vision Lecture #10 Hossam Abdelmunim 1 & Aly A. Farag 2 1 Computer & Systems Engineering Department, Ain Shams University, Cairo, Egypt 2 Electerical.
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
Digital Image Processing
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry Topics: Basics of projective geometry Points and hyperplanes in projective space Homography.
Solving for Stereo Correspondence Many slides drawn from Lana Lazebnik, UIUC.
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry Topics: Basics of projective geometry Points and hyperplanes in projective space Homography.
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.
Advanced Computer Vision Chapter 11 Stereo Correspondence Presented by: 蘇唯誠 指導教授 : 傅楸善 博士.
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.
Multiview geometry ECE 847: Digital Image Processing Stan Birchfield Clemson University.
Stereo CS4670 / 5670: Computer Vision Noah Snavely Single image stereogram, by Niklas EenNiklas Een.
Noah Snavely, Zhengqi Li
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry
제 5 장 스테레오.
Semi-Global Matching with self-adjusting penalties
CS 4501: Introduction to Computer Vision Sparse Feature Detectors: Harris Corner, Difference of Gaussian Connelly Barnes Slides from Jason Lawrence, Fei.
CS4670 / 5670: Computer Vision Kavita Bala Lec 27: Stereo.
Motion and Optical Flow
Stereo and Structure from Motion
What have we learned so far?
Two-view geometry.
Multiple View Geometry for Robotics
Binocular Stereo Vision
Computer Vision Stereo Vision.
Course 6 Stereo.
Chapter 11: Stereopsis Stereopsis: Fusing the pictures taken by two cameras and exploiting the difference (or disparity) between them to obtain the depth.
Presentation transcript:

CS 6501: 3D Reconstruction and Understanding Stereo Cameras Connelly Barnes Slides from Fei Fei Li, Juan Carlos Niebles, Jason Lawrence, Szymon Rusinkiewicz, David Dobkin, Adam Finkelstein, Tom Funkhouser

Outline Stereo cameras Epipolar geometry Parallel stereo cameras and rectification Structure from motion: Photo Tourism Demos

Stereo Matching

Normalized coordinates (3D ray): Pi = [Ri ti] = K-1 pi Slide from Jason Lawrence Pixel coordinates (projected onto camera): pi = K [Ri ti] P

If we do not know the depth along ray P1, Slide from Jason Lawrence If we do not know the depth along ray P1, then there are many possible projections onto camera 2.

Slide from Jason Lawrence

Epipolar plane Slide from Jason Lawrence

Slide from Jason Lawrence

Work in normalized coordinates P1, P2 Assumptions: Work in normalized coordinates P1, P2 Without loss of generality, assume camera 1 is at origin, with rotation matrix I. Slide from Jason Lawrence

Slide from Jason Lawrence

Slide from Jason Lawrence

Slide from Jason Lawrence

Assumes normalized (image) coordinates: Measure coordinates in scene/world coordinate units (e.g. mm) Relative to the pinhole camera center. Slide from Jason Lawrence

Slide from Jason Lawrence

Outline Camera calibration Overview of 3D vision (separate slide deck) Camera demos Stereo cameras Epipolar geometry Parallel stereo cameras and rectification Structure from motion: Photo Tourism

Parallel Stereo Cameras

Parallel Stereo Cameras

Parallel Stereo Cameras: Disparity Disparity: displacement in pixels of the apparent motion of a 3D scene point as we switch between the left and right view of a stereo camera. Examples from Middlebury stereo dataset Discussion: how might this disparity information be useful?

Parallel Stereo Cameras: Depth from Disparity u u' Bf

Stereo Correspondence Problem Usually assume rectified (parallel, upright) cameras. For each pixel in the left camera image, find its disparity (x pixels displacement of the corresponding point in the right image). Dense matching Edges, corners: easier. Challenge: flat regions. How might we determine where a flat region went from a left image to a right image?

Stereo Correspondence Problem Typical algorithmic approach described in Szeliski 11.3: Compute matching cost Aggregate matching costs Compute/optimize disparities (Optional) refine disparities

Stereo Correspondence Problem From Scharstein and Szeliski 2002

Stereo Correspondence: Matching Cost Disparity Space Image (DSI): A 3D array that measures at (x, y, d) the cost of assigning disparity d to pixel (x, y). Typically a simple measure of dissimilarity such as sum of squared difference (SSD), or sum of absolute difference (SAD).

Stereo Correspondence: Matching Cost Disparity Space Image (DSI): A 3D array that measures at (x, y, d) the cost of assigning disparity d to pixel (x, y). From Scharstein and Szeliski 2002 (x, y) slice through the DSI for d = 10

Stereo Correspondence: Matching Cost Disparity Space Image (DSI): A 3D array that measures at (x, y, d) the cost of assigning disparity d to pixel (x, y). From Scharstein and Szeliski 2002 (x, y) slice through the DSI for d = 16

Stereo Correspondence: Matching Cost Disparity Space Image (DSI): A 3D array that measures at (x, y, d) the cost of assigning disparity d to pixel (x, y). From Scharstein and Szeliski 2002 (x, y) slice through the DSI for d = 21

Stereo Correspondence: Matching Cost Disparity Space Image (DSI): A 3D array that measures at (x, y, d) the cost of assigning disparity d to pixel (x, y). From Scharstein and Szeliski 2002 (x, d) slice through the DSI

Stereo Correspondence Problem From Scharstein and Szeliski 2002

Stereo Correspondence: Aggregation Disparity Space Image (DSI): A 3D array that measures at (x, y, d) the cost of assigning disparity d to pixel (x, y). Convolve DSI with 2D or 3D filter to aggregate information. Simple example: convolve with 2D Gaussian with given σ Larger window size: better handling of flat regions Smaller window size: better detail, depth discontinuities Compute disparities: Choose at each pixel disparity d with min cost after aggregation More advanced methods reviewed in Szeliski 11.3, 11.4

Stereo Correspondence: Window Size (or σ) Nonlinear Diffusion 3 pixel window 20 pixel window From Scharstein and Szeliski, 1996

Stereo Rectification

Stereo Rectification

Stereo Rectification

Applications Depth from Stereo (YouTube) 3D Reconstruction from Stereo (YouTube)

Implementation in OpenCV OpenCV includes: Camera calibration Epipolar geometry Stereo rectification Finding stereo correspondences using block matching …

Outline Stereo cameras Epipolar geometry Parallel stereo cameras and rectification Structure from motion: Photo Tourism (separate slide deck) Demos

Outline Stereo cameras Epipolar geometry Parallel stereo cameras and rectification Structure from motion: Photo Tourism Demos

Demos Structure from Motion: Video: 3D reconstruction with VisualSFM and MeshLab Blog post: comparing open source tools for 3D reconstruction Blog post: 3D reconstruction with VisualSFM and MeshLab

Camera Demos Demo of stereo camera (StereoLabs ZED camera) Demo of structured light depth sensor (Kinect) What it looks like in the infrared spectrum Demonstrate depth discontinuities / occlusions