360 likes | 379 Views
This review discusses feature selection, camera calibration, and sparse structure modeling in computer vision for augmented reality applications. The process includes feature tracking, epipolar rectification, dense correspondence, and wide-baseline feature matching. Techniques like RANSAC and two-view initialization are used for robust multi-view reconstruction and Euclidean structure estimation. Examples and step-by-step instructions are provided for upgrading from projective to Euclidean reconstruction. Nonlinear refinement methods such as bundle adjustment are also covered.
E N D
Step-by-Step model building Jana Kosecka Department of Computer Science George Mason University http://www.cs.gmu.edu/~kosecka
Review Feature selection Feature selection Feature correspondence Camera Calibration Landing Augmented Reality Euclidean Reconstruction Vision Based Control Sparse Structure and camera motion SIGGRAPH, August 8, 2004
Review Feature selection Feature selection Feature correspondence Camera Calibration Epipolar Rectification Dense Correspondence Texture mapping Euclidean Reconstruction Sparse Structure and motion 3-D Model SIGGRAPH, August 8, 2004
Partial Scene Knowledge Partial Motion Knowledge Partial Calibration Knowledge Review Feature selection Feature selection Feature correspondence Projective Reconstruction Epipolar Rectification Camera Self-Calibration Dense Correspondence Texture mapping Euclidean Reconstruction 3-D Model SIGGRAPH, August 8, 2004
Examples SIGGRAPH, August 8, 2004
Feature Selection • Compute Image Gradient • Compute Feature Quality measure for each pixel • Search for local maxima Feature Quality Function Local maxima of feature quality function SIGGRAPH, August 8, 2004
Feature Tracking • Translational motion model • Closed form solution • Build an image pyramid • Start from coarsest level • Estimate the displacement at the coarsest level • Iterate until finest level SIGGRAPH, August 8, 2004
Coarse to fine feature tracking 0 1 2 • compute • warp the window in the second image by • update the displacement • go to finer level • At the finest level repeat for several iterations SIGGRAPH, August 8, 2004
Optical Flow • Integrate around over image patch • Solve SIGGRAPH, August 8, 2004
Affine feature tracking Intensity offset Contrast change SIGGRAPH, August 8, 2004
Tracked Features SIGGRAPH, August 8, 2004
Wide baseline matching Point features detected by Harris Corner detector SIGGRAPH, August 8, 2004
Wide baseline Feature Matching • Select the features in two views • For each feature in the first view • Find the feature in the second view that maximizes • Normalized cross-correlation measure Select the candidate with the similarity above selected threshold SIGGRAPH, August 8, 2004
More correspondences and Robust matching • Select set of putative correspondences • Repeat 1. Select at random a set of 8 successful matches 2. Compute fundamental matrix 3. Determine the subset of inliers, compute distance to epipolar line 4. Count the number of points in the consensus set SIGGRAPH, August 8, 2004
RANSAC in action Inliers Outliers SIGGRAPH, August 8, 2004
Epipolar Geometry • Epipolar geometry in two views • Refined epipolar geometry using nonlinear estimation of F SIGGRAPH, August 8, 2004
Two view initialization • Recover epipolar geometry • Compute (Euclidean) projection matrices and 3-D struct. • Compute (Projective) projection matrices and 3-D struct. calibrated uncalibrated unknown SIGGRAPH, August 8, 2004
3-D reconstruction from two views Projective Reconstruction SIGGRAPH, August 8, 2004
Repeat until convergence 2. Refine structure estimate given all the motions Multi-view reconstruction • Two view - initialized motion and structure estimates (scales) • Multi-view factorization - recover the remaining camera positions and refine the 3-D structure by iteratively computing 1. Compute i-th motion given the known structure iteration SIGGRAPH, August 8, 2004
Projective Ambiguity • calibrated case – projection matrices - and Euclidean structure • Uncalibrated case • for i-th frame • for 1st frame • Transform projection matrices and 3-D structure by H SIGGRAPH, August 8, 2004
Upgrade to Euclidean Reconstruction • From Projective to Euclidean Reconstruction • Remove the ambiguity characterized by • How to estimate H ? - Absolute quadric constraint • be recovered by a nonlinear minimization unknowns SIGGRAPH, August 8, 2004
Upgrade to Euclidean Reconstruction • Special case unknown focal length • other internal parameters are known (proj. center, aspect ratio) • Q can be parametrized in the following way • Zero entries in lead to linear constraints on Q • Initial estimate of Q can be obtained using linear techniques SIGGRAPH, August 8, 2004
Example of multi-view reconstruction Projective Reconstruction Euclidean reconstruction SIGGRAPH, August 8, 2004
Nonlinear Refinement • Euclidean Bundle adjustment • Initial estimates of are available • Final refinement, nonlinear minimization with respect to all unknowns SIGGRAPH, August 8, 2004
Example - Euclidean multi-view reconstruction SIGGRAPH, August 8, 2004
Example Original sequence Tracked Features SIGGRAPH, August 8, 2004
Recovered model SIGGRAPH, August 8, 2004
Euclidean Reconstruction SIGGRAPH, August 8, 2004
1. Map the epipole to infinity Translate the image center to the origin Rotate around z-axis for the epipole lie on the x-axis Transform the epipole from x-axis to infinity 2. Find a matching transformation is compatible with the epipolar geometry is chosen to minimize overall disparity Epipolar rectification • Make the epipolar lines parallel • Dense correspondences along image scanlines • Computation of warping homographies SIGGRAPH, August 8, 2004
Epipolar rectification Rectified Image Pair SIGGRAPH, August 8, 2004
Epipolar rectification Rectified Image Pair SIGGRAPH, August 8, 2004
Dense Matching • Establish dense correspondences along scan-lines • Standard stereo configuration • Constraints to guide the search 1. ordering constraint 2. disparity constraint – limit on disparity 3. uniqueness constraint – each point has a unique match in the second view SIGGRAPH, August 8, 2004
Dense Matching SIGGRAPH, August 8, 2004
Dense Reconstruction SIGGRAPH, August 8, 2004
Texture mapping, hole filling SIGGRAPH, August 8, 2004
Texture mapping SIGGRAPH, August 8, 2004