binocular stereo
play

Binocular Stereo Take 2 images from different known viewpoints 1 - PowerPoint PPT Presentation

Binocular Stereo Take 2 images from different known viewpoints 1 st calibrate Identify corresponding points between 2 images Derive the 2 lines on which world point lies Intersect 2 lines Public Library, Stereoscopic


  1. Binocular Stereo • Take 2 images from different known viewpoints ⇒ 1 st calibrate • Identify corresponding points between 2 images • Derive the 2 lines on which world point lies • Intersect 2 lines Public Library, Stereoscopic Looking Room, Chicago, by Phillips, 1923 1

  2. Stereo • Basic Principle: Triangulation – Gives reconstruction as intersection of two rays – Requires • calibration • point correspondence Depth from Disparity input image (1 of 2) depth map 3D rendering [Szeliski & Kang ‘95] X z u u’ f f baseline C C’ 2

  3. Multi-View Geometry • Different views of a scene are not unrelated • Several relationships exist between two, three and more cameras • Question: Given an image point in one image, does this restrict the position of the corresponding image point in another image? Epipolar Geometry: Formalism Epipolar Geometry: Demo • Depth can be reconstructed based on Java Applet corresponding points (disparity) • Finding corresponding points is hard & http://www- sop.inria.fr/robotvis/personnel/sbougnou/Meta3DViewer/EpipolarGeo.html computationally expensive • Epipolar geometry helps to significantly reduce Sylvain Bougnoux, INRIA Sophia Antipolis search from 2-D to 1-D line 3

  4. • Scene point P projects to image point p l = ( x l , y l , f l ) in left image and point p r = ( x r , y r , f r ) Marc Pollefeys, University of Leuven, in right image Belgium, Siggraph 2001 Course • Epipolar plane contains P , O l , O r , p l and p r – called co-planarity constraint • Given point p l in left image, its corresponding point in right image is on line defined by intersection of epipolar plane defined by p l , O l , O r and image I r – called epipolar line of p l • In other words, p l and O l define a ray where P may lie; projection of this ray into I r is the epipolar line • Epipolar Constraint : The correct match Epipolar Line Geometry for a point p l is constrained to a 1D search along the epipolar line in I r • All epipolar planes defined by all points in I l contain the line O l O r ⇒ All epipolar lines in I r intersect at a point, e r , called the epipole • Left and right epipoles, e l and e r , defined by the intersection of line O l O r with the left and right images I l and I r , respectively 4

  5. Epipolar Geometry Epipolar Geometry: Rectification Marc Pollefeys, • [Trucco 157-160] University of Leuven, Belgium, Siggraph 2001 Course • Motivation : Simplify search for corresponding points along scan lines (avoids interpolation and simplify sampling) • Technique : Image planes parallel -> pairs of conjugate epipolar lines become collinear and parallel to image axis. 5

  6. Stereo Image Rectification Rectification • Image Reprojection – reproject image planes onto common plane parallel to line between optical centers Marc Pollefeys, – a homography (3x3 transform) University of Leuven, Belgium, Siggraph applied to both input images 2001 Course – pixel motion is horizontal after this transformation – C. Loop and Z. Zhang, Computing Rectifying Homographies for Stereo Vision, Computer Vision and Pattern Recognition Conf., 1999 Rectification Procedure Rectification Example Given: Intrinsic and extrinsic parameters for 2 cameras 1. Rotate left camera so that the epipole goes to infinity along the horizontal axis ⇒ left image parallel to baseline before 2. Rotate right camera using same transformation 3. Rotate right camera by R, the transformation of the right camera frame with respect to the left camera after 4. Adjust scale in both cameras Implement as backward transformations, and resample using bilinear interpolation 6

  7. Definitions • Conjugate Epipolar Line: A pair of epipolar lines in I l and I r defined by P , O l and O r • Conjugate (i.e., corresponding) Pair: A pair of matching image points from I l and I r that are projections of a single scene point 7

  8. 8

  9. 9

  10. 10

  11. Basic Stereo Algorithm 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 minimum match cost Improvement: match windows Stereo Correspondence left image right image disparities (x1,y) (x2,y) stereo disparity = x1 - x2 is inversely proportional to depth 3D scene structure recovery 11

  12. Stereo Matching • Features vs. pixels? – Do we extract features prior to matching? Julesz-style Random Dot Stereogram Difficulties in Stereo Correspondence left image right image Perfect case : never happens! 1) Image noise: 2) Low texture: ? ? 12

  13. How Difficult is Correspondence? Local Approach high texture • Look at one image patch • local works for high texture at at time • enough texture in a patch to • Solve many small disambiguate d i f f i c u l t y problems independently • Faster, less accurate medium texture • global works up to medium Global Approach texture • propagates estimates from textured to untextured regions • Look at the whole image • Solve one large problem • salient regions work up to low low texture • Slower, more accurate texture • propagation fails; some regions are inherently ambiguous, match only unambiguous regions Local Approach [Levine’73] Fixed Window Size Problems window shapes need different left image right image p 3 2 1 C C C 3 2 1 left image true disparities d = i which gives best C p i 2 2 + + = Common C 2 2 fixed small window fixed large window + (SSD) 13

  14. Sample Compact Windows Window Size [Veksler 2001] W = 3 W = 20 • Effect of window size Better results with adaptive window – Smaller window • T. Kanade and M. Okutomi, A Stereo + Matching Algorithm with an Adaptive Window: Theory and Experiment , Proc. – Int. Conf. Robotics and Automation, – Larger window 1991 • D. Scharstein and R. Szeliski. Stereo + matching with nonlinear diffusion, Int. J. – Computer Vision, 28 (2):155-174, 1998 Results (% Errors) Comparison to Fixed Window Tsukuba Sawtooth Algorithm Venus Map Layered 1.58 1.52 0.34 0.37 Graph cuts 1.94 1.79 1.30 0.31 l a b Belief prop 1.15 1.00 0.98 0.84 o l g GC+occl. 1.27 2.79 0.36 1.79 true disparities l Veksler’s compact windows:16% errors l a Graph cuts 1.86 1.69 0.42 2.39 Multiw. Cut 8.08 0.53 0.61 0.26 Veksler’s var. 3.36 1.67 1.61 0.33 windows fixed small window: 33% errors fixed large window: 30% errors 14

  15. Constraints Additional geometric constraints for 1) corresponding pixels should be close in color correspondence q p A B C • Ordering of points : 2) most nearby pixels should have similar Continuous surface: disparity same order in both images. disparity except a few continuous places: • Is that always true? in most disparity places discontinuity A B C A B C A B C Forbidden Zone N Practical applications: – Object bulges out: ok Forbidden M – In general: ordering Zone of M across whole image is not reliable feature – Use ordering constraints for neighbors of M within small neighborhood m 1 n 1 n 2 m 2 only 15

  16. 16

  17. 17

  18. 18

  19. 19

  20. Global Approach [Horn’81, Poggio’84, …] encode desirable properties of d in E ( d ): d d d p q r E ( d )= E 2 MAP-MRF ∑ ∑ ( ( ) ) ( ) ( ( ) ) arg min E d = M d + P d , d p p q d { { } } ∈ ∈ Ρ ∈ Ν Ν p p , q eighbors match pixels of most nearby pixels similar color have similar disparity NP-hard problem ⇒ need approximations Minimization Methods Stereo as Energy Minimization • Matching cost formulated as energy 1. Continuous d : Gradient Descent – “data” term penalizing bad matches – Gets stuck in local minimum = − + D ( x , y , d ) I ( x , y ) J ( x d , y ) – “neighborhood term” encouraging spatial 2. Discrete d : Simulated Annealing smoothness (continuity; disparity gradient) [Geman and Geman, PAMI 1984] = V ( d , d ) cost of adjacent pixels with labels d1 and d2 1 2 – Takes forever or gets stuck in local minimum = − d d (or something similar) 1 2 ∑ ∑ = + E D ( x , y , d ) V ( d , d ) x , y x 1 , y 1 x 2 , y 2 ( x , y ) neighbors ( x 1 , y 1 ), ( x 2 , y 2 ) 20

  21. Stereo as a Graph Problem [Boykov, 1999] Graph Definition edge weight D ( x , y , d ) 3 d 3 d 3 d 2 d 2 d 1 d 1 • Initial state – Each pixel connected to it’s immediate neighbors edge weight Labels Pixels – Each disparity label connected to all of the pixels V ( d 1 d , ) 1 (disparities) Stereo Matching by Graph Cuts Graph Cuts Cut C • Graph G =( V , E ) + • Edge weight w : E R d 3 ∑ • Cost( C ) = w (edge) d 2 edges in C d 1 • Problem: find min Cost cut • Graph Cut – Delete enough edges so that • Solved in polynomial time w/ min-cut/max-flow • each pixel is (transitively) connected to exactly one label node • Boykov and Kolmogorov algorithm – Cost of a cut: sum of deleted edge weights – Finding min cost cut equivalent to finding global minimum of the – runs in seconds energy function 21

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend