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

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
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
Stereo Binocular Stereo Calibration (finish up) Next Time Motivation
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 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
Computer Vision : CISC 4/689 CREDITS Rasmussen, UBC (Jim Little), Seitz (U. of Wash.), Camps (Penn. State), UC, UMD (Jacobs), UNC, CUNY.
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.
Multiple View Geometry : Computational Photography Alexei Efros, CMU, Fall 2006 © Martin Quinn …with a lot of slides stolen from Steve Seitz and.
VZvZ r t b image cross ratio Measuring height B (bottom of object) T (top of object) R (reference point) ground plane H C scene cross ratio  scene points.
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.
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, 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.
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.
A global approach Finding correspondence between a pair of epipolar lines for all pixels simultaneously Local method: no guarantee we will have one to.
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.
Project 2 artifacts—vote now!! Project 3 questions? Start thinking about final project ideas, partners Announcements.
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.
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
제 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:

Stereopsis

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

Woman getting eye exam during immigration procedure at Ellis Island, c , UCR Museum of Phography

Why Stereo Vision? 2D images project 3D points into 2D: O P’=Q’PQ 3D Points on the same viewing line have the same 2D image: –2D imaging results in depth information loss

Stereo Assumes (two) cameras. Known positions. Recover depth.

Recovering Depth Information: O2O2O2O2 P’ 2 =Q’ 2 P Q O1O1O1O1 P’ 1 Q’ 1 Depth can be recovered with two images and triangulation.

Finding Correspondences: O2O2O2O2 P’ 2 Q’ 2 P Q O1O1O1O1 P’ 1 Q’ 1

Finding Correspondences:

3D Reconstruction O2O2O2O2 P’ 2 P O1O1O1O1 P’ 1 We must solve the correspondence problem first!

Stereo correspondence Determine Pixel Correspondence –Pairs of points that correspond to same scene point Epipolar Constraint –Reduces correspondence problem to 1D search along conjugate epipolar lines epipolar plane epipolar line (Seitz)

Simplest Case Image planes of cameras are parallel. Focal points are at same height. Focal lengths same. Then, epipolar lines are horizontal scan lines.

Epipolar Geometry for Parallel Cameras f f T P OlOlOlOl OrOrOrOr elelelel erererer Epipoles are at infinite Epipolar lines are parallel to the baseline

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)

Let’s discuss reconstruction with this geometry before correspondence, because it’s much easier. blackboard OlOlOlOl OrOrOrOr P plplplpl prprprpr T Z xlxlxlxl xrxrxrxr f T is the stereo baseline d measures the difference in retinal position between corresponding points Then given Z, we can compute X and Y. Disparity:

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

Julesz: had huge impact because it showed that recognition not needed for stereo.

Correspondence: Epipolar constraint.

Correspondence Problem Two classes of algorithms: –Correlation-based algorithms Produce a DENSE set of correspondences –Feature-based algorithms Produce a SPARSE set of correspondences

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

Using these constraints we can use matching for stereo 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 will never work, so: Improvement: match windows

Comparing Windows: =?f g Mostpopular For each window, match to closest window on epipolar line in other image.

It is closely related to the SSD: Maximize Cross correlation Minimize Sum of Squared Differences

Window size W = 3W = 20 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.A Stereo Matching Algorithm with an Adaptive Window: Theory and Experiment D. Scharstein and R. Szeliski. Stereo matching with nonlinear diffusion. International Journal of Computer Vision, 28(2): , July 1998Stereo matching with nonlinear diffusion Effect of window size (Seitz)

Stereo results Ground truthScene –Data from University of Tsukuba (Seitz)

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

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

Ordering constraint Usually, order of points in two images is same. Is this always true?

This enables dynamic programming. If we match pixel i in image 1 to pixel j in image 2, no matches that follow will affect which are the best preceding matches. Example with pixels (a la Cox et al.).

Other constraints Smoothness: disparity usually doesn’t change too quickly. –Unfortunately, this makes the problem 2D again. –Solved with a host of graph algorithms, Markov Random Fields, Belief Propagation, …. Uniqueness constraint (each feature can at most have one match Occlusion and disparity are connected.

Feature-based Methods Conceptually very similar to Correlation- based methods, but: –They only search for correspondences of a sparse set of image features. –Correspondences are given by the most similar feature pairs. –Similarity measure must be adapted to the type of feature used.

Feature-based Methods: Features most commonly used: –Corners Similarity measured in terms of: –surrounding gray values (SSD, Cross-correlation) –location –Edges, Lines Similarity measured in terms of: –orientation –contrast –coordinates of edge or line’s midpoint –length of line

Example: Comparing lines l l and l r : line lengths  l and  r : line orientations (x l,y l ) and (x r,y r ): midpoints c l and c r : average contrast along lines  l    m  c : weights controlling influence The more similar the lines, the larger S is!

Summary First, we understand constraints that make the problem solvable. –Some are hard, like epipolar constraint. Ordering isn’t a hard constraint, but most useful when treated like one. –Some are soft, like pixel intensities are similar, disparities usually change slowly. Then we find optimization method. –Which ones we can use depend on which constraints we pick.