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

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

Computer Vision I. Announcement

Announcements. Stereo Vision Wrapup & Intro Recognition

Stereo and Epipolar geometry

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

Multiple View Geometry. Frank Dellaert

Stereo (Part 2) Introduction to Computer Vision CSE 152 Lecture 9

Announcements. Stereo

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

Final project bits and pieces

Step-by-Step Model Buidling

Model Fitting. Introduction to Computer Vision CSE 152 Lecture 11

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

CS5670: Computer Vision

Epipolar Geometry and Stereo Vision

Week 2: Two-View Geometry. Padua Summer 08 Frank Dellaert

Stereo Matching.

Recap from Previous Lecture

Chaplin, Modern Times, 1936

Lecture 6 Stereo Systems Multi-view geometry

Epipolar Geometry and Stereo Vision

Announcements. Stereo

Computer Vision, Lecture 11

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

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

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

Epipolar Constraint. Epipolar Lines. Epipolar Geometry. Another look (with math).

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

What have we leaned so far?

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. 11/02/2012 CS129, Brown James Hays. Slides by Kristen Grauman

Computer Vision Lecture 17

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

Computer Vision Lecture 17

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

Epipolar Geometry Based On Line Similarity

Lecture 10: Multi-view geometry

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

Image Based Reconstruction II

Two-view geometry Computer Vision Spring 2018, Lecture 10

Introduction à la vision artificielle X

Lecture 9: Epipolar Geometry

Stereo vision. Many slides adapted from Steve Seitz

BIL Computer Vision Apr 16, 2014

arxiv: v4 [cs.cv] 8 Jan 2017

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

Lecture 10: Multi view geometry

Epipolar geometry. x x

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

Vision par ordinateur

Lecture 14: Computer Vision

COMPARATIVE STUDY OF DIFFERENT APPROACHES FOR EFFICIENT RECTIFICATION UNDER GENERAL MOTION

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

EE795: Computer Vision and Intelligent Systems

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

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

Multiple View Geometry

Stereo: Disparity and Matching

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

CSE 252B: Computer Vision II

Epipolar Geometry and Stereo Vision

Homographies and RANSAC

Instance-level recognition II.

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

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

Dense 3D Reconstruction. Christiano Gava

Miniature faking. In close-up photo, the depth of field is limited.

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

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

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

Lecture 9 & 10: Stereo Vision

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

Lecture 14: Basic Multi-View Geometry

Epipolar Geometry and Stereo Vision

RANSAC and some HOUGH transform

Multi-stable Perception. Necker Cube

Recovering structure from a single view Pinhole perspective projection

Dense 3D Reconstruction. Christiano Gava

Automatic Image Alignment (feature-based)

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

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

EE795: Computer Vision and Intelligent Systems

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

3D Photography: Stereo Matching

Stereo. Many slides adapted from Steve Seitz

Lecture 5 Epipolar Geometry

Cameras and Stereo CSE 455. Linda Shapiro

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

Multiple View Geometry

Transformations Between Two Images. Translation Rotation Rigid Similarity (scaled rotation) Affine Projective Pseudo Perspective Bi linear

Fundamental Matrix. Lecture 13

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

Fundamentals of Stereo Vision Michael Bleyer LVA Stereo Vision

Epipolar Geometry CSE P576. Dr. Matthew Brown

Instance-level recognition part 2

CS231M Mobile Computer Vision Structure from motion

Image correspondences and structure from motion

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

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

Structure from Motion and Multi- view Geometry. Last lecture

Transcription:

Announcements Stereo III CSE252A Lecture 16 HW1 being returned HW3 assigned and due date extended until 11/27/12 No office hours today No class on Thursday 12/6 Extra class on Tuesday 12/4 at 6:30PM in WLH Room 2112 Random Dot Stereograms Epipolar Geometry Baseline Epipoles Epipolar Plane Epipolar Lines The Eight-Point Algorithm (Longuet-Higgins, 1981) Much more on multi-view in CSE252B!! Properties of the Essential Matrix T Here, F is the Essential Matrix Consider 8 points (u i,v i ), (u i,v i ) Set F 33 to 1 E p is the epipolar line associated with p. T E T p is the epipolar line associated with p. E e =0 and E T e=0. Solve for F 11 to F 32 For more than 8 points, solve using linear least squares E is singular. E has two equal non-zero singular values (Huang and Faugeras, 1989). 1

The Fundamental Matrix The epipolar constraint is given by: where p and p are 3-D coordinates of the image coordinates of points in the two images. Example: forward motion Without calibration, we can still identify corresponding points in two images, but we can t convert to 3-D coordinates. However, the relationship between the calibrated coordinates (p,p ) and uncalibrated image coordinates (q,q ) can be expressed as p=aq, and p =A q e Therefore, we can express the epipolar constraint as: (Aq) T E(A q ) = q T (A T EA )q = q T Fq = 0 where F is called the Fundamental Matrix. Can estimate F using 8 point algorithm WITHOUT CALIBRATION e courtesy of Andrew Computer Zisserman Vision I Need for correspondence How do we automatically find correspondences and estimate F? RANSAC Slides shamelessly taken from Frank Dellaert and Marc Pollefeys and modified Motivation Estimating motion models Typically: points in two images Candidates: Translation Affine Homography 2

