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

Similar documents
Computer Vision Lecture 17

Computer Vision Lecture 17

Rectification and Distortion Correction

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

Stereo Vision Computer Vision (Kris Kitani) Carnegie Mellon University

Multiple View Geometry

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

Epipolar Geometry and Stereo Vision

Multi-View Geometry Part II (Ch7 New book. Ch 10/11 old book)

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

Rectification. Dr. Gerhard Roth

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

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

Epipolar Geometry and Stereo Vision

Rectification and Disparity

Assignment 2: Stereo and 3D Reconstruction from Disparity

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

6.819 / 6.869: Advances in Computer Vision Antonio Torralba and Bill Freeman. Lecture 11 Geometry, Camera Calibration, and Stereo.

Depth from two cameras: stereopsis

Lecture 9: Epipolar Geometry

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

Step-by-Step Model Buidling

Lecture 6 Stereo Systems Multi-view geometry

Depth from two cameras: stereopsis

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

Camera Geometry II. COS 429 Princeton University

Epipolar Geometry and Stereo Vision

Stereo Vision. MAN-522 Computer Vision

Announcements. Stereo

Two-view geometry Computer Vision Spring 2018, Lecture 10

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

Recovering structure from a single view Pinhole perspective projection

Epipolar Geometry and Stereo Vision

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

CS5670: Computer Vision

CS201 Computer Vision Camera Geometry

Lecture 14: Basic Multi-View Geometry

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

Announcements. Stereo

BIL Computer Vision Apr 16, 2014

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

CS 2770: Intro to Computer Vision. Multiple Views. Prof. Adriana Kovashka University of Pittsburgh March 14, 2017

Camera Model and Calibration. Lecture-12

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?

Stereo Image Rectification for Simple Panoramic Image Generation

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

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

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

Lecture 9 & 10: Stereo Vision

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

1 Projective Geometry

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

Stereo. Many slides adapted from Steve Seitz

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

Stereo vision. Many slides adapted from Steve Seitz

N-Views (1) Homographies and Projection

Multi-View Geometry (Ch7 New book. Ch 10/11 old book)

COMPARATIVE STUDY OF DIFFERENT APPROACHES FOR EFFICIENT RECTIFICATION UNDER GENERAL MOTION

Chaplin, Modern Times, 1936

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

Unit 3 Multiple 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

Dense 3D Reconstruction. Christiano Gava

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

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

CS 231A Computer Vision (Winter 2015) Problem Set 2

Stereo and structured light

C / 35. C18 Computer Vision. David Murray. dwm/courses/4cv.

Mosaics wrapup & Stereo

Multiple View Geometry

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

CS 231A: Computer Vision (Winter 2018) Problem Set 2

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

Stereo: Disparity and Matching

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

What have we leaned so far?

Image Based Reconstruction II

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

Cameras and Stereo CSE 455. Linda Shapiro

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

Project Ideas. Guido Gerig CS 6643, Computer Vision Spring 2016

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

Recap from Previous Lecture

Projective Rectification from the Fundamental Matrix

Announcements. Motion. Structure-from-Motion (SFM) Motion. Discrete Motion: Some Counting

A Compact Algorithm for Rectification of Stereo Pairs

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

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

CS6670: Computer Vision

Image warping and stitching

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

Structure from Motion and Multi- view Geometry. Last lecture

Efficient Stereo Image Rectification Method Using Horizontal Baseline

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

Epipolar Geometry in Stereo, Motion and Object Recognition

Final project bits and pieces

CS 1674: Intro to Computer Vision. Midterm Review. Prof. Adriana Kovashka University of Pittsburgh October 10, 2016

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

Transcription:

Image Rectification (Stereo) (New book: 7.2.1, old book: 11.1) Guido Gerig CS 6320 Spring 2013 Credits: Prof. Mubarak Shah, Course notes modified from: http://www.cs.ucf.edu/courses/cap6411/cap5415/, Lecture 25

Example: converging cameras courtesy of Andrew Zisserman

Epipolar Lines in Converging Cameras Epipolar lines all intersect at epipoles.

Stereo image rectification In practice, it is convenient if image scanlines are the epipolar lines.

Image Rectification If the two cameras are aligned to be coplanar, the search is simplified to one dimension - a horizontal line parallel to the baseline between the cameras http://en.wikipedia.org/wiki/image_rectification

Image Reprojection reproject image planes onto common plane parallel to line between optical centers a homography (3x3 transform) applied to both input images pixel motion is horizontal after this transformation C. Loop and Z. Zhang. Computing Rectifying Homographies for Stereo Vision. IEEE Conf. Computer Vision and Pattern Recognition, 1999. Stereo image rectification

Stereo image rectification: example Source: Alyosha Efros

Stereo image rectification: example Source: Alyosha Efros

Stereo image rectification: example Source: Alyosha Efros

Image Rectification O O

Image Rectification e O O e

Image Rectification P e O O e

Image Rectification P e p O O p e

Image Rectification P e p l O O l p e

Image Rectification P e p l O O l p e

Image Rectification P e p l O O l p e p p

Image Rectification P e p l O O l p e l p p l

Image Rectification P Common Image Plane Parallel Epipolar Lines Search Correspondences on scan line Epipoles e p l O O l p e l p p l

Image Rectification

Image Rectification All epipolar lines are parallel in the rectified image plane.

Image Rectification

Essential matrix example: parallel cameras R T E [ d,0,0] I [T x]r 0 0 0 0 0 d 0 d 0 Grauman

