Topic2 - Shape From Shading
Topic2 - Shape From Shading
Surface
B( P) = r ( P)N( P).S1
radiosity
B ( x, y ) = B ( P )
Light & Shading 4
Photometric Stereo
• We further assume that the response of the camera is
linear in the surface radiosity:
I ( x, y ) = kB( x, y )
= kr ( x, y )N( x, y ).S1
= g ( x, y ).V1
g ( x, y ) = r ( x, y ) N ( x, y )
V1 = kS1
i(x, y) = νg(x, y)
1
N ( x, y ) = g ( x, y )
g ( x, y )
T
1 ì ¶f ¶f ü
N ( x, y ) = í , ,1ý
¶f 2 ¶f 2 î ¶x ¶y þ
1+ +
¶x ¶y
æ a ( x, y ) ö æ b ( x, y ) ö
¶çç ÷÷ ¶çç ÷÷
è c ( x, y ) ø - è c ( x, y ) ø » 0
¶y ¶x
v ∂f u ∂f
f (u, v) = ∫ (0, y)dy + ∫ (x, v)dx + c
0 ∂y 0 ∂x
FIGURE 2.13: Photometric stereo could become the method of choice to capture complex
deformable surfaces. On the top, three images of a garment, lit from different directions,
which produce the reconstruction shown on the top right. A natural way to obtain three
different images at the same time is to use a color camera; if one has a red light, a green
Slide 17
light, and a blue light, then a singleLight
color& Shading
image frame can be treated as three images
under three separate lights. On the bottom, an image of the garment captured in this
Lab exercise:Photometric Stereo:
estimating surface normals and albedo