Bahadir K. Gunturk1 Phase Correlation Bahadir K. Gunturk2 Phase Correlation Take cross correlation Take inverse Fourier transform  Location of the impulse.

Slides:



Advertisements
Similar presentations
Stereo Vision Reading: Chapter 11
Advertisements

Public Library, Stereoscopic Looking Room, Chicago, by Phillips, 1923.
Stereo Many slides adapted from Steve Seitz. Binocular stereo Given a calibrated binocular stereo pair, fuse it to produce a depth image Where does the.
Recap from Previous Lecture Tone Mapping – Preserve local contrast or detail at the expense of large scale contrast. – Changing the brightness within.
Lecture 8: Stereo.
Stereo.
Camera calibration and epipolar geometry
3D Computer Vision and Video Computing 3D Vision Topic 3 of Part II Stereo Vision CSc I6716 Spring 2011 Zhigang Zhu, City College of New York
Stanford CS223B Computer Vision, Winter 2005 Lecture 5: Stereo I Sebastian Thrun, Stanford Rick Szeliski, Microsoft Hendrik Dahlkamp and Dan Morris, Stanford.
Stereo and Epipolar geometry
CS6670: Computer Vision Noah Snavely Lecture 17: Stereo
Multiple View Geometry : Computational Photography Alexei Efros, CMU, Fall 2005 © Martin Quinn …with a lot of slides stolen from Steve Seitz and.
Stanford CS223B Computer Vision, Winter 2006 Lecture 5 Stereo I
The Fundamental Matrix F
Stereopsis Mark Twain at Pool Table", no date, UCR Museum of Photography.
CS 223b 1 More on stereo and correspondence. CS 223b 2 =?f g Mostpopular For each window, match to closest window on epipolar line in other image. (slides.
3D from multiple views : Rendering and Image Processing Alexei Efros …with a lot of slides stolen from Steve Seitz and Jianbo Shi.
Computer Vision : CISC 4/689
Stereo and Structure from Motion
3D Computer Vision and Video Computing 3D Vision Topic 4 of Part II Stereo Vision CSc I6716 Spring 2008 Zhigang Zhu, City College of New York
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
3D Computer Vision and Video Computing 3D Vision Lecture 15 Stereo Vision (II) CSC 59866CD Fall 2004 Zhigang Zhu, NAC 8/203A
CSc D Computer Vision / Ioannis Stamos 3-D Computer Vision CSc Stereo.
3D Computer Vision and Video Computing 3D Vision Lecture 14 Stereo Vision (I) CSC 59866CD Fall 2004 Zhigang Zhu, NAC 8/203A
CSE473/573 – Stereo Correspondence
Announcements PS3 Due Thursday PS4 Available today, due 4/17. Quiz 2 4/24.
Computer Vision : CISC 4/689 CREDITS Rasmussen, UBC (Jim Little), Seitz (U. of Wash.), Camps (Penn. State), UC, UMD (Jacobs), UNC, CUNY.
Midterm went out on Tuesday (due next Tuesday) Project 3 out today Announcements.
Stereo Sebastian Thrun, Gary Bradski, Daniel Russakoff Stanford CS223B Computer Vision (with slides by James Rehg and.
Multiple View Geometry : Computational Photography Alexei Efros, CMU, Fall 2006 © Martin Quinn …with a lot of slides stolen from Steve Seitz and.
VZvZ r t b image cross ratio Measuring height B (bottom of object) T (top of object) R (reference point) ground plane H C scene cross ratio  scene points.
3-D Scene u u’u’ Study the mathematical relations between corresponding image points. “Corresponding” means originated from the same 3D point. Objective.
CSE 6367 Computer Vision Stereo Reconstruction Camera Coordinate Transformations “Everything should be made as simple as possible, but not simpler.” Albert.
Multi-view geometry. Multi-view geometry problems Structure: Given projections of the same 3D point in two or more images, compute the 3D coordinates.
Computer Vision Spring ,-685 Instructor: S. Narasimhan WH 5409 T-R 10:30am – 11:50am Lecture #15.
Camera Calibration & Stereo Reconstruction Jinxiang Chai.
Structure from images. Calibration Review: Pinhole Camera.
Lecture 12 Stereo Reconstruction II Lecture 12 Stereo Reconstruction II Mata kuliah: T Computer Vision Tahun: 2010.
Geometric Camera Models and Camera Calibration
Recap from Monday Image Warping – Coordinate transforms – Linear transforms expressed in matrix form – Inverse transforms useful when synthesizing images.
Shape from Stereo  Disparity between two images  Photogrammetry  Finding Corresponding Points Correlation based methods Feature based methods.
Stereo Vision Reading: Chapter 11 Stereo matching computes depth from two or more images Subproblems: –Calibrating camera positions. –Finding all corresponding.
3D Sensing and Reconstruction Readings: Ch 12: , Ch 13: , Perspective Geometry Camera Model Stereo Triangulation 3D Reconstruction by.
Stereo Readings Szeliski, Chapter 11 (through 11.5) Single image stereogram, by Niklas EenNiklas Een.
Stereo Many slides adapted from Steve Seitz.
Project 2 code & artifact due Friday Midterm out tomorrow (check your ), due next Fri Announcements TexPoint fonts used in EMF. Read the TexPoint.
Stereo Many slides adapted from Steve Seitz. Binocular stereo Given a calibrated binocular stereo pair, fuse it to produce a depth image image 1image.
Computer Vision, Robert Pless
Computer Vision Stereo Vision. Bahadir K. Gunturk2 Pinhole Camera.
Computer Vision Lecture #10 Hossam Abdelmunim 1 & Aly A. Farag 2 1 Computer & Systems Engineering Department, Ain Shams University, Cairo, Egypt 2 Electerical.
Geometric Transformations
Lecture 16: Stereo CS4670 / 5670: Computer Vision Noah Snavely Single image stereogram, by Niklas EenNiklas Een.
stereo Outline : Remind class of 3d geometry Introduction
Digital Image Processing
Solving for Stereo Correspondence Many slides drawn from Lana Lazebnik, UIUC.
Computer vision: models, learning and inference M Ahad Multiple Cameras
Project 2 due today Project 3 out today Announcements TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAA.
John Morris Stereo Vision (continued) Iolanthe returns to the Waitemata Harbour.
Geometry Reconstruction March 22, Fundamental Matrix An important problem: Determine the epipolar geometry. That is, the correspondence between.
John Morris These slides were adapted from a set of lectures written by Mircea Nicolescu, University of Nevada at Reno Stereo Vision Iolanthe in the Bay.
Multiple View Geometry and Stereo. Overview Single camera geometry – Recap of Homogenous coordinates – Perspective projection model – Camera calibration.
Correspondence and Stereopsis. Introduction Disparity – Informally: difference between two pictures – Allows us to gain a strong sense of depth Stereopsis.
CSE 185 Introduction to Computer Vision Stereo 2.
Stereo CS4670 / 5670: Computer Vision Noah Snavely Single image stereogram, by Niklas EenNiklas Een.
© 2005 Yusuf Akgul Gebze Institute of Technology Department of Computer Engineering Computer Vision Stereo.
Noah Snavely, Zhengqi Li
Thanks to Richard Szeliski and George Bebis for the use of some slides
Multiple View Geometry for Robotics
Computer Vision Stereo Vision.
Stereo vision Many slides adapted from Steve Seitz.
Presentation transcript:

Bahadir K. Gunturk1 Phase Correlation

Bahadir K. Gunturk2 Phase Correlation Take cross correlation Take inverse Fourier transform  Location of the impulse function gives the translation amount between the images

Bahadir K. Gunturk3 Phase Correlation

Computer Vision Stereo Vision

Bahadir K. Gunturk5 Coordinate Systems Let O be the origin of a 3D coordinate system spanned by the unit vectors i, j, and k orthogonal to each other. i j k O P Coordinate vector

Bahadir K. Gunturk6 Homogeneous Coordinates n H O P Homogeneous coordinates

Bahadir K. Gunturk7 Coordinate System Changes Translation

Bahadir K. Gunturk8 Coordinate System Changes Rotation where Exercise: Write the rotation matrix for a 2D coordinate system.

Bahadir K. Gunturk9 Coordinate System Changes Rotation + Translation

Bahadir K. Gunturk10 Perspective Projection Perspective projection equations

Bahadir K. Gunturk11 Review: Pinhole Camera

Bahadir K. Gunturk12 Review: Perspective Projection

Bahadir K. Gunturk13 Multi-View Geometry Relates 3D World Points Camera Centers Camera Orientations Camera Parameters Image Points

Bahadir K. Gunturk14 Stereo scene point optical center image plane p p’

Bahadir K. Gunturk15 Finding Correspondences p p’

Bahadir K. Gunturk16 Three Questions Correspondence geometry: Given an image point p in the first view, how does this constrain the position of the corresponding point p’ in the second? Camera geometry (motion): Given a set of corresponding image points {p i ↔ p’ i }, i=1,…,n, what are the cameras C and C’ for the two views? Or what is the geometric transformation between the views? Scene geometry (structure): Given corresponding image points p i ↔ p’ i and cameras C, C’, what is the position of the point X in space?

Bahadir K. Gunturk17 Stereo Constraints X1X1 Y1Y1 Z1Z1 O1O1 Image plane Focal plane M p p’ Y2Y2 X2X2 Z2Z2 O2O2 Epipolar Line Epipole

Bahadir K. Gunturk18 Epipolar Constraint

Bahadir K. Gunturk19 From Geometry to Algebra O O’ P p p’ All vectors shown lie on the same plane.

Bahadir K. Gunturk20 From Geometry to Algebra O O’ P p p’

Bahadir K. Gunturk21 Matrix form of cross product a×b=|a||b|sin(η)u a=a x i+a y j+a z k b=b x i+b y j+b z k

Bahadir K. Gunturk22 The Essential Matrix Essential matrix

Bahadir K. Gunturk23 Stereo Vision Two cameras. Known camera positions. Recover depth.

Bahadir K. Gunturk24 Recovering Depth Information O2O2O2O2 P’ 2 =Q’ 2 P Q O1O1O1O1 P’ 1 Q’ 1 Depth can be recovered with two images and triangulation.

Bahadir K. Gunturk25 A Simple Stereo System Z w =0 LEFT CAMERA Left image: reference Right image: target RIGHT CAMERA Elevation Z w disparity Depth Z baseline

Bahadir K. Gunturk26 Stereo View Left View Right View Disparity

Bahadir K. Gunturk27 Stereo Disparity The separation between two matching objects is called the stereo disparity.

Bahadir K. Gunturk28 Parallel Cameras OlOlOlOl OrOrOrOr P plplplpl prprprpr T Z xlxlxlxl xrxrxrxr f T is the stereo baseline Disparity:

Bahadir K. Gunturk29 Disparity Equation P(X,Y,Z) p l (x l,y l ) Optical Center O l f = focal length Image plane LEFT CAMERA T = Baseline Depth Stereo system with parallel optical axes f = focal length Optical Center O r p r (x r,y r ) Image plane RIGHT CAMERA

Bahadir K. Gunturk30 Disparity vs. Baseline P(X,Y,Z) p l (x l,y l ) Optical Center O l f = focal length Image plane LEFT CAMERA T = Baseline Depth f = focal length Optical Center O r p r (x r,y r ) Image plane RIGHT CAMERA Disparity Stereo system with parallel optical axes

Bahadir K. Gunturk31 Finding Correspondences

Bahadir K. Gunturk32 Correlation Approach For Each point (x l, y l ) in the left image, define a window centered at the point (x l, y l ) LEFT IMAGE

Bahadir K. Gunturk33 Correlation Approach … search its corresponding point within a search region in the right image (x l, y l ) RIGHT IMAGE

Bahadir K. Gunturk34 Correlation Approach … the disparity (dx, dy) is the displacement when the correlation is maximum (x l, y l )dx(x r, y r ) RIGHT IMAGE

Bahadir K. Gunturk35 Stereo correspondence Epipolar Constraint  Reduces correspondence problem to 1D search along epipolar lines epipolar plane epipolar line

Bahadir K. Gunturk36 For each epipolar line For each pixel in the left image Compare with every pixel on same epipolar line in right image Pick pixel with the minimum matching error Of course, matching single pixels won’t work; so, we match regions around pixels. Stereo correspondence

Bahadir K. Gunturk37 Comparing Windows =?f g Mostpopular For each window, match to closest window on epipolar line in other image.

Bahadir K. Gunturk38 Maximize Cross correlation Minimize Sum of Squared Differences Comparing Windows

Bahadir K. Gunturk39 Feature-based correspondence Features most commonly used:  Corners Similarity measured in terms of:  surrounding gray values (SSD, Cross-correlation)  location  Edges, Lines Similarity measured in terms of:  orientation  contrast  coordinates of edge or line’s midpoint  length of line

Bahadir K. Gunturk40 Feature-based Approach For each feature in the left image… LEFT IMAGE corner line structure

Bahadir K. Gunturk41 Feature-based Approach Search in the right image… the disparity (dx, dy) is the displacement when the similarity measure is maximum RIGHT IMAGE corner line structure

Bahadir K. Gunturk42 Correspondence Difficulties Why is the correspondence problem difficult?  Some points in each image will have no corresponding points in the other image. (1) the cameras might have different fields of view. (2) due to occlusion. A stereo system must be able to determine the image parts that should not be matched.

Bahadir K. Gunturk43 Structured Light Structured lighting  Feature-based methods are not applicable when the objects have smooth surfaces (i.e., sparse disparity maps make surface reconstruction difficult).  Patterns of light are projected onto the surface of objects, creating interesting points even in regions which would be otherwise smooth.  Finding and matching such points is simplified by knowing the geometry of the projected patterns.

Bahadir K. Gunturk44 Stereo results Ground truthScene  Data from University of Tsukuba (Seitz)

Bahadir K. Gunturk45 Results with window correlation Estimated depth of field (a fixed-size window) Ground truth (Seitz)

Bahadir K. Gunturk46 Results with better method A state of the art method Boykov et al., Fast Approximate Energy Minimization via Graph Cuts,Fast Approximate Energy Minimization via Graph Cuts International Conference on Computer Vision, September Ground truth (Seitz)

Bahadir K. Gunturk47 Window size W = 3W = 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.A Stereo Matching Algorithm with an Adaptive Window: Theory and Experiment D. Scharstein and R. Szeliski. Stereo matching with nonlinear diffusion. International Journal of Computer Vision, 28(2): , July 1998Stereo matching with nonlinear diffusion Effect of window size (Seitz)

Bahadir K. Gunturk48 Other constraints It is possible to put some constraints. For example: smoothness. (Disparity usually doesn’t change too quickly.)

Bahadir K. Gunturk49 Parameters of a Stereo System Intrinsic Parameters  Characterize the transformation from camera to pixel coordinate systems of each camera  Focal length, image center, aspect ratio Extrinsic parameters  Describe the relative position and orientation of the two cameras  Rotation matrix R and translation vector T p l p r P OlOl OrOr XlXl XrXr PlPl PrPr flfl frfr ZlZl YlYl ZrZr YrYr R, T

Bahadir K. Gunturk50 Applications courtesy of Sportvision First-down line

Bahadir K. Gunturk51 Applications Virtual advertising courtesy of Princeton Video Image