25
Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications. 2010. 1. Jing Luo | Megvii Tech Talk | Mar 2018

Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications

  • Upload
    others

  • View
    32

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications

Motion and Photography

Computer Vision:Algorithms and Applications

Reference: R. Szeliski. Computer Vision: Algorithms and Applications. 2010. 1.

Jing Luo | Megvii Tech Talk | Mar 2018

Page 2: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications

1.Structure from motion

Page 3: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications

Structure from motion

▣ Given a set of flow fields or displacement vectors from a moving camera time, determine:○ the sequence of camera poses○ the 3D structure of the scene2D points

3D Geometry(structure)

Camera(motion)

Page 4: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications
Page 5: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications
Page 6: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications

Triangulation

▣ Determining a point’s 3D position from a set of corresponding image locations and known camera positions.

Page 7: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications

Triangulation

▣ Determining a point’s 3D position from a set of corresponding image locations and known camera positions.

Page 8: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications

Factorization

▣ When processing video sequences, we often get extended feature tracks which it is possible to recover the structure and motion using a process called factorization.

Page 9: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications

Factorization

▣ Assumption○ Pixel correspondence

■ via tracking○ Projection model

■ classic methods are orthographic■ newer methods use perspective

○ The positions of “P” points in “F” frames (F>=3), which are not all coplanar, and have been tracked.

Page 10: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications

3D to 2D projections

▣ Orthography

Page 11: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications

3D to 2D projections

▣ 3D perspective

Page 12: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications

Factorization

▣ Feature points

Page 13: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications

Factorization

▣ Mean normalize feature points

Page 14: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications

Factorization

▣ Orthographic projection

i, j, k are unit vectors along X, Y, Z

Page 15: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications

Factorization

▣ Subtract mean

If Origin of world is at the centroid of object points,

second term is zero.

Page 16: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications

Factorization

▣ Measurement matrix

2F ×3

3 ×P

Page 17: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications

Factorization

▣ Rank theorem

2F ×3

3 × P

Centered measurement matrixMotion

(camera rotation)

Structure

(3D scene points)

Rank of S is 3, because points

in 3D space are not Co-planar.Without noise, the centered

measurement matrix is at

most of rank three.

Proof.

Page 18: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications

Factorization

▣ Importance of rank theorem○ Shows that video data is highly redundant○ Precisely quantifies the redundancy○ Suggests an algorithm for solving SFM

▣ SVD

▣ Theorem: ○ Any m by n matrix A, for which ,can be written as

Page 19: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications

Factorization

▣ Importance of rank theorem○ Shows that video data is highly redundant○ Precisely quantifies the redundancy○ Suggests an algorithm for solving SFM

▣ SVD

▣ Theorem: ○ Any m by n matrix A, for which ,can be written as

Page 20: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications

Factorization

▣ SVD

Page 21: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications

Factorization

▣ SVD

Page 22: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications

Factorization

▣ SVD

Page 23: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications

Factorization

▣ Factorization approach

Page 24: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications

Factorization

▣ Summary

Page 25: Computer Vision: Algorithms and Applications...Motion and Photography Computer Vision: Algorithms and Applications Reference: R. Szeliski. Computer Vision: Algorithms and Applications

Factorization