Title: Step-by-Step%20model%20building
1 Step-by-Step model building
Jana Kosecka Department of Computer Science
George Mason University http//www.cs.gmu.edu/kos
ecka
2Review
Feature selection
Feature selection
Feature correspondence
Camera Calibration
Landing
Augmented Reality
Euclidean Reconstruction
Vision Based Control
Sparse Structure and camera motion
3Review
Feature selection
Feature selection
Feature correspondence
Camera Calibration
Epipolar Rectification
Dense Correspondence
Texture mapping
Euclidean Reconstruction
Sparse Structure and motion
3-D Model
4Review
Feature selection
Feature selection
Feature correspondence
Projective Reconstruction
Epipolar Rectification
Camera Self-Calibration
Dense Correspondence
Texture mapping
Euclidean Reconstruction
3-D Model
5Examples
6Feature Selection
- Compute Image Gradient
- Compute Feature Quality measure for each
pixel - Search for local maxima
Feature Quality Function
Local maxima of feature quality function
7Feature 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
8Coarse 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
9Optical Flow
- Integrate around over image patch
10Affine feature tracking
Intensity offset
Contrast change
11Tracked Features
12Wide baseline matching
Point features detected by Harris Corner detector
13Difficulty in motion estimation using
wide-baseline matching
14Least square estimator cant tolerate any outlier
- Robust techniques is needed to solve the problem.
15Robust estimators for dealing with outliers
- Use robust objective functions
- The M-estimator and Least Median of Squares
(LMedS) Estimator - Neither of them can tolerate more than 50
outliers - The RANSAC (RANdom SAmple Consensus) algorithm
- Proposed by Fischler and Bolles
- The most popular technique used in Computer
Vision community - It can tolerate more than 50 outliers
16The RANSAC algorithm
- Generate M (a predetermined number) model
hypotheses, each of them is computed using a
minimal subset of points - Evaluate each hypothesis
- Compute its residuals with respect to all data
points. - Points with residuals less than some threshold
are classified as its inliers - The hypothesis with the maximal number of inliers
is chosen. Then re-estimate the model parameter
using its identified inliers.
17RANSAC Practice
- The theoretical number of samples needed to
ensure 95 confidence that at least one outlier
free sample could be obtained.
- It has been noticed that the theoretical
estimates are wildly optimistic - Usually the actual number of required samples is
almost an magnitude more than the theoretical
estimate.
18The difficulty in applying RANSAC
- Drawbacks of the standard RANSAC algorithm
- Requires a large number of samples for data with
many outliers (exactly the data that we are
dealing with) - Needs to know the outlier ratio to estimate the
number of samples - Requires a threshold for determining whether
points are inliers - Various improvements to standard approaches
Torr99, Murray02, Nister04, Matas05,
Sutter05 and many others - Still rely on finding outlier-free samples.
19Robust technique result
20More 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 -
21RANSAC in action
Inliers
Outliers
22Epipolar Geometry
- Epipolar geometry in two views
- Refined epipolar geometry using nonlinear
estimation of F
23Two view initialization
- Recover epipolar geometry (essential/fundamental
matrix) - Compute (Euclidean) projection matrices and 3-D
struct. - Compute (Projective) projection matrices and
3-D struct. -
calibrated
24Multiple-view structure and motion recovery
Given images of points Knowing all the
motions, estimate the depth of a point using all
frames
Estimate motion between any two frames using the
points and their depths visible in those frames
25Multi-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
26Example of multi-view reconstruction
Euclidean reconstruction
27Nonlinear Refinement
- Euclidean Bundle adjustment
- Initial estimates of are
available - Final refinement, nonlinear minimization with
respect - to all unknowns
28Example - Euclidean multi-view reconstruction
29Example
Original sequence
Tracked Features
30Recovered model
31Euclidean Reconstruction
32Epipolar rectification
- Make the epipolar lines parallel
- Dense correspondences along image scanlines
- Computation of warping homographies
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 such that 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
33Epipolar rectification
Rectified Image Pair
34Epipolar rectification
Rectified Image Pair
35Dense 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
-
36Dense Matching
37Dense Reconstruction
38Texture mapping, hole filling
39Texture mapping