Rectification. Dr. Gerhard Roth

Similar documents
Stereo Vision Computer Vision (Kris Kitani) Carnegie Mellon University

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

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

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

Lecture 14: Basic Multi-View Geometry

1 Projective Geometry

Rectification and Distortion Correction

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

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

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

Stereo Vision. MAN-522 Computer Vision

Step-by-Step Model Buidling

Computer Vision Projective Geometry and Calibration. Pinhole cameras

Rectification and Disparity

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

Camera Model and Calibration

Stereo Image Rectification for Simple Panoramic Image Generation

3D Geometry and Camera Calibration

calibrated coordinates Linear transformation pixel coordinates

Depth from two cameras: stereopsis

Depth from two cameras: stereopsis

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

Computer Vision Lecture 17

Computer Vision Lecture 17

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

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

Computer Vision Projective Geometry and Calibration. Pinhole cameras

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

Multiple View Geometry

Lecture 6 Stereo Systems Multi-view geometry

Cameras and Stereo CSE 455. Linda Shapiro

Epipolar Geometry and Stereo Vision

Epipolar Geometry and Stereo Vision

BIL Computer Vision Apr 16, 2014

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

Camera Geometry II. COS 429 Princeton University

Epipolar Geometry and Stereo Vision

A Compact Algorithm for Rectification of Stereo Pairs

Camera Model and Calibration. Lecture-12

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

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

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

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

3D Modeling using multiple images Exam January 2008

CS201 Computer Vision Camera Geometry

Archeoviz: Improving the Camera Calibration Process. Jonathan Goulet Advisor: Dr. Kostas Daniilidis

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

Unit 3 Multiple View Geometry

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

EECS 4330/7330 Introduction to Mechatronics and Robotic Vision, Fall Lab 1. Camera Calibration

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

Instance-level recognition I. - Camera geometry and image alignment

COMPARATIVE STUDY OF DIFFERENT APPROACHES FOR EFFICIENT RECTIFICATION UNDER GENERAL MOTION

Lecture 5 Epipolar Geometry

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

Perception II: Pinhole camera and Stereo Vision

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

Two-view geometry Computer Vision Spring 2018, Lecture 10

Assignment 2: Stereo and 3D Reconstruction from Disparity

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

A Stereo Machine Vision System for. displacements when it is subjected to elasticplastic

CSCI 5980: Assignment #3 Homography

Epipolar geometry. x x

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

Stereo imaging ideal geometry

Efficient Stereo Image Rectification Method Using Horizontal Baseline

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

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

INFO - H Pattern recognition and image analysis. Vision

Stereo and structured light

Lecture 9: Epipolar Geometry

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

Computer Vision Projective Geometry and Calibration

Epipolar Geometry and Stereo Vision

CHAPTER 3 DISPARITY AND DEPTH MAP COMPUTATION

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

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

Computer Vision cmput 428/615

MERGING POINT CLOUDS FROM MULTIPLE KINECTS. Nishant Rai 13th July, 2016 CARIS Lab University of British Columbia

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

Announcements. Stereo

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

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

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

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

3D Sensing. 3D Shape from X. Perspective Geometry. Camera Model. Camera Calibration. General Stereo Triangulation.

Epipolar Geometry class 11

Structure from Motion and Multi- view Geometry. Last lecture

Camera Models and Image Formation. Srikumar Ramalingam School of Computing University of Utah

Fundamental Matrix & Structure from Motion

N-Views (1) Homographies and Projection

Module 6: Pinhole camera model Lecture 32: Coordinate system conversion, Changing the image/world coordinate system

CS223b Midterm Exam, Computer Vision. Monday February 25th, Winter 2008, Prof. Jana Kosecka

GOPRO CAMERAS MATRIX AND DEPTH MAP IN COMPUTER VISION

Multi-view geometry problems

1 CSE 252A Computer Vision I Fall 2017

Single View Geometry. Camera model & Orientation + Position estimation. Jianbo Shi. What am I? University of Pennsylvania GRASP

Camera Calibration. COS 429 Princeton University

