Stereo Class 7 Read Chapter 7 of tutorial Tsukuba dataset.

Slides:



Advertisements
Similar presentations
Stereo matching Class 7 Read Chapter 7 of tutorial Tsukuba dataset.
Advertisements

875: Recent Advances in Geometric Computer Vision & Recognition
Stereo Vision Reading: Chapter 11
Structured light and active ranging techniques Class 11.
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.
MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling.
Shape-from-X Class 11 Some slides from Shree Nayar. others.
Lecture 8: Stereo.
Stereo.
Last Time Pinhole camera model, projection
Scene Planes and Homographies class 16 Multiple View Geometry Comp Marc Pollefeys.
Stereo. STEREOPSIS Reading: Chapter 11. The Stereopsis Problem: Fusion and Reconstruction Human Stereopsis and Random Dot Stereograms Cooperative Algorithms.
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.
Computing F and rectification class 14 Multiple View Geometry Comp Marc Pollefeys.
Structured light and active ranging techniques Class 8.
Multi-view stereo Many slides adapted from S. Seitz.
Multiple View Geometry
Introduction to Computer Vision 3D Vision Topic 9 Stereo Vision (I) CMPSCI 591A/691A CMPSCI 570/670.
Stereopsis Mark Twain at Pool Table", no date, UCR Museum of Photography.
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
The plan for today Camera matrix
Computer Vision Optical Flow Marc Pollefeys COMP 256 Some slides and illustrations from L. Van Gool, T. Darell, B. Horn, Y. Weiss, P. Anandan, M. Black,
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.
Assignment 2 Compute F automatically from image pair (putative matches, 8-point, 7-point, iterative, RANSAC, guided matching) (due by Wednesday 19/03/03)
Binocular Stereo Philippos Mordohai University of North Carolina at Chapel Hill September 21, 2006.
CSE473/573 – Stereo Correspondence
Announcements PS3 Due Thursday PS4 Available today, due 4/17. Quiz 2 4/24.
Computer Vision Multiple View Geometry & Stereo Marc Pollefeys COMP 256.
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Multiple View Geometry : Computational Photography Alexei Efros, CMU, Fall 2006 © Martin Quinn …with a lot of slides stolen from Steve Seitz and.
Accurate, Dense and Robust Multi-View Stereopsis Yasutaka Furukawa and Jean Ponce Presented by Rahul Garg and Ryan Kaminsky.
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.
Computer Vision Optical Flow Marc Pollefeys COMP 256 Some slides and illustrations from L. Van Gool, T. Darell, B. Horn, Y. Weiss, P. Anandan, M. Black,
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.
Epipolar geometry Class 5. Geometric Computer Vision course schedule (tentative) LectureExercise Sept 16Introduction- Sept 23Geometry & Camera modelCamera.
Computer Vision Spring ,-685 Instructor: S. Narasimhan WH 5409 T-R 10:30am – 11:50am Lecture #15.
Structured light and active ranging techniques Class 8
Structure from images. Calibration Review: Pinhole Camera.
Stereo Vision Reading: Chapter 11 Stereo matching computes depth from two or more images Subproblems: –Calibrating camera positions. –Finding all corresponding.
Geometry 3: Stereo Reconstruction Introduction to Computer Vision Ronen Basri Weizmann Institute of Science.
Stereo Vision ECE 847: Digital Image Processing Stan Birchfield Clemson University.
Stereo Many slides adapted from Steve Seitz.
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.
1 Real-Time Stereo-Matching for Micro Air Vehicles Pascal Dufour Master Thesis Presentation.
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.
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.
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.
John Morris These slides were adapted from a set of lectures written by Mircea Nicolescu, University of Nevada at Reno Stereo Vision Iolanthe in the Bay.
Energy minimization Another global approach to improve quality of correspondences Assumption: disparities vary (mostly) smoothly Minimize energy function:
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.
Stereo Vision ECE 847: Digital Image Processing Stan Birchfield
CS 6501: 3D Reconstruction and Understanding Stereo Cameras
Geometry 3: Stereo Reconstruction
EECS 274 Computer Vision Stereopsis.
What have we learned so far?
Chapter 11: Stereopsis Stereopsis: Fusing the pictures taken by two cameras and exploiting the difference (or disparity) between them to obtain the depth.
Stereo vision Many slides adapted from Steve Seitz.
Presentation transcript:

