1 of 65

1

EC 500 A1: �Structure from Motion (SfM)�& Neural Radiance Field (NeRF)

2 of 65

Today (44 & 45)

  • Recap
  • Structure from motion
  • Neural radiance field
  • A glance at Gaussian splatting

​

​

​

2

3 of 65

3D reconstruction

  • Estimate the 3D location of each pixel
  • Estimate the 3D geometry (and corresponding colors) that lead to the observed images

Depth estimation and 3D reconstruction

4 of 65

Stereo depth estimation

[Figure credit: A. Torralba, P. Isola, and W. T. Freeman, Foundations of Computer Vision.]

5 of 65

Multi-view geometry

  • Looking through multiple “cameras” or “eyes”

[Building Rome in a Day, ICCV 2009]

6 of 65

Today (44 & 45)

  • Recap
  • Structure from motion
  • Neural radiance field
  • A glance at Gaussian splatting

​

​

​

​

​

6

7 of 65

Structure from Motion (SFM)

  • Given a set of M images with overlapping content

​

  • We want to recover the 3D structure of the scene and the locations of the camera for each image

​

​

8 of 65

Sparse SFM

  • Key elements:
    • Multiple “views” of the same object
    • Key points from each frame
    • Correspondence of those points: knowing that they are from the same 3D point

​

  • With this information, we want to
    • Reconstruct the “3D” locations of the key points and hopefully the whole object from 2D images

​

9 of 65

Sparse SFM

[Figure credit: A. Torralba, P. Isola, and W. T. Freeman, Foundations of Computer Vision.]

10 of 65

Problem formulation

  •  

 

 

 

 

11 of 65

Quick review of camera parameters

 

 

12 of 65

Quick review of camera parameters

  • Extrinsic parameters

13 of 65

Quick review of camera parameters

  • Intrinsic parameters

(X, Y, Z)

Matrix K

14 of 65

Quick review of camera parameters

  • Put together (intrinsic + extrinsic)

 

15 of 65

Questions?

15

16 of 65

Problem formulation

  •  

 

 

 

 

rotation

translation

Intrinsic

Which are knowns? Which are unknowns?

17 of 65

Problem formulation

18 of 65

Problem formulation

  •  

 

 

 

 

rotation

translation

Intrinsic

19 of 65

Simplified version

  • Images: We have 2NM “matched” knowns

​

  • Points: We have 3N unknowns

​

  • Cameras: We have M-1 unknown matrices (one as origin)
    • 3(M - 1) for rotation
    • 3(M - 1) for translation
    • 3~4 M for intrinsic

​

​

20 of 65

Questions?

20

21 of 65

Reprojection error for optimization

  • High-levelly:

​

​

​

​

    • From 2D knowns, we estimate the unknowns (3D locations + camera parameters)
    • From the estimated unknowns, we can reproject them to 2D
    • We can then compare the “known” 2D vs. “estimated” 2D

22 of 65

Reprojection error for optimization

  • High-levelly:

​

​

​

​

    • From 2D knowns, we estimate the unknowns (3D locations + camera parameters)
    • From the estimated unknowns, we can reproject them to 2D
    • We can then compare the “known” 2D vs. “estimated” 2D

23 of 65

Reprojection error for optimization

  • High-levelly:

​

​

​

​

    • From 2D knowns, we estimate the unknowns (3D locations + camera parameters)
    • From the estimated unknowns, we can reproject them to 2D
    • We can then compare the “known” 2D vs. “estimated” 2D

Intrinsic & extrinsic

24 of 65

Reprojection error for optimization

  •  

heterogeneous

homogeneous

25 of 65

Reprojection error for optimization

  • High-levelly:

​

​

​

​

    • From 2D knowns, we estimate the unknowns (3D locations + camera parameters)
    • From the estimated unknowns, we can reproject them to 2D
    • We can then compare the “known” 2D vs. “estimated” 2D

26 of 65

Reprojection error for optimization

  •  

27 of 65

Questions?

27

28 of 65

What is missing beyond the loss function?

29 of 65

What is missing beyond the loss function?

  • How do we detect key points and correspond them across images?

​

  • Interest point detection:
    • Stable under different sets of geometric transformations and illumination changes
    • Stable in the sense of “detectability”, “distinctiveness”, “feature invariance”

30 of 65

Interest point detection and matching

Traditional: SIFT (Scale-invariant feature transform)

31 of 65

Interest point detection and matching

Recent: neural networks

32 of 65

Interest point detection and matching

Points surrounded by image regions with strong spatial changes

​

​

Likely will be “re-found” from another views

33 of 65

Interest point detection and matching

  • Need “discriminative” local image features

[Figure credit: A. Torralba, P. Isola, and W. T. Freeman, Foundations of Computer Vision.]

34 of 65

Interest point detection and matching

  • Need “discriminative” local image features

35 of 65

Rethinking about the problem

36 of 65

Interest point detection and matching

 

 

37 of 65

Interest point detection and matching

38 of 65

Interest point detection and matching

39 of 65

Questions?

39

40 of 65

SFM: put everything together

41 of 65

SFM results

42 of 65

SFM results

43 of 65

SFM: The devil is in the details

  • How to optimize and iteratively correct mistakes …

​

  • Check section 44.3.4

​

​

44 of 65

Today (44 & 45)

  • Recap
  • Structure from motion
  • Neural radiance field
  • A glance at Gaussian splatting

​

​

​

44

45 of 65

What if we have more images?

46 of 65

What if we have more images?

47 of 65

Can we synthesize images from other views?

48 of 65

Ray

49 of 65

Pixel value = integration along the ray

50 of 65

Pixel value = integration along the ray

  • Volume rendering

r: ray

t: location on the ray

What don’t we know?

visibility

viewing direction

51 of 65

Ideal case

[Figure credit: A. Torralba, P. Isola, and W. T. Freeman, Foundations of Computer Vision.]

52 of 65

Goal

[Figure credit: A. Torralba, P. Isola, and W. T. Freeman, Foundations of Computer Vision.]

53 of 65

Neural Radiance Fields (NeRF)

  • From multiple images, use reprojection loss to learn the neural network

54 of 65

Neural Radiance Fields (NeRF)

  • From multiple images, use reprojection loss to learn the neural network

55 of 65

Neural Radiance Fields (NeRF)

[Figure credit: A. Torralba, P. Isola, and W. T. Freeman, Foundations of Computer Vision.]

56 of 65

[Figure credit: A. Torralba, P. Isola, and W. T. Freeman, Foundations of Computer Vision.]

57 of 65

Neural Radiance Fields (NeRF)

58 of 65

Neural Radiance Fields (NeRF)

59 of 65

Today (44 & 45)

  • Recap
  • Structure from motion
  • Neural radiance field
  • A glance at Gaussian splatting

​

​

​

59

60 of 65

Rendering in Graphics

  • The process of generating 2D images from a 3D scene (defined by geometry, color, lighting, camera parameters…)

​

61 of 65

Inverse Graphics

  • Goal 1: Reconstruct a 3D scene from a collection of 2D images (with different viewpoints)
  • Goal 2: Novel View Synthesis (NVS): Reconstruct a 3D scene from 2D images, then render new 2D views from unseen camera positions

​

​

62 of 65

Rendering: Ray tracing vs. Rasterization

Ray tracing

Rasterization

?

63 of 65

3D Gaussian Splatting (3DGS)

64 of 65

Basic idea: model 3D by Gaussians, and project

65 of 65

Left: rendered image; right: 3D Gaussians