125
/ CSE 559A: Computer Vision Fall 2020: T-R: 11:30-12:50pm @ Wri”hton 300 / Zoom Instru‘tor: Ayan Chakrabarti ([email protected]’u). Course Staff: A’ith Boloor, Patri‘k Williams O‘t 15, 2020 http://www.‘se.wustl.e’u/~ayan/‘ourses/‘se559a/ 1

CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

CSE 559A: Computer Vision

Fall 2020: T-R: 11:30-12:50pm @ Wri”hton 300 / Zoom

Instru‘tor: Ayan Chakrabarti ([email protected]’u).Course Staff: A’ith Boloor, Patri‘k Williams

O‘t 15, 2020

http://www.‘se.wustl.e’u/~ayan/‘ourses/‘se559a/

1

Page 2: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

GENERALGENERALPSET 1 Solutions will be poste’ a er Fri’ay.PSET 2 Out!There will be a re‘itation “or PSET 2 next Fri’ay (O‘tober 23r’).

2

Page 3: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

NORMALSNORMALS

3

Page 4: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

NORMALSNORMALS

4

Page 5: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

NORMALSNORMALS

5

Page 6: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

NORMALSNORMALS

6

Page 7: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

NORMALSNORMALS

7

Page 8: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

NORMALSNORMALS

8

Page 9: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

ANGLESANGLES

9

Page 10: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

ANGLESANGLES

10

Page 11: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

ANGLESANGLES

11

Page 12: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

ANGLESANGLES

12

Page 13: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

ANGLESANGLES

13

Page 14: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

ANGLESANGLES

14

Page 15: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

ANGLESANGLES

15

Page 16: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

ANGLESANGLES

16

Page 17: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

ANGLESANGLES

17

Page 18: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

ANGLESANGLES

18

Page 19: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

ANGLESANGLES

19

Page 20: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

20

Page 21: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

21

Page 22: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

22

Page 23: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

23

Page 24: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

24

Page 25: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

25

Page 26: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

26

Page 27: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

27

Page 28: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

28

Page 29: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

29

Page 30: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

30

Page 31: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

31

Page 32: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

32

Page 33: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

33

Page 34: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

34

Page 35: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

35

Page 36: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

36

Page 37: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

37

Page 38: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

38

Page 39: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

39

Page 40: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

40

Page 41: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

41

Page 42: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

42

Page 43: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

43

Page 44: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

44

Page 45: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

45

Page 46: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

46

Page 47: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

47

Page 48: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

48

Page 49: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

49

Page 50: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

50

Page 51: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCERecall

BRDF =

Ratio o“ out”oin” ra’ian‘e in one ’ire‘tion to in‘omin” (in“initesimal) irra’ian‘e “rom another

Total Out”oin” Ra’ian‘e in a spe‘i“i‘ ’ire‘tion will inte”rate over ‘ontributions “rom in‘omin” irra’ian‘e “romall ’ire‘tions.

ρ( , , , )θ

i

ϕ

i

θ

o

ϕ

o

( , ) =

ρ( , , , )   ( , )   cos   dL

o

θ

o

ϕ

o

θ

i

ϕ

i

θ

o

ϕ

o

L

i

θ

i

ϕ

i

θ

i

ω

i

51

Page 52: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

52

Page 53: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

53

Page 54: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

54

Page 55: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

55

Page 56: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

56

Page 57: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

57

Page 58: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCE

58

Page 59: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCERADIANCEBi-directional Reflectance Distribution Function

Properties

Positivity:

Helmholtz Re‘ipro‘ity:

Total Ener”y leavin” sur“a‘e is less than total ener”y arrivin”

ρ( , , , ) ≥ 0θ

i

ϕ

i

θ

o

ϕ

o

ρ( , , , ) = ρ( , , , )θ

i

ϕ

i

θ

o

ϕ

o

θ

o

ϕ

o

θ

i

ϕ

i

( , ) cos  d ≥

[

 ρ( , , , ) ( , ) cos  d

]

cos dL

i

θ

i

ϕ

i

θ

i

ω

i

θ

i

ϕ

i

θ

o

ϕ

o

L

i

θ

i

ϕ

i

θ

i

ω

i

θ

o

ω

o

59

Page 60: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