Stereo Class 7 Read Chapter 7 of tutorial Tsukuba dataset

Geometric Computer Vision course schedule (tentative) LectureExercise Sept 16Introduction- Sept 23Geometry & Camera modelCamera calibration Sept 30Single View Metrology (Changchang Wu) Measuring in images Oct. 7Feature Tracking/MatchingCorrespondence computation Oct. 14Epipolar GeometryF-matrix computation Oct. 21Shape-from-SilhouettesVisual-hull computation Oct. 28Stereo matchingpapers Nov. 4Structure from motion and visual SLAMProject proposals Nov. 11Multi-view geometry and self-calibration Papers Nov. 18Shape-from-XPapers Nov. 25Structured light and active range sensing Papers Dec. 23D modeling, registration and range/depth fusion (Christopher Zach?) Papers Dec. 9Appearance modeling and image- based rendering Papers Dec. 16Final project presentations

Stereo Standard stereo geometry Stereo matching Aggregation Optimization (1D, 2D) General camera configuration Rectifications Plane-sweep Multi-view stereo

Real-time stereo on GPU Computes Sum-of-Square-Differences (use pixelshader) Hardware mip-map generation for aggregation over window Trade-off between small and large support window (Yang and Pollefeys, CVPR2003) 290M disparity hypothesis/sec (Radeon9800pro) e.g. 512x512x36disparities at 30Hz GPU is great for vision too!

Stereo

6 Challenges Ill-posed inverse problem Recover 3-D structure from 2-D information Difficulties Uniform regions Half-occluded pixels

7 Pixel Dissimilarity Absolute difference of intensities c=|I1(x,y)- I2(x-d,y)| Interval matching [Birchfield 98] Considers sensor integration Represents pixels as intervals

8 Alternative Dissimilarity Measures Rank and Census transforms [Zabih ECCV94] Rank transform: Define window containing R pixels around each pixel Count the number of pixels with lower intensities than center pixel in the window Replace intensity with rank (0..R-1) Compute SAD on rank-transformed images Census transform: Use bit string, defined by neighbors, instead of scalar rank Robust against illumination changes

9 Rank and Census Transform Results Noise free, random dot stereograms Different gain and bias

10 Systematic Errors of Area-based Stereo Ambiguous matches in textureless regions Surface over-extension [Okutomi IJCV02]

11 Surface Over-extension Expected value of E[(x-y) 2 ] for x in left and y in right image is: Case A: σ F 2 + σ B 2 +(μ F - μ B ) 2 for w/2-λ pixels in each row Case B: 2 σ B 2 for w/2+λ pixels in each row Right image Left image Disparity of back surface

12 Surface Over-extension Discontinuity perpendicular to epipolar lines Discontinuity parallel to epipolar lines Right image Left image Disparity of back surface

13 Over-extension and shrinkage Turns out that: for discontinuities perpendicular to epipolar lines And: for discontinuities parallel to epipolar lines

14 Random Dot Stereogram Experiments

15 Random Dot Stereogram Experiments

16 Offset Windows  Equivalent to using min nearby cost  Result: loss of depth accuracy

17 Discontinuity Detection Use offset windows only where appropriate Bi-modal distribution of SSD Pixel of interest different than mode within window

18 Compact Windows [Veksler CVPR03]: Adapt windows size based on: Average matching error per pixel Variance of matching error Window size (to bias towards larger windows) Pick window that minimizes cost

19 Integral Image Sum of shaded part Compute an integral image for pixel dissimilarity at each possible disparity AC DB Shaded area = A+D-B-C Independent of size

20 Results using Compact Windows

