Stereo matching. Francesco Isgrò. 3D Reconstruction and Stereo p.1/21

Similar documents
Stereo Vision. MAN-522 Computer Vision

Step-by-Step Model Buidling

55:148 Digital Image Processing Chapter 11 3D Vision, Geometry

Dense 3D Reconstruction. Christiano Gava

Lecture 14: Basic Multi-View Geometry

Multiple View Geometry

Reminder: Lecture 20: The Eight-Point Algorithm. Essential/Fundamental Matrix. E/F Matrix Summary. Computing F. Computing F from Point Matches

Rectification and Distortion Correction

Machine vision. Summary # 11: Stereo vision and epipolar geometry. u l = λx. v l = λy

Dense 3D Reconstruction. Christiano Gava

55:148 Digital Image Processing Chapter 11 3D Vision, Geometry

Depth from two cameras: stereopsis

Stereo vision. Many slides adapted from Steve Seitz

Rectification. Dr. Gerhard Roth

Depth from two cameras: stereopsis

CHAPTER 3 DISPARITY AND DEPTH MAP COMPUTATION

Lecture 6 Stereo Systems Multi-view geometry

Image Rectification (Stereo) (New book: 7.2.1, old book: 11.1)

Stereo Vision Computer Vision (Kris Kitani) Carnegie Mellon University

Assignment 2: Stereo and 3D Reconstruction from Disparity

BIL Computer Vision Apr 16, 2014

Rectification and Disparity

Robert Collins CSE486, Penn State. Lecture 09: Stereo Algorithms

CS 787: Assignment 4, Stereo Vision: Block Matching and Dynamic Programming Due: 12:00noon, Fri. Mar. 30, 2007.

Stereo imaging ideal geometry

Lecture'9'&'10:'' Stereo'Vision'

Fundamentals of Stereo Vision Michael Bleyer LVA Stereo Vision

Epipolar Geometry and Stereo Vision

Epipolar Geometry and Stereo Vision

Stereo. 11/02/2012 CS129, Brown James Hays. Slides by Kristen Grauman

Correspondence and Stereopsis. Original notes by W. Correa. Figures from [Forsyth & Ponce] and [Trucco & Verri]

Image Transfer Methods. Satya Prakash Mallick Jan 28 th, 2003

Epipolar Geometry in Stereo, Motion and Object Recognition

Multiple Baseline Stereo

Project 2 due today Project 3 out today. Readings Szeliski, Chapter 10 (through 10.5)

calibrated coordinates Linear transformation pixel coordinates

Binocular stereo. Given a calibrated binocular stereo pair, fuse it to produce a depth image. Where does the depth information come from?

Lecture 6 Stereo Systems Multi- view geometry Professor Silvio Savarese Computational Vision and Geometry Lab Silvio Savarese Lecture 6-24-Jan-15

COMP 558 lecture 22 Dec. 1, 2010

CS 4495 Computer Vision A. Bobick. Motion and Optic Flow. Stereo Matching

Introduction to Computer Vision. Week 10, Winter 2010 Instructor: Prof. Ko Nishino

CS5670: Computer Vision

Image Based Reconstruction II

CS 4495 Computer Vision A. Bobick. Motion and Optic Flow. Stereo Matching

Structure from Motion. Introduction to Computer Vision CSE 152 Lecture 10

Public Library, Stereoscopic Looking Room, Chicago, by Phillips, 1923

Computer Vision Lecture 17

Computer Vision Lecture 17

LUMS Mine Detector Project

Epipolar Geometry and Stereo Vision

CS4495/6495 Introduction to Computer Vision. 3B-L3 Stereo correspondence

A virtual tour of free viewpoint rendering

Epipolar Geometry and the Essential Matrix

What have we leaned so far?

Epipolar Geometry CSE P576. Dr. Matthew Brown

Lecture 9 & 10: Stereo Vision

CSE152 Introduction to Computer Vision Assignment 3 (SP15) Instructor: Ben Ochoa Maximum Points : 85 Deadline : 11:59 p.m., Friday, 29-May-2015

Recap: Features and filters. Recap: Grouping & fitting. Now: Multiple views 10/29/2008. Epipolar geometry & stereo vision. Why multiple views?

Multiple View Geometry