Essential matrix example: parallel cameras R T E [ d,0,0] I [T x]r 0 0 0 0 0 d 0 d 0 Grauman

Essential matrix example: parallel cameras R T E [ d,0,0] I [T x]r 0 0 0 0 0 d 0 d 0 Grauman

Essential matrix example: parallel cameras R T E [ d,0,0] I [T x]r 0 0 0 0 0 d 0 d 0 Grauman

Essential matrix example: parallel cameras R T E [ d,0,0] I [T x]r 0 0 0 0 0 d 0 d 0 p Ep 0 Grauman

Essential matrix example: parallel cameras R T E [ d,0,0] I [T x]r 0 0 0 0 0 d 0 d 0 p Ep 0 Grauman

Essential matrix example: parallel cameras R T E [ d,0,0] I [T x]r 0 0 0 0 0 d 0 d 0 p Ep 0 Grauman

Essential matrix example: parallel cameras R T E [ d,0,0] I [T x]r 0 0 0 0 0 d 0 d 0 p Ep 0 Grauman

Essential matrix example: parallel cameras R T E [ d,0,0] I [T x]r 0 0 0 0 0 d 0 d 0 p Ep 0 For the parallel cameras, image of any point must lie on same horizontal line in each image plane. Grauman

Example I: compute the fundamental matrix for a parallel camera stereo rig K = K = α 0 u0 0 β v0 0 0 1 R=I t= tx 0 0 X Y Z f = 1 a 0 0 0 1 0 b u0 a v0 b 1 0 0 0 0 0 tx 0 tx 0 1 0 u0 a a 0 1 b v0 b 0 0 1 = 0 0 0 0 0 tx b 0 tx b 0 f reduces to y = y /, i.e. raster correspondence (horizontal scan-lines)

X Y f Z f Geometric interpretation?

Image pair rectification Goal: Simplify stereo matching by warping the images Apply projective transformation so that epipolar lines correspond to horizontal scanlines e

Image pair rectification Goal: Simplify stereo matching by warping the images Apply projective transformation so that epipolar lines correspond to horizontal scanlines e e 1 0 0 He map epipole e to (1,0,0)

Image pair rectification Goal: Simplify stereo matching by warping the images Apply projective transformation so that epipolar lines correspond to horizontal scanlines e e 1 0 0 He map epipole e to (1,0,0) try to minimize image distortion

Image pair rectification Goal: Simplify stereo matching by warping the images Apply projective transformation so that epipolar lines correspond to horizontal scanlines e e 1 0 0 He map epipole e to (1,0,0) try to minimize image distortion problem when epipole in (or close to) the image

Planar rectification Image Transformations: Find homographies H and H so that after transformations, F n becomes F of parallel cameras:

Planar rectification Image Transformations: Find homographies H and H so that after transformations, F n becomes F of parallel cameras:

Planar rectification Image Transformations: Find homographies H and H so that after transformations, F n becomes F of parallel cameras:

Planar rectification Image Transformations: Find homographies H and H so that after transformations, F n becomes F of parallel cameras: Bring two views to standard stereo setup (moves epipole to ) (not possible when in/close to image)

Algorithm Rectification Following Trucco & Verri book pp. 159 known T and R between cameras Rotate left camera so that epipole e l goes to infinity along horizontal axis Apply same rotation to right camera to recover geometry Rotate right camera by R -1 Adjust scale

From: Trucco & Verri, Introductory Techniques for 3-D Computer Vision, pp. 157-161

More elegant Solution Idea: Mapping epipole to infinity [1,0,0] T Factorization of matrix F=SM, where S is skew symmetric and M representing the required homography (projective transformation). Use SVD: http://www.robots.ox.ac.uk/~vgg/hzbook/hzbook2/clarification_rectification.pdf

Stereo matching with general camera configuration

Image pair rectification

Other Material /Code Epipolar Geometry, Rectification: http://homepages.inf.ed.ac.uk/rbf/cvonline/local_ COPIES/FUSIELLO2/rectif_cvol.html Fusiello, Trucco & Verri:Tutorial, Matlab code etc: http://profs.sci.univr.it/~fusiello/demo/rect/

Run Example Updated Webpages: Demo for stereo reconstruction (out of date): http://mitpress.mit.edu/ejournals/videre/001/articles/zhang/calibenv/calibenv.html http://research.microsoft.com/enus/um/people/zhang/inria/softwares.html SFM Example: http://research.microsoft.com/enus/um/people/zhang/inria/sfm-ex/sfm-ex.html Software: http://research.microsoft.com/enus/um/people/zhang/inria/softwares.html

Example: Zhengyou Zhang Fundamental matrix between the two cameras:

Points have been extracted using Harris corner detector, point matches via fundamental matrix F and search along epipolar lines.

Point matches found by a correlation technique

3D reconstruction represented by a pseudo stereogram http://research.microsoft.com/enus/um/people/zhang/inria/sfm-ex/sfm-ex.html

Additional Materials: Forward Translating Cameras

Example II: compute F for a forward translating camera X Y f Z f

X Y Z f f first image second image

e e

Summary: Properties of the Fundamental matrix

Goal: 3D from Stereo via Disparity Map image I(x,y) Disparity map D(x,y) image I (x,y ) (x,y )=(x+d(x,y),y) 71 F&P Chapter 11

Example: Stereo to Depth Map

Example: Stereo to Depth Map