Rectification and Disparity

Similar documents
Rectification and Distortion Correction

Stereo Vision Computer Vision (Kris Kitani) Carnegie Mellon University

CS201 Computer Vision Camera Geometry

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

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

Computer Vision Lecture 17

Computer Vision Lecture 17

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

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

Lecture 14: Basic Multi-View Geometry

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]

calibrated coordinates Linear transformation pixel coordinates

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

Dense 3D Reconstruction. Christiano Gava

LUMS Mine Detector Project

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

Multiple View Geometry

Stereo Vision. MAN-522 Computer Vision

Epipolar Geometry and Stereo Vision

Perception II: Pinhole camera and Stereo Vision

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

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

1 Projective Geometry

Epipolar Geometry and Stereo Vision

Rectification. Dr. Gerhard Roth

Lecture 9: Epipolar Geometry

Lecture 6 Stereo Systems Multi-view geometry

Dense 3D Reconstruction. Christiano Gava

CHAPTER 3 DISPARITY AND DEPTH MAP COMPUTATION

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

Camera Geometry II. COS 429 Princeton University

Epipolar Geometry and Stereo Vision

Stereo Vision A simple system. Dr. Gerhard Roth Winter 2012

Index. 3D reconstruction, point algorithm, point algorithm, point algorithm, point algorithm, 263

Augmented Reality II - Camera Calibration - Gudrun Klinker May 11, 2004

Announcements. Stereo

Index. 3D reconstruction, point algorithm, point algorithm, point algorithm, point algorithm, 253

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

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

CS6670: Computer Vision

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

Computer Vision Projective Geometry and Calibration. Pinhole cameras

Cameras and Stereo CSE 455. Linda Shapiro

Recovering structure from a single view Pinhole perspective projection

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

Multiple View Geometry in Computer Vision Second Edition

Announcements. Stereo

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

Stereo vision. Many slides adapted from Steve Seitz

Assignment 2: Stereo and 3D Reconstruction from Disparity

Stereo and structured light

Camera Model and Calibration

Computer Vision cmput 428/615

Step-by-Step Model Buidling

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

Two-view geometry Computer Vision Spring 2018, Lecture 10

Stereo Image Rectification for Simple Panoramic Image Generation

Computer Vision. Exercise Session 6 Stereo matching. Institute of Visual Computing

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

CSCI 5980: Assignment #3 Homography

Lecture 5 Epipolar Geometry

Epipolar Geometry CSE P576. Dr. Matthew Brown

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

Epipolar Geometry and Stereo Vision

BIL Computer Vision Apr 16, 2014

Stereo and Epipolar geometry

Geometric camera models and calibration

CS5670: Computer Vision

Comments on Consistent Depth Maps Recovery from a Video Sequence

Unit 3 Multiple View Geometry

Computer Vision. Coordinates. Prof. Flávio Cardeal DECOM / CEFET- MG.

Lecture 9 & 10: Stereo Vision

Fundamentals of Stereo Vision Michael Bleyer LVA Stereo Vision

Wide-Baseline Stereo Vision for Mars Rovers

An investigation into stereo algorithms: An emphasis on local-matching. Thulani Ndhlovu

Multiple View Geometry. Frank Dellaert

Omni Stereo Vision of Cooperative Mobile Robots

Camera model and multiple view geometry

CS664 Lecture #19: Layers, RANSAC, panoramas, epipolar geometry

Stereo. Many slides adapted from Steve Seitz

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

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

Laser sensors. Transmitter. Receiver. Basilio Bona ROBOTICA 03CFIOR

A Real-Time Catadioptric Stereo System Using Planar Mirrors

Depth from two cameras: stereopsis

CSCI 5980/8980: Assignment #4. Fundamental Matrix

3D Sensing and Reconstruction Readings: Ch 12: , Ch 13: ,

3D Vision Real Objects, Real Cameras. Chapter 11 (parts of), 12 (parts of) Computerized Image Analysis MN2 Anders Brun,

Robotics - Single view, Epipolar geometry, Image Features. Simone Ceriani

