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

Similar documents
Stereo Vision. MAN-522 Computer Vision

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

Step-by-Step Model Buidling

Lecture 14: Basic Multi-View Geometry

Computer Vision Lecture 17

Computer Vision Lecture 17

CS5670: Computer Vision

What have we leaned so far?

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

Dense 3D Reconstruction. Christiano Gava

Rectification and Disparity

7. The Geometry of Multi Views. Computer Engineering, i Sejong University. Dongil Han

CHAPTER 3 DISPARITY AND DEPTH MAP COMPUTATION

Stereo imaging ideal geometry

Dense 3D Reconstruction. Christiano Gava

Epipolar Geometry and Stereo Vision

Rectification and Distortion Correction

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

Computer Vision I. Announcement. Stereo Vision Outline. Stereo II. CSE252A Lecture 15

Multiple View Geometry

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

Assignment 2: Stereo and 3D Reconstruction from Disparity

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

Perception II: Pinhole camera and Stereo Vision

EXAM SOLUTIONS. Image Processing and Computer Vision Course 2D1421 Monday, 13 th of March 2006,

Stereo and Epipolar geometry

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

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

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...

Lecture 6 Stereo Systems Multi-view geometry

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

Epipolar Geometry CSE P576. Dr. Matthew Brown

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

Announcements. Stereo

Introduction à la vision artificielle X

Epipolar Geometry and Stereo Vision

Lecture 14: Computer Vision

calibrated coordinates Linear transformation pixel coordinates

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

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

BIL Computer Vision Apr 16, 2014

EE795: Computer Vision and Intelligent Systems

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

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

Computer Vision, Lecture 11

Stereo Matching.

Announcements. Stereo

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

Depth from two cameras: stereopsis

EE795: Computer Vision and Intelligent Systems

DD2423 Image Analysis and Computer Vision IMAGE FORMATION. Computational Vision and Active Perception School of Computer Science and Communication

INFO - H Pattern recognition and image analysis. Vision

Stereo Image Rectification for Simple Panoramic Image Generation

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

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

Depth from two cameras: stereopsis

Binocular Stereo Vision. System 6 Introduction Is there a Wedge in this 3D scene?

Rectification. Dr. Gerhard Roth

Final Exam Study Guide

1 Projective Geometry

Computer Vision. Geometric Camera Calibration. Samer M Abdallah, PhD

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

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

Matching. Compare region of image to region of image. Today, simplest kind of matching. Intensities similar.

Lecture 10: Multi view geometry

Recap from Previous Lecture

Depth. Common Classification Tasks. Example: AlexNet. Another Example: Inception. Another Example: Inception. Depth

Stereo Vision Computer Vision (Kris Kitani) Carnegie Mellon University

Computer Vision I. Announcement

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

Cameras and Stereo CSE 455. Linda Shapiro

Announcements. Stereo Vision Wrapup & Intro Recognition

Lecture 10: Multi-view geometry

Image Based Reconstruction II

Complex Sensors: Cameras, Visual Sensing. The Robotics Primer (Ch. 9) ECE 497: Introduction to Mobile Robotics -Visual Sensors

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

MAPI Computer Vision. Multiple View Geometry

Announcements. Stereo Vision II. Midterm. Example: Helmholtz Stereo Depth + Normals + BRDF. Stereo

Stereo and structured light

Fundamentals of Stereo Vision Michael Bleyer LVA Stereo Vision

CS4670: Computer Vision

Subpixel accurate refinement of disparity maps using stereo correspondences

Lecture 9: Epipolar Geometry

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

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

CS 4495/7495 Computer Vision Frank Dellaert, Fall 07. Dense Stereo Some Slides by Forsyth & Ponce, Jim Rehg, Sing Bing Kang

Project 4 Results. Representation. Data. Learning. Zachary, Hung-I, Paul, Emanuel. SIFT and HoG are popular and successful.

Final Review CMSC 733 Fall 2014

Epipolar Geometry and Stereo Vision

Final Exam Study Guide CSE/EE 486 Fall 2007

Chaplin, Modern Times, 1936

Geometry of Multiple views

Stereo Observation Models

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

Stereo: Disparity and Matching

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

3D Geometry and Camera Calibration

CS 664 Slides #9 Multi-Camera Geometry. Prof. Dan Huttenlocher Fall 2003

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

COMPARATIVE STUDY OF DIFFERENT APPROACHES FOR EFFICIENT RECTIFICATION UNDER GENERAL MOTION

Transcription:

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

Introduction Disparity: Informally: difference between two pictures Allows us to gain a strong sense of depth Stereopsis: Ability to perceive depth from disparity Goal: Design algorithms that mimic stereopsis

Stereo Vision Two parts Binocular fusion of features observed by the eyes Reconstruction of their three-dimensional preimage

Stereo Vision Easy Case A single point being observed The preimage can be found at the intersection of the rays from the focal points to the image points

Stereo Vision Hard Case Many points being observed Need some method to establish correspondences

Components of Stereo Vision Systems Camera calibration: previous lecture Image rectification: simplifies the search for correspondences Correspondence: which item in the left image corresponds to which item in the right image Reconstruction: recovers 3-D information from the 2-D correspondences