RADIANCE, IRRADIANCE, BRDFSRADIANCE, IRRADIANCE, BRDFSA’’itional Re“eren‘e: Forsyth & Pon‘e: Chapters 4 & 5Less Detaile’ / Qui‘k: Szeliski Se‘ 2.2

60

Page 61: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

61

Page 62: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

62

Page 63: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

63

Page 64: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

64

Page 65: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

65

Page 66: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

66

Page 67: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

67

Page 68: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

68

Page 69: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

69

Page 70: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

70

Page 71: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

71

Page 72: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

72

Page 73: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

73

Page 74: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

74

Page 75: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

75

Page 76: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

76

Page 77: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

77

Page 78: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

78

Page 79: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

79

Page 80: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

80

Page 81: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

81

Page 82: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

82

Page 83: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

83

Page 84: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

84

Page 85: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

85

Page 86: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

LIGHTSLIGHTS

86

Page 87: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

PHOTOMETRIC STEREOPHOTOMETRIC STEREO

87

Page 88: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

PHOTOMETRIC STEREOPHOTOMETRIC STEREO

88

Page 89: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

PHOTOMETRIC STEREOPHOTOMETRIC STEREO

89

Page 90: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

PHOTOMETRIC STEREOPHOTOMETRIC STEREO

90

Page 91: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

PHOTOMETRIC STEREOPHOTOMETRIC STEREO

91

Page 92: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

PHOTOMETRIC STEREOPHOTOMETRIC STEREO

92

Page 93: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

PHOTOMETRIC STEREOPHOTOMETRIC STEREO

93

Page 94: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

PHOTOMETRIC STEREOPHOTOMETRIC STEREO

94

Page 95: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

PHOTOMETRIC STEREOPHOTOMETRIC STEREO

95

Page 96: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

PHOTOMETRIC STEREOPHOTOMETRIC STEREO

96

Page 97: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

PHOTOMETRIC STEREOPHOTOMETRIC STEREO

97

Page 98: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

PHOTOMETRIC STEREOPHOTOMETRIC STEREO

98

Page 99: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

PHOTOMETRIC STEREOPHOTOMETRIC STEREO

99

Page 100: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

PHOTOMETRIC STEREOPHOTOMETRIC STEREO

100

Page 101: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

PHOTOMETRIC STEREOPHOTOMETRIC STEREO

101

Page 102: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

PHOTOMETRIC STEREOPHOTOMETRIC STEREO

102

Page 103: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

PHOTOMETRIC STEREOPHOTOMETRIC STEREO

For ea‘h point, let the set o“ intensities be observe’ un’er li”hts .

I”nore ‘olor, assume is s‘alar (‘onvert the ima”es to ”rays‘ale / R+G+B).

Three observations o“ with ’ifferent, linearly in’epen’ent, will ”ive us . Three linear equations in three variables.

Given , we ‘an “a‘tor into an’ : is len”th o“ , an’ .

{ }I

i

{ }ℓ

i

I

i

= ρ  ⟨ , ⟩ = ρ     =  (ρ  ) =   nI

i

n

 

i

T

i

n

 

T

i

n

 

T

i

I

i

i

n

n ρ n

 

ρ ‖n‖ = n/‖n‖n

 

103

Page 104: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

PHOTOMETRIC STEREOPHOTOMETRIC STEREO

But usin” only three ima”es is unstable: there will be noise, et‘. We solve in the least squares sense.

Given ima”es un’er ’ifferent li”hts, “or ea‘h pixel:

where is a matrix, is a ve‘tor, an’ is a three-ve‘tor.

K K

n = ⇒ L n = I

T

1

T

2

T

3

T

K

I

1

I

2

I

3

I

K

L K × 3 I K × 1 n

104

Page 105: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

PHOTOMETRIC STEREOPHOTOMETRIC STEREO

Take ”ra’ient, set to 0:

This is a‘tually a equation. Solve usin” np.lingalg.solve to use Cholesky.

n = arg ‖L n − I = arg  ( L) n − 2(  I  n + Imin

n

2

min

n

n

T

L

T

L

T

)

T

I

T

     ( L) n = (  I)L

T

L

T

3 × 3

105

Page 106: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

PHOTOMETRIC STEREOPHOTOMETRIC STEREO

106

Page 107: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

PHOTOMETRIC STEREOPHOTOMETRIC STEREO

107

Page 108: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