Multiple View Geometry

SRI Small Vision System

EE795: Computer Vision and Intelligent Systems

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

5LSH0 Advanced Topics Video & Analysis

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

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

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

Depth from two cameras: stereopsis

Robot Vision: Camera calibration

Transcription:

Rectification and Disparity Nassir Navab Slides prepared by Christian Unger

What is Stereo Vision? Introduction A technique aimed at inferring dense depth measurements efficiently using two cameras. Wide and old research area in computer vision. Contents of the talks: Radial Undistortion: Compensate effects of radial lens distortion. Rectification: Transforming the epipolar geometry into a canonical form. Disparity: Definition and relation to depth. Binocular Stereo Matching: The process of establishing dense correspondences between two images. Triangulation: Computing a 3D reconstruction. Rectification and Disparity - Christian Unger 2

Stereo-Rigs and Applications. NASA Mars Exploration Rectification and Disparity - Christian Unger 3

Stereo Vision Systems: Outline. A Stereo Vision System is usually composed of these processing steps: 1. Radial Undistortion 2. Rectification 3. Stereo Matching 4. Triangulation Rectification and Disparity - Christian Unger 4

Stereo Vision Systems: Outline. Radial Undistortion Rectification Stereo Matching Triangulation Rectification and Disparity - Christian Unger 5

Stereo Vision Systems: Radial Undistortion. Compensate for the effects of radial lens distortion. Use calibration patterns to make straight lines straight. Rectification and Disparity - Christian Unger 6

Radial Lens Distortion: Examples. Rectification and Disparity - Christian Unger 7

Radial Lens Distortion: Mathematical Background. We use a simplified version of Brown s model (barrel distortion) to formulate the undistortion: The raw-camera-image contains distorted image points: We seek the undistorted image points Brown s model is given as: With x x x D U U L( r) r ( xd, yd) ( xu, yu ) x D L( r) ( xd xc) 2 4 K1r K2r... 2 ( xd xc ) ( yd yc ) 2 Rectification and Disparity - Christian Unger 8

Radial Lens Undistortion: Approach. Offline phase: Estimate the distortion parameters using 2D-3D correspondences (e.g. using a checker-board). Online phase: Warp images using a reverse distortion ( backward warping : for every undistorted pixel we have to compute the distorted location). Due to the non-linearity of the distortion-function, this must be done numerically. In pratice, usually a lookup-table is computed offline. Rectification and Disparity - Christian Unger 9

Stereo Vision Systems: Rectification. Align the image planes (move the epipoles to infinity and match up epipolar lines). Rectification and Disparity - Christian Unger 10

Reminder: Depth from Corresponding Points. Q P p=q q p C 1 C 2 With two (or more) cameras we can infer depth from correspondences using triangulation. Rectification and Disparity - Christian Unger 11

Reminder: Epipolar Geometry. Since correspondences are constrained by epipolar geometry, only a one-dimensional search domain has to be considered: l' Fx Rectification and Disparity - Christian Unger 12

Rectification: Stereo in Canonical Form. In general: epipolar lines may be slanted. => Computation of the epipolar line for every image point is costly! It is more desirable to have parallel, horizontal epipolar lines. => Simple search along scanlines! Rectification and Disparity - Christian Unger 13

Rectification: Stereo in Canonical Form. P p C R C L Epipoles Rectification and Disparity - Christian Unger 14

Rectification: Stereo in Canonical Form. P p C R C L Rotate the cameras virtually, so that the two image-planes become co-planar. Rectification and Disparity - Christian Unger 15

Rectification: Stereo in Canonical Form. Rectification and Disparity - Christian Unger 16

Rectification: An Interpretation. In General: Rectification = Put the epipoles to a predefined position = Align the image planes (rotation, focal length) Standard approach: Make epipolar lines run parallel to the x-axis. For that, move the epipole to infinity and match up epipolar lines between views. By this convention, points will only move in the x-direction there will be no movement in y-direction! Rectification and Disparity - Christian Unger 17