Epipolar Geometry Epipolar constraint: corresponding points must lie on conjugate epipolar lines Search for correspondences becomes a 1-D problem

Warp images such that conjugate epipolar lines become collinear and parallel to u axis Image Rectification

Image Rectification (cont.) Perform by rotating the cameras Not equivalent to rotating the images The lines through the centers become parallel to each other, and the epipoles move to infinity

Image Rectification (cont.) Given extrinsic parameters T and R (relative position and orientation of the two cameras) Rotate the left camera about the projection center so that the the epipolar lines become parallel to the horizontal axis Apply the same rotation to the right camera Rotate the right camera by R Adjust the scale in both camera reference frames

Disparity With rectified images, disparity is just (horizontal) displacement of corresponding features in the two images Disparity = 0 for distant points Larger disparity for closer points Depth of point proportional to 1/disparity

Correspondence Given an element in the left image, find the corresponding element in the right image Classes of methods Correlation-based Feature-based

Correlation-Based Correspondence Input: rectified stereo pair and a point (u,v) in the first image Method: Form window of size (2m+1) (2n+1) centered at (u,v) and assemble points into the vector w For each potential match (u+d,v) in the second image, compute w' and the normalized correlation between w and w

Sum of Squared Differences Recall: SSD for image similarity ψ ( u, v) = ( u v) 2 Negative sign so that higher values mean greater similarity

Normalized Cross-Correlation Normalize to eliminate brightness sensitivity: where ψ ( u, v) = ( u u )( v σ σ u v v) u = average( u) σ u = standard deviation( u) Can help for non-diffuse scenes, hurts for perfectly diffuse ones

Window-Based Correlation For each pixel For each disparity For each pixel in window Compute difference Find disparity with minimum SSD

Reverse Order of Loops For each disparity For each pixel For each pixel in window Compute difference Find disparity with minimum SSD at each pixel

Incremental Computation Given SSD of a window, at some disparity Image 1 Image 2

Incremental Computation Want: SSD at next location Image 1 Image 2

Incremental Computation Subtract contributions from leftmost column, add contributions from rightmost column Image 1 + + + + + Image 2 + + + + +

Selecting Window Size Small window: more detail, but more noise Large window: more robustness, less detail Example:

Selecting Window Size 3 pixel window 20 pixel window

Non-Square Windows Compromise: have a large window, but higher weight near the center Example: Gaussian For each disparity For each pixel Compute weighted SSD

Diffusion For each disparity For each pixel Compute squared difference in intensities For n iterations: E i (1-4λ) E i + λ ΣE j Sum is over four neighbors of each pixel

Non-Linear Diffusion To prevent blurring even more, only perform diffusion in ambiguous regions For each pixel, compute certainty High certainty iff one disparity has low error, all others have high error For each pixel, only perform diffusion if certainty goes up

Certainty Metrics for Non-Linear Diffusion Winner margin: normalized difference between lowest and second-lowest error Entropy: C ( i, j) = E min2 d E E d min C( i, j) = d p( d)log p( d), p( d) = d ' e e E d E d '

Results Scharstein and Szeliski, 1996 3 pixel window 20 pixel window Nonlinear diffusion

Problems with Correlation-Based Correspondence Main problem: Assumes that the observed surface is locally parallel to the two image planes If not, unequal amounts of foreshortening in images Iterate: compute disparities, warp images, repeat Other problems: Not robust against noise Similar pixels may not correspond to physical features

Feature-Based Correspondence Main idea: significant features should be preferred to matches between raw pixel intensities Instead of correlation-like measures, use similarity between feature descriptors Typical features: points, lines, and corners Example: Marr-Poggio-Grimson algorithm

Marr-Poggio-Grimson Algorithm Convolve images with Laplacian of Gaussian filters with decreasing widths Find zero crossings of the Laplacian along horizontal scanlines of the filtered images For each σ, match zero crossings with same parity and similar orientations in a [ w σ..w σ ] disparity range, with wσ = 2 2σ

Marr-Poggio-Grimson Algorithm (cont.) Use disparities found at larger scales to control eye vergence and cause unmatched regions at smaller scales to come into correspondence

Marr-Poggio-Grimson Algorithm (cont.)

Ordering Constraint Order of matching features usually the same in both images But not always: occlusion

Graph Search Treat feature correspondence as graph problem Right image features Left image features 1 2 3 1 2 3 4 Cost of edges = similarity of regions between image features 4

Graph Search Find min-cost path through graph Right image features 1 1 2 3 4 Left image features 2 3 4

Reconstruction Given pair of image points p and p', and focal points O and O', find preimage P In theory: find P by intersecting the rays R=Op and R'=Op' In practice: R and R' won't actually intersect due to calibration and feature localization errors

Reconstruction Approaches Geometric Construct the line segment perpendicular to R and R' that intersects both rays and take its mid-point

Reconstruction Approaches Image-space: find the point P whose projection onto the images minimizes distance to desired correspondences Nonlinear optimization