masks © 2004 invitation to 3d vision lecture 7 step-by-step model buidling

36
MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

Upload: shanon-harrell

Post on 16-Dec-2015

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Lecture 7Step-by-Step Model Buidling

Page 2: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Review

Feature correspondence

Camera Calibration

Featureselection

Featureselection

Euclidean Reconstruction

Sparse Structure and camera motion

Landing

Augmented Reality

Vision Based Control

Page 3: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Review

Feature correspondence

Camera Calibration

Dense Correspondence

Texture mapping

Epipolar Rectification

Featureselection

Featureselection

3-D ModelSparse Structure and motion

Euclidean Reconstruction

Page 4: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Review

Feature correspondence

Projective Reconstruction

Euclidean Reconstruction

Dense Correspondence

Texture mapping

Epipolar Rectification

Featureselection

Featureselection

3-D Model

Camera Self-CalibrationPartial Scene KnowledgePartial Motion Knowledge

Partial Calibration Knowledge

Page 5: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Examples

Page 6: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

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

Page 7: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Feature Tracking

• Translational motion model

• Closed form solution

1. Build an image pyramid 2. Start from coarsest level 3. Estimate the displacement at the coarsest level 4. Iterate until finest level

Page 8: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Coarse to fine feature tracking

1. compute 2. warp the window in the second image by3. update the displacement 4. go to finer level 5. At the finest level repeat for several iterations

0

2

1

Page 9: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

• Integrate around over image patch

• Solve

Optical Flow

Page 10: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Affine feature tracking

Intensity offsetContrast change

Page 11: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Tracked Features

Page 12: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Wide baseline matching

Point features detected by Harris Corner detector

Page 13: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Wide baseline Feature Matching

1. Select the features in two views2. For each feature in the first view3. Find the feature in the second view that maximizes4. Normalized cross-correlation measure

Select the candidate with the similarity above selected threshold

Page 14: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

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

Page 15: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

RANSAC in action

Inliers Outliers

Page 16: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Epipolar Geometry

• Epipolar geometry in two views• Refined epipolar geometry using nonlinear estimation of F

Page 17: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

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

Page 18: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Projective Reconstruction

3-D reconstruction from two views

Page 19: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

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

2. Refine structure estimate given all the motions

Repeat until convergence

iteration

Page 20: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

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

Page 21: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

• From Projective to Euclidean Reconstruction

• Remove the ambiguity characterized by

• How to estimate H ? - Absolute quadric constraint

• be recovered by a nonlinear minimization

unknowns

Upgrade to Euclidean Reconstruction

Page 22: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

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

Page 23: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Example of multi-view reconstruction

Euclidean reconstructionProjective Reconstruction

Page 24: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Nonlinear Refinement

• Euclidean Bundle adjustment

• Initial estimates of are available • Final refinement, nonlinear minimization with respect to all unknowns

Page 25: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Example - Euclidean multi-view reconstruction

Page 26: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Example

Tracked FeaturesOriginal sequence

Page 27: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Recovered model

Page 28: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Euclidean Reconstruction

Page 29: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Epipolar 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 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

Page 30: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Epipolar rectification

Rectified Image Pair

Page 31: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Epipolar rectification

Rectified Image Pair

Page 32: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

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

Page 33: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Dense Matching

Page 34: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Dense Reconstruction

Page 35: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Texture mapping, hole filling

Page 36: MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling

MASKS © 2004 Invitation to 3D vision

Texture mapping