Rectification: Minimize Image Distortion. Let H be a projective transformation that sends the epipole e to infinity. Then, the transformation H for the second camera might be chosen so as to minimize the sum-of-squared distances: i d(hx,h' x i i 2 ') Furthermore, H might me constrained to match up corresponding epipolar lines: Rectification and Disparity - Christian Unger 18

Rectification: Algorithm Outline. 1. Find initial correspondences 2. Compute the fundamental matrix 3. Compute a projective transformation H that maps the epipole e to infinity (1, 0, 0) T 4. Find the matching projective transformation H that minimizes i d(hx i,h' x i 2 ') 5. Warp the first image according to H and the second image according to H Rectification and Disparity - Christian Unger 19

Rectification: Another Interpretation. In practice the presented algorithm (Hartley-Zisserman) works, but may lead to undesireable results (e.g. black borders ). Argumentation via the DOF of a homography: Moving the epipole to infinity constrains only 2 DOF. Some clarifications and repeatitions: Epipolar lines intersect at the epipole. The image of the baseline in rectified images is parallel to the x-axis. Now, we use four line-to-line correspondences: We use 2 epipolar lines to constrain top and bottom image borders We use another 2 lines being orthogonal to the baseline to constrain left and right image borders These four lines define a rectangle => ensure that the rectangle is completely within the FOV. Rectification and Disparity - Christian Unger 20

Rectification: Another Interpretation. Baseline Epipole Left Image Right Image Epipolar Lines => Make top and bottom lines horizontal, to move the epipole to infinity. Map left and right lines to the left and right image border to avoid black regions ). Given lines in the left image, how to obtain the lines in the right image: Use corresponding epipolar lines (for top and bottom). Use points at infinity to ensure a proper disparity offset and scale for (left and right). Rectification and Disparity - Christian Unger 21

Rectification: Another Interpretation. Left Image Right Image => Make top and bottom lines horizontal, to move the epipole to infinity. Map left and right lines to the left and right image border to avoid black regions ). Given lines in the left image, how to obtain the lines in the right image: Use corresponding epipolar lines (for top and bottom). Use points at infinity to ensure a proper disparity offset and scale for (left and right). Rectification and Disparity - Christian Unger 22

Disparity: Definition. Assume a calibrated, rectified stereo setup. Definition (Disparity) The disparity measures the displacement of a point between the two images. Left Cam Right Cam Close points: large displacement Far points: small displacement Rectification and Disparity - Christian Unger 23

Disparity: Relationship to Depth. P Left Cam x L x R Right Cam Depth Z Focal length f Baseline b Rectification and Disparity - Christian Unger 24

Disparity: Relationship to Depth. P Left Cam x L x R Right Cam Z Focal length f Baseline b Similar Triangles! Rectification and Disparity - Christian Unger 25

Disparity: Relationship to Depth. P Left Cam x L x R Right Cam Z Focal length f Baseline b We get: b Z ( b x Z R ) f x L d x L x R f b Z Rectification and Disparity - Christian Unger 26

Disparity and the Baseline. d b f Z Using this relationship we can draw important conclusions: Disparity values are inverse proportional to the depth of a point Z: Far points have low disparity (for example the horizon has disparity of zero). Close points have a high disparity. The disparity is proportional to the baseline b The larger the baseline, the higher the disparity. The disparity resolution scales linearly with imager resolution: High resolutions allow accurate disparity measurements. Rectification and Disparity - Christian Unger 27

Disparity Maps: Dense Correspondences. Disparity for every pixel in the image => Disparity Map Typically encoded using intensities: close points are bright far ones are dark Left Image Right Image Disparity Map Rectification and Disparity - Christian Unger 28

The Horopter. Image of S. Mattoccia. Rectification and Disparity - Christian Unger 29

Disparity-Planes. Image of S. Mattoccia. Rectification and Disparity - Christian Unger 30

Stereo Vision Systems: Stereo Matching and Triangulation. Stereo Matching Compute a disparity for every pixel of the image. Next Topic! Triangulation Compute the 3D position for every disparity. Next but one Topic! Rectification and Disparity - Christian Unger 31