Computational Optical Imaging - Optique Numerique. -- Single and Multiple View Geometry, Stereo matching --

Recap from Previous Lecture

Transcription:

Rectification Dr. Gerhard Roth

Problem Definition Given a pair of stereo images, the intrinsic parameters of each camera, and the extrinsic parameters of the system, R, and, compute the image transformation that makes epipolar lines collinear and parallel to horizontal axis Basically convert a general stereo configuration to a simple stereo configuration his speeds up matching because searching horizontal epipolar lines is easier than general epipolar lines So rectification is a good pre-processing step if you want to do correspondence faster Correlation based correspondence algorithms always assume a simple stereo configuration

Stereo Rectification P Stereo System with Parallel Optical Axes Epipoles are at infinity Horizontal epipolar lines P l P r p l p r Y l Y r Z r Rectification X l O l Given a stereo pair, the intrinsic and extrinsic parameters, find the image transformation to achieve a stereo system of horizontal epipolar lines A simple algorithm: Assuming calibrated stereo cameras Z l X r O r

Stereo Rectification Algorithm P Rotate both left and right camera so that they share the same X axis : O r -O l = P l P r Define a rotation matrix Rrect for the left camera Rotation Matrix for the right camera is RrectR Rotation can be implemented by image transformation called a homography (see homography.ppt) X l X l Y l O l p p l r Z l R, Z r X r X l =, Y l = X l xz l, Z l = X l xy l O r Y r

Stereo Rectification Algorithm P Rotate both left and right camera so that they share the same X axis : O r -O l = P l P r Define a rotation matrix Rrect for the left camera Rotation Matrix for the right camera is RrectR Rotation can be implemented by image transformation called a homography (see homography.ppt) X l X l Y l O l p p l r Z l R, Z r X r X l =, Y l = X l xz l, Z l = X l xy l O r Y r

Stereo Rectification Algorithm Rotate both left and right camera so that they share the same X axis : O r -O l = Define a rotation matrix Rrect for the left camera Rotation Matrix for the right camera is RrectR Rotation can be implemented by image transformation (see homography.ppt) X l O l P l p l p r Y l Y r Z l R, P P r X r O r Z r = (B, 0, 0), P r = P l

Algorithm Rectification 1. Build the matrix R rect 2. Set R l = R rect and R r = R R rect 3. For each left-camera point P l = [x,y,z] compute R l P l = [x,y,z ] and the corresponding rectified ' point as = f/z [x,y,z ] p l 4. Repeat the previous step for the right camera using R r and P r Basically rotate the point and then reproject it In practice, steps 3 and 4 require back projection his is usually done with a homography which is computed from the known rotation and calibration

Building matrix R rect Make the new x axis along the direction of the baseline (the b vector) his is vector e1 Make new y axis orthogonal to the new x and the old z which is along the old optical axis (cross product) his is vector e2 Make new z axis orthogonal to the baseline and the new y axis (cross product) his is vector e3 Rotation matrix is now complete e Rotates left camera so that epipolar lines are parallel R rect = e e 1 2 3

Homography for Rotation If camera is rotated (but not translated) Home position X x = K I = 1 [ 0] KX Rotation by a matrix R x' = X x' = K R = 1 KRK [ 0] KRX -1 x So -1 Where KRK is a 3by3 matrix called a homography

Homography for Rotation We know that x' = KRK his means that for any pixel in the new image where x = [u,v,1] we can compute the pixel x = [u,v,1] in th old image that is mapped to x under this rotation Go through every pixel x in the new image and put in its place the image at location x in the old image his make a new image that is a rotated version of the original old image A simple way to apply the rotation to these images Note that x = M x and x = M -1 x where M is the homography that does the rotation So given M (which we can compute) we can make a new image which looks like a rotated version of the old -1 x

Rectification Example

Rectification Example

Rectification Used to transform a general stereo system into a simple stereo system 1. Do the rectification to get two new images 2. Do correspondence in the new simple stereo images 3. ake the 3D points that are found and convert them back into the old image frames (invert rotations) he result is a set of 3D points, but they are computed more quickly because we do correspondence in simple stereo.