Two-view geometry Computer Vision Spring 2018, Lecture 10

Lecture 10: Multi view geometry

Recap from Previous Lecture

There are many cues in monocular vision which suggests that vision in stereo starts very early from two similar 2D images. Lets see a few...

Computer Vision I. Announcements. Random Dot Stereograms. Stereo III. CSE252A Lecture 16

Multiple View Geometry in Computer Vision

3D Computer Vision. Structure from Motion. Prof. Didier Stricker

Lecture 10 Multi-view Stereo (3D Dense Reconstruction) Davide Scaramuzza

Structure from motion

Three-Dimensional Sensors Lecture 2: Projected-Light Depth Cameras

Projective Rectification from the Fundamental Matrix

Today. Stereo (two view) reconstruction. Multiview geometry. Today. Multiview geometry. Computational Photography

Stereo II CSE 576. Ali Farhadi. Several slides from Larry Zitnick and Steve Seitz

Stereo. Many slides adapted from Steve Seitz

Project 3 code & artifact due Tuesday Final project proposals due noon Wed (by ) Readings Szeliski, Chapter 10 (through 10.5)

Lecture 10 Dense 3D Reconstruction

Stereo Wrap + Motion. Computer Vision I. CSE252A Lecture 17

Computer Vision I. Dense Stereo Correspondences. Anita Sellent 1/15/16

Camera Calibration. Schedule. Jesus J Caban. Note: You have until next Monday to let me know. ! Today:! Camera calibration

CS201 Computer Vision Camera Geometry

Fundamental matrix. Let p be a point in left image, p in right image. Epipolar relation. Epipolar mapping described by a 3x3 matrix F

Computer Vision I - Algorithms and Applications: Multi-View 3D reconstruction

Colorado School of Mines. Computer Vision. Professor William Hoff Dept of Electrical Engineering &Computer Science.

Colorado School of Mines. Computer Vision. Professor William Hoff Dept of Electrical Engineering &Computer Science.

Multi-view stereo. Many slides adapted from S. Seitz

EECS 442 Computer vision. Stereo systems. Stereo vision Rectification Correspondence problem Active stereo vision systems

Multi-View Stereo for Static and Dynamic Scenes

INFO - H Pattern recognition and image analysis. Vision

3D Photography: Stereo Matching

Learning Two-View Stereo Matching

Stereo Epipolar Geometry for General Cameras. Sanja Fidler CSC420: Intro to Image Understanding 1 / 33

Stereo Image Rectification for Simple Panoramic Image Generation

Accurate and Dense Wide-Baseline Stereo Matching Using SW-POC

Introduction à la vision artificielle X

Chaplin, Modern Times, 1936

Stereo. Outline. Multiple views 3/29/2017. Thurs Mar 30 Kristen Grauman UT Austin. Multi-view geometry, matching, invariant features, stereo vision

CSCI 5980: Assignment #3 Homography

Epipolar Geometry Prof. D. Stricker. With slides from A. Zisserman, S. Lazebnik, Seitz

MAPI Computer Vision. Multiple View Geometry

Model-Based Stereo. Chapter Motivation. The modeling system described in Chapter 5 allows the user to create a basic model of a

GOPRO CAMERAS MATRIX AND DEPTH MAP IN COMPUTER VISION

Transcription:

Stereo matching Francesco Isgrò 3D Reconstruction and Stereo p.1/21

Structure of a stereo vision system Extract interesting point from each image Determine a set of matching points Compute the fundamental matrix Rectify the two images Compute a dense stereo matching Representation of the scene 3D Reconstruction and Stereo p.2/21

Corresponding points Given two sets {p i } i=1,,n and {p j} i=1,,m, establish correspondences between the two sets There are two schools of thought to find corresponding points Extract points in one image and then look for correspondences in the second image Extract points in both images independently and then match them 3D Reconstruction and Stereo p.3/21

Point matching Two major work in this class: correlation matching + relaxation SVD matching 3D Reconstruction and Stereo p.4/21

SVD matching 1. Build the matrix G, with g ij = C ij + 1 2 e p i p 2σ 2 j 2 2. C ij normalised cross correlation between points i and j 3. Compute the SVD of the matrix: G = UWV t 4. Replace W with E, with all 1 on the diagonal 5. Compute P = UEV t 6. If C ij > k and P ij is the largest element in its row and it column, match p i with p j 3D Reconstruction and Stereo p.5/21