21 Rod-shaped filters Instead of square windows aggregate cost in rod-shaped shiftable windows [Kim CVPR05] Search for one that minimizes the cost (assume that it is an iso-disparity curve) Typically use 36 orientations

22 Locally Adaptive Support Apply weights to contributions of neighboring pixels according to similarity and proximity [Yoon CVPR05]

23 Locally Adaptive Support Similarity in CIE Lab color space: Proximity: Euclidean distance Weights:

24 Locally Adaptive Support: Results Locally Adaptive Support

25 Locally Adaptive Support: Results

Occlusions (Slide from Pascal Fua)

Exploiting scene constraints

Ordering constraint , , , , surface slice surface as a path occlusion right occlusion left

Uniqueness constraint In an image pair each pixel has at most one corresponding pixel In general one corresponding pixel In case of occlusion there is none

Disparity constraint surface slice surface as a path bounding box disparity band use reconstructed features to determine bounding box constant disparity surfaces

Stereo matching Optimal path (dynamic programming ) Similarity measure (SSD or NCC) Constraints epipolar ordering uniqueness disparity limit Trade-off Matching cost (data) Discontinuities (prior) Consider all paths that satisfy the constraints pick best using dynamic programming

Hierarchical stereo matching Downsampling (Gaussian pyramid) Disparity propagation Allows faster computation Deals with large disparity ranges

Disparity map image I(x,y) image I´(x´,y´) Disparity map D(x,y) (x´,y´)=(x+D(x,y),y)

Example: reconstruct image from neighboring images

36 Semi-global optimization Optimize: E=E data +E(|D p -D q |=1)+E(|D p -D q |>1) [Hirshmüller CVPR05] Use mutual information as cost NP-hard using graph cuts or belief propagation (2-D optimization) Instead do dynamic programming along many directions Don’t use visibility or ordering constraints Enforce uniqueness Add costs

37 Results of Semi-global optimization

38 Results of Semi-global optimization No. 1 overall in Middlebury evaluation (at 0.5 error threshold as of Sep. 2006)

Energy minimization (Slide from Pascal Fua)

Graph Cut (Slide from Pascal Fua) (general formulation requires multi-way cut!)

(Boykov et al ICCV‘99) (Roy and Cox ICCV‘98) Simplified graph cut

Belief Propagation per pixel +left +right +up +down subsequent iterations (adapted from J. Coughlan slides) first iteration Belief of one node about another gets propagated through messages (full pdf, not just most likely state)

Stereo matching with general camera configuration

Image pair rectification

Planar rectification Bring two views to standard stereo setup (moves epipole to  ) (not possible when in/close to image) ~ image size (calibrated) Distortion minimization (uncalibrated)

Polar re-parameterization around epipoles Requires only (oriented) epipolar geometry Preserve length of epipolar lines Choose  so that no pixels are compressed original image rectified image Polar rectification (Pollefeys et al. ICCV’99) Works for all relative motions Guarantees minimal image size

polar rectification planar rectification original image pair

Example: Béguinage of Leuven Does not work with standard Homography-based approaches

Example: Béguinage of Leuven

General iso-disparity surfaces ( Pollefeys and Sinha, ECCV’04) Example: polar rectification preserves disp. Application: Active vision Also interesting relation to human horopter

Stereo camera configurations (Slide from Pascal Fua)

Multi-camera configurations Okutami and Kanade (illustration from Pascal Fua)

Multi-baseline, multi-resolution At each depth, baseline and resolution selected proportional to that depth Allows to keep depth accuracy constant! Variable Baseline/Resolution Stereo (Gallup et al., CVPR08)

Variable Baseline/Resolution Stereo: comparison

Multi-view depth fusion Compute depth for every pixel of reference image Triangulation Use multiple views Up- and down sequence Use Kalman filter (Koch, Pollefeys and Van Gool. ECCV‘98) Allows to compute robust texture

Plane-sweep multi-view matching Simple algorithm for multiple cameras no rectification necessary doesn’t deal with occlusions Collins’96; Roy and Cox’98 (GC); Yang et al.’02/’03 (GPU)

Next class: structured light and active scanning