MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.

18
MASKS © 2004 Invitation to 3D vision Lecture 3 Lecture 3 Image Primitives Image Primitives and and Correspondence Correspondence

Transcript of MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.

Page 1: MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.

MASKS © 2004 Invitation to 3D vision

Lecture 3Lecture 3

Image Primitives Image Primitives and and

CorrespondenceCorrespondence

Page 2: MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.

MASKS © 2004 Invitation to 3D vision

Given an image point in left image, what is the (corresponding) point in the rightimage, which is the projection of the same 3-D point

Image Primitives and Correspondence

Page 3: MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.

MASKS © 2004 Invitation to 3D vision

Correspondence

Lambertian assumption

Rigid body motion

Matching - Correspondence

Page 4: MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.

MASKS © 2004 Invitation to 3D vision

Translational model

Affine model

Transformation of the intensity values and occlusions

Local Deformation Models

Page 5: MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.

MASKS © 2004 Invitation to 3D vision

• Translational model

• RHS approx. by first two terms of Taylor series

• Small baseline

• Brightness constancy constraint

Feature Tracking and Optical Flow

Page 6: MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.

MASKS © 2004 Invitation to 3D vision

• Normal flow

Aperture Problem

Page 7: MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.

MASKS © 2004 Invitation to 3D vision

• Integrate around over image patch

• Solve

Optical Flow

Page 8: MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.

MASKS © 2004 Invitation to 3D vision

rank(G) = 0 blank wall problemrank(G) = 1 aperture problem rank(G) = 2 enough texture – good feature candidates

Conceptually:

In reality: choice of threshold is involved

Optical Flow, Feature Tracking

Page 9: MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.

MASKS © 2004 Invitation to 3D vision

• Qualitative properties of the motion fields

• Previous method - assumption locally constant flow

• Alternative regularization techniques (locally smooth flow fields, integration along contours)

Optical Flow

Page 10: MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.

MASKS © 2004 Invitation to 3D vision

Feature Tracking

Page 11: MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.

MASKS © 2004 Invitation to 3D vision

3D Reconstruction - Preview

Page 12: MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.

MASKS © 2004 Invitation to 3D vision

• Compute eigenvalues of G• If smalest eigenvalue of G is bigger than - mark pixel as candidate feature point

• Alternatively feature quality function (Harris Corner Detector)

Point Feature Extraction

Page 13: MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.

MASKS © 2004 Invitation to 3D vision

Harris Corner Detector - Example

Page 14: MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.

MASKS © 2004 Invitation to 3D vision

Wide Baseline Matching

Page 15: MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.

MASKS © 2004 Invitation to 3D vision

• Sum of squared differences

• Normalize cross-correlation

• Sum of absolute differences

Region based Similarity Metric

Page 16: MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.

MASKS © 2004 Invitation to 3D vision

• Compute image derivatives • if gradient magnitude > and the value is a local maximum along gradient direction – pixel is an edge candidate

Canny edge detector

gradient magnitudeoriginal image

Edge Detection

Page 17: MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.

MASKS © 2004 Invitation to 3D vision

x

y

• Edge detection, non-maximum suppression (traditionally Hough Transform – issues of resolution, threshold selection and search for peaks in Hough space)• Connected components on edge pixels with similar orientation - group pixels with common orientation

Non-max suppressed gradient magnitude

Line fitting

Page 18: MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.

MASKS © 2004 Invitation to 3D vision

• Line fitting Lines determined from eigenvalues and eigenvectors of A• Candidate line segments - associated line quality

second moment matrixassociated with eachconnected component

Line Fitting