SVD matching: example 3D Reconstruction and Stereo p.6/21

SVD matching: example 3D Reconstruction and Stereo p.6/21

Rectification P O l O r 3D Reconstruction and Stereo p.7/21

Given a pair of stereo images rectification determines two homographies H 1 and H 2 such that pairs of conjugate epipolar lines become collinear and parallel to one of the image axes Corresponding point between the two images are then on the same scan-line. The two rectified images can be regarded as obtained from a parallel stereo rig It corresponds to changing the epipolar geometry to a particular one. 3D Reconstruction and Stereo p.8/21

3D Reconstruction and Stereo p.9/21

3D Reconstruction and Stereo p.10/21

Correspondence problem Problem For each point in the left image find the correspnding point in the right image Assumptions most scene points are visible from both views Corresponding image regions are similar These assumptions holds if the distance of the fixation point is larger than the baseline. 3D Reconstruction and Stereo p.11/21

Dense stereo matching Output is a disparity map giving the relative displacement for each pixel The disparity is proportional to the inverse of the distance Disparity needed for 3D structure 3D Reconstruction and Stereo p.12/21

Dense stereo matching: constraints Epipolar constraint Similarity: image patches of corresponding pixels must be similar Order: images match, then matches of nearby points should maintain the same order Smoothness: disparities should change smoothly distances with the dsitances from the camera Uniqueness: each pixel cannot match more than one pixel in the other image 3D Reconstruction and Stereo p.13/21

What to do? We must make two choices. which image elements to match which similarity measure to adopt We stick to the following choices we match image windows use correlation based measures 3D Reconstruction and Stereo p.14/21

Correlation methods 1. for each pixel p in the left image consider a neighourhood N p of size n r n c 2. select a q on the epipolar line of p in the right image having the neighourhood N q most similar to N p 3D Reconstruction and Stereo p.15/21

Similarity measures C 1 (x, y, d) = ij I y+i,x+j I y+i,x+j+d 2 C 2 (x, y, d) = ij I y+i,x+j I y+i,x+j+d 2 P ij I2 y+i,x+j P ij I 2 y+i,x+j+d C 3 (x, y, d) = ij I y+i,x+j I y+i,x+j+d P ij I2 y+i,x+j P ij I 2 y+i,x+j+d C 4 (x, y, d) = ij (I y+i,x+j µ yx ) (I y+i,x+j+d µ y,x+d ) 2 σ yx σ y,x+d C 5 (x, y, d) = ij (I y+i,x+j µ yx I y+i,x+j+d µ y,x+d σ yx σ y,x+d 3D Reconstruction and Stereo p.16/21

Searching q over the whole epipolar line is not necessary In general the corresponding q is not so far from the position of p Normally the search is restricted to a segment around the position of p Remark: the correspondence problem is made more difficult by occlusions (i.e., point with no counterpart in the other image) 3D Reconstruction and Stereo p.17/21

Multi-window stereo matching 3D Reconstruction and Stereo p.18/21

Multi-window stereo matching 1. For each pixel in the left image, select a search region in the right image. 2. For each pixel in the search region, compute similarity for each of the nine windows 3. Return the position associated to the highest of the nine values returned as the valid left-to-right match. 4. Repeat steps 1-4 after swapping left and right images, yielding the best right-to-left set of matches. 5. Keep only the matching pairs which are found in both directions, and discard the others, leaving holes in the disparity maps. 3D Reconstruction and Stereo p.18/21

Results 3D Reconstruction and Stereo p.19/21

Results 3D Reconstruction and Stereo p.19/21

Results 3D Reconstruction and Stereo p.19/21

Results 3D Reconstruction and Stereo p.19/21

Large baseline stereo If the baseline is large the disparity range can be large Multi-resolution stereo matching can give speed-up and better accuracy We do stereo-matching at the coarsest level Result is used as prediction for disparity at finer level 3D Reconstruction and Stereo p.20/21

Results 3D Reconstruction and Stereo p.21/21

Results 3D Reconstruction and Stereo p.21/21