PHOTOMETRIC STEREOPHOTOMETRIC STEREO

108

Page 109: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

PHOTOMETRIC STEREOPHOTOMETRIC STEREO

109

Page 110: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

PHOTOMETRIC STEREOPHOTOMETRIC STEREOSome Pra‘ti‘al Issues:

Even thou”h we assume li”ht at in“inity, works well in pra‘ti‘e “or just “ar away li”hts.

Calibrate li”ht ve‘tor by lookin” at an ima”e o“ some known shape an’ albe’o (typi‘ally a matte sphere)

Te‘hni‘ally only works “or Lambertian obje‘ts. But o en, ‘an make obje‘ts Lambertian with polarizers.Also, estimate’ normals are typi‘ally well-’e“ine’ “or a vali’ set o“ pixels in the ima”e.You ll ‘reate / be ”iven a mask o“ these vali’ pixels.

110

Page 111: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

NORMALS TO DEPTHNORMALS TO DEPTH

111

Page 112: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

NORMALS TO DEPTHNORMALS TO DEPTH

112

Page 113: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

NORMALS TO DEPTHNORMALS TO DEPTH

113

Page 114: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

NORMALS TO DEPTHNORMALS TO DEPTH

114

Page 115: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

NORMALS TO DEPTHNORMALS TO DEPTH

115

Page 116: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

NORMALS TO DEPTHNORMALS TO DEPTH

116

Page 117: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

NORMALS TO DEPTHNORMALS TO DEPTH

117

Page 118: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

NORMALS TO DEPTHNORMALS TO DEPTH

118

Page 119: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

NORMALS TO DEPTHNORMALS TO DEPTH

119

Page 120: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

NORMALS TO DEPTHNORMALS TO DEPTH

120

Page 121: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

NORMALS TO DEPTHNORMALS TO DEPTH

121

Page 122: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

NORMALS TO DEPTHNORMALS TO DEPTHZ = arg ‖ − ∗ Z + ‖ − ∗ Zmin

Z

g

x

f

x

2

g

y

f

y

2

122

Page 123: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

NORMALS TO DEPTHNORMALS TO DEPTH

We ll use as:

Z = arg ‖ − ∗ Z + ‖ − ∗ Z + λR(Z)min

Z

g

x

f

x

2

g

y

f

y

2

R(Z)

R(Z) = (Z ∗ )[n    for    =

n

f

r

]

2

f

r

−1/9

−1/9

−1/9

−1/9

8/9

−1/9

−1/9

−1/9

−1/9

123

Page 124: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

NORMALS TO DEPTHNORMALS TO DEPTH

Version 1: Do it in the Fourier Domain (‘alle’ Frankot-Chellappa)

Assume that in the maske’ out re”ions, .

is FT o“ ’epth map, is FT o“ , is (‘ir‘ular pa’’e’) FT o“ , an’ so on.

In ”eneral, shoul’ a’’ some very small number (e.”., ) to ’enominator “or stability.

In parti‘ular, what is the ’enominator “or ?

Both numerator an’ ’enominator are 0, be‘ause normals tell us nothin” about avera”e ’epth / offset.

Expli‘itly set to 0.

Z = arg ‖ − ∗ Z + ‖ − ∗ Z + λR(Z)min

Z

g

x

f

x

2

g

y

f

y

2

= = 0g

x

g

y

(Z)[u, v] =

[u, v] [u, v] + [u, v] [u, v]F

¯

x

G

x

F

¯

y

G

y

| [u, v] + | [u, v] + λ| [u, v]F

x

|

2

F

y

|

2

F

r

|

2

(Z) G

x

g

x

F

x

f

x

10

−12

[u, v] = [0, 0]

(Z)[0, 0]

124

Page 125: CSE 559A: Computer Visionayan/courses/cse559a/PDFs/lec...1 GENERAL Reminder: PSET 2 out. Get started early ! Start thinking about final project: Proposal due soon. 2 PHOTOMETRIC STEREO++

/

NORMALS TO DEPTHNORMALS TO DEPTH

Version 2: Use ‘onju”ate ”ra’ient.

Allows us to use ’ifferent wei”hts “or ’ifferent pixels.

Z = arg ‖ − ∗ Z + ‖ − ∗ Z + λR(Z)min

Z

g

x

f

x

2

g

y

f

y

2

125