Download presentation
Presentation is loading. Please wait.
1
Assignment 2 Compute F automatically from image pair (putative matches, 8-point, 7-point, iterative, RANSAC, guided matching) (due by Wednesday 19/03/03)
2
Rectification and structure computation class 15 Multiple View Geometry Comp 290-089 Marc Pollefeys
3
Content Background: Projective geometry (2D, 3D), Parameter estimation, Algorithm evaluation. Single View: Camera model, Calibration, Single View Geometry. Two Views: Epipolar Geometry, 3D reconstruction, Computing F, Computing structure, Plane and homographies. Three Views: Trifocal Tensor, Computing T. More Views: N-Linearities, Multiple view reconstruction, Bundle adjustment, auto- calibration, Dynamic SfM, Cheirality, Duality
4
Multiple View Geometry course schedule (subject to change) Jan. 7, 9Intro & motivationProjective 2D Geometry Jan. 14, 16(no class)Projective 2D Geometry Jan. 21, 23Projective 3D Geometry(no class) Jan. 28, 30Parameter Estimation Feb. 4, 6Algorithm EvaluationCamera Models Feb. 11, 13Camera CalibrationSingle View Geometry Feb. 18, 20Epipolar Geometry3D reconstruction Feb. 25, 27Fund. Matrix Comp. Mar. 4, 6Structure Comp.Planes & Homographies Mar. 18, 20Trifocal TensorThree View Reconstruction Mar. 25, 27Multiple View GeometryMultipleView Reconstruction Apr. 1, 3Bundle adjustmentPapers Apr. 8, 10Auto-CalibrationPapers Apr. 15, 17Dynamic SfMPapers Apr. 22, 24CheiralityProject Demos
5
Two-view geometry Epipolar geometry 3D reconstruction F-matrix comp. Structure comp.
6
Automatic computation of F (i)Interest points (ii)Putative correspondences (iii)RANSAC (iv) Non-linear re-estimation of F (v)Guided matching (repeat (iv) and (v) until stable)
7
Select strongest features (e.g. 1000/image) Feature points
8
Evaluate ZNCC,SSD,SAD for all features with similar coordinates Keep mutual best matches Still many wrong matches! ? Feature matching
9
Step 1. Extract features Step 2. Compute a set of potential matches Step 3. do Step 3.1 select minimal sample (i.e. 7 matches) Step 3.2 compute solution(s) for F Step 3.3 determine inliers until (#inliers,#samples)<95% #inliers90%80%70%60%50% #samples51335106382 Step 4. Compute F based on all inliers Step 5. Look for additional matches Step 6. Refine F based on all correct matches (generate hypothesis) (verify hypothesis) RANSAC
10
restrict search range to neighborhood of epipolar line ( 1.5 pixels) relax disparity restriction (along epipolar line) Finding more matches: guided matching
11
geometric relations between two views is fully described by recovered 3x3 matrix F two-view geometry
12
Image pair rectification simplify stereo matching by warping the images Apply projective transformation so that epipolar lines correspond to horizontal scanlines e e map epipole e to (1,0,0) try to minimize image distortion problem when epipole in (or close to) the image
13
Planar rectification Bring two views to standard stereo setup (moves epipole to ) (not possible when in/close to image) ~ image size (calibrated) Distortion minimization (uncalibrated) (standard approach)
16
Polar re-parameterization around epipoles Requires only (oriented) epipolar geometry Preserve length of epipolar lines Choose so that no pixels are compressed original image rectified image Polar rectification (Pollefeys et al. ICCV’99) Works for all relative motions Guarantees minimal image size
17
polar rectification: example
19
Example: Béguinage of Leuven Does not work with standard Homography-based approaches
20
Example: Béguinage of Leuven
21
Stereo matching attempt to match every pixel use additional constraints
22
Exploiting motion and scene constraints Ordering constraint Uniqueness constraint Disparity limit Disparity continuity constraint Epipolar constraint Epipolar constraint (through rectification)
23
Ordering constraint 1 2 3 4,5 6 1 2,3 4 5 6 2 1 3 4,5 6 1 2,3 4 5 6 surface slice surface as a path occlusion right occlusion left
24
Uniqueness constraint In an image pair each pixel has at most one corresponding pixel In general one corresponding pixel In case of occlusion there is none
25
Disparity constraint surface slice surface as a path bounding box disparity band use reconsructed features to determine bounding box constant disparity surfaces
26
Disparity continuity constraint Assume piecewise continuous surface piecewise continuous disparity In general disparity changes continuously discontinuities at occluding boundaries
27
Stereo matching Optimal path (dynamic programming ) Similarity measure (SSD or NCC) Constraints epipolar ordering uniqueness disparity limit disparity gradient limit Trade-off Matching cost (data) Discontinuities (prior) (Cox et al. CVGIP’96; Koch’96; Falkenhagen´97; Van Meerbergen,Vergauwen,Pollefeys,VanGool IJCV‘02)
28
Hierarchical stereo matching Downsampling (Gaussian pyramid) Disparity propagation Allows faster computation Deals with large disparity ranges ( Falkenhagen´97;Van Meerbergen,Vergauwen,Pollefeys,VanGool IJCV‘02)
29
Disparity map image I(x,y) image I´(x´,y´) Disparity map D(x,y) (x´,y´)=(x+D(x,y),y)
30
Example: reconstruct image from neighboring images
31
Multi-view depth fusion Compute depth for every pixel of reference image Triangulation Use multiple views Up- and down sequence Use Kalman filter (Koch, Pollefeys and Van Gool. ECCV‘98) Allows to compute robust texture
32
Point reconstruction
33
linear triangulation homogeneous inhomogeneous invariance? algebraic error yes, constraint no (except for affine)
34
geometric error possibility to compute using LM (for 2 or more points) or directly (for 2 points)
35
Geometric error Reconstruct matches in projective frame by minimizing the reprojection error (see Hartley&Sturm,CVIU´97) Non-iterative optimal solution
36
Optimal 3D point in epipolar plane Given an epipolar plane, find best 3D point for (x 1,x 2 ) x1x1 x2x2 l1l1 l2l2 l1l1 x1x1 x2x2 l2l2 x1´x1´ x2´x2´ Select closest points (x 1 ´,x 2 ´) on epipolar lines Obtain 3D point through exact triangulation Guarantees minimal reprojection error (given this epipolar plane)
37
Optimal epipolar plane Reconstruct matches in projective frame by minimizing the reprojection error Non-iterative method Determine the epipolar plane for reconstruction Reconstruct optimal point from selected epipolar plane (Hartley and Sturm, CVIU´97) (polynomial of degree 6 check all minima, incl ∞ ) m1m1 m2m2 l 1 l 2 3DOF 1DOF
38
Reconstruction uncertainty consider angle between rays
39
Line reconstruction doesn‘t work for epipolar plane
40
Next class: Scene and plane homographies
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.