Mosaicing: Homography Estimate with RANSAC Fundamental Matrix Estimate with RANSAC www.cs.cmu.edu/~dellaert/mosaicking Simpler Example Fitting a straight line Discard Outliers No point with d>t RANSAC: RANdom SAmple Consensus Fischler & Bolles 1981 Copes with a large proportion of outliers Inliers Outliers Main Idea Why will this work? Select 2 points at random Fit a line Support = number of inliers Line with most inliers wins 3

Best Line has most support More support -> better fit RANSAC Objective Robust fit of model to data set S which contains outliers Algorithm (i) Randomly select a sample of s data points from S and instantiate the model from this subset. (ii) Determine the set of data points S i which are within a distance threshold t of the model. The set S i is the consensus set of samples and defines the inliers of S. (iii) If the size of S i is greater than some threshold T, reestimate the model using all the points in S i and terminate (iv) If the size of S i is less than T, select a new subset and repeat the above. (v) After N trials the largest consensus set S i is selected, and the model is re-estimated using all the points in the subset S i How many samples? Choose N (number of samples) so that, with probability p, at least one random sample is free from outliers. e.g. p=0.99 ( 1 ( 1 e) s ) N =1 p N = log( 1 p) /log( 1 ( 1 e) s ) e: proportion of outliers s: Number of points needed for the model proportion of outliers e s 5% 10% 20% 25% 30% 40% 50% 2 2 3 5 6 7 11 17 3 3 4 7 9 11 19 35 4 3 5 9 13 17 34 72 5 4 6 12 17 26 57 146 6 4 7 16 24 37 97 293 7 4 8 20 33 54 163 588 8 5 9 26 44 78 272 1177 Acceptable consensus set? Typically, terminate when inlier ratio reaches expected ratio of inliers T = ( 1 e)n What s a good How do we Determine the set of data points S i which are within a distance threshold t of the model when estimating the Fundamental Matrix? Using RANSAC to estimate the Fundamental Matrix What is the model? How many points are needed, and where do they come from? What distance do we use to compute the consensus set? How often do outliers occur 4

Rectification Given a pair of images, transform both images so that epipolar lines are scan lines. Image pair rectification simplify stereo matching by warping the images Apply projective transformation H so that epipolar lines correspond to horizontal scanlines e H e map epipole e to (1,0,0) try to minimize image distortion Note that rectified images usually not rectangular Rectification The ordering constraint The order of corresponding points along a pair of epipolar lines should be the same. Note: As seen in previous slides, doesn t always hold, but usually does and can vastly speed up computation Finding Correspondences Comparing Windows: For each window, match to closest window on epipolar line in other image. W(p l ) W(p r ) (Camps) 5

Greedy Correspondence Search Algorithm Match Metric Summary MATCH METRIC DEFINITION Normalized Cross-Correlation (NCC) For i = 1:nrows for j=1:ncols best(i,j) = -1 for k = mindisparity:maxdisparity c = Match_Metric(I 1 (i,j),i 2 (i,j+k),winsize) if (c > best(i,j)) best(i,j) = c disparities(i,j) = k end end end end Complexity O(nrows * ncols * disparities * winx * winy) Sum of Squared Differences (SSD) Normalized SSD Sum of Absolute Differences (SAD) Zero Mean SAD Rank Census These two are actually the same Stereo results Data from University of Tsukuba Results with window correlation Scene (Seitz) Ground truth Window-based matching (best window size) (From S. Seitz) Ground truth Results with better method Some Issues Near State of the art method Boykov et al., Fast Approximate Energy Minimization via Graph Cuts, International Conference on Computer Vision, September 1999. Ground truth Ambiguity Uniqueness Ordering Window size Window shape Lighting Half occluded regions (From S. Seitz) 6

Ambiguity Uniqueness Left Image Right Image Windows The window in left image might end up matching either of the two windows in the right image. They look very similar Each feature on left epipolar line match one and only one feature on right epipolar line. Uniqueness Reversing roles of left & right images The ordering constraint Left Image Right Image Windows The two window in left image might are very likely to match the same window in the right image. So, the right patch image patch doesn t have a unique match The order of corresponding points along a pair of epipolar lines should be the same. Note: As seen in previous slides, doesn t always hold, but usually does and can vastly speed up computation Window size Window Shape and Forshortening Effect of window size W = 3 W = 20 Better results with adaptive window T. Kanade and M. Okutomi, A Stereo Matching Algorithm with an Adaptive Window: Theory and Experiment,, Proc. International Conference on Robotics and Automation, 1991. D. Scharstein and R. Szeliski. Stereo matching with nonlinear diffusion. International Journal of Computer Vision, 28(2):155-174, July 1998 (Seitz) 7

Lighting Conditions (Photometric Variations) Problem of Occlusion: Half Occluded Regions W(P l ) W(P r ) 8