Docsity

Perception of Shape from Shading: Understanding the Role of Light and Human Interpretation, Study notes of Computer Science

Partial preview of the text

Download Perception of Shape from Shading: Understanding the Role of Light and Human Interpretation and more Study notes Computer Science in PDF only on Docsity!

Perception of Shape from

Shading

  • Continuous image brightness variation due to shape variations is called shading
  • Our perception of shape depends on shading
  • Circular region on left is perceived as a flat disk
  • Circular region on right has a varying brightness and is perceived as a sphere

4

How Do We Do It?

  • Humans have to make assumptions about illumination: bump (left) is perceived as hole (right) when upside down

Illumination direction is unknown. It is assumed to come from above

5

Does Shading Play a Central Role?

  • Contour plays a more important role - Variations in intensity are same on both shapes - Upper region is perceived as composed of three cylindrical pieces illuminated from above - Lower region is perceived as sinusoidal, illuminated from one side - Note the ambiguities of the surface perceptions, depending on assumed illumination direction

2 possible illumination hypotheses

Results

  • Task is hard: errors 15 to 20 degrees
  • No effect of glossiness, no Lambertian surface assumption
  • No correlation between judgement of light directions and shape - No prior estimate of light direction
  • Poor discrimination between elongated and rounded ellipsoids - Qualitative information

Human Shading Interpretation

  • Is it metric or ordinal?
    • Metric: depth
    • Ordinal: depth order
  • Answer:
    • Ordinal, qualitative
    • Magnitude of shading gradient is not important
  • Fit a surface that is locally perpendicular to the normals

From Normals to Surface Shape

Review: Radiance

  • Radiance L ( θ 1 ) is power emitted per unit area (flux) into a cone having unit solid angle - Area used is foreshortened area in direction θ (^) 1

Scene, dA

L ( θ 1 ) = d^2 P / (dA cos θ 1 d ω) , in W/m^2 /sr

θ 1 d ω

Review: Lambertian Surfaces

  • If BRDF is a constant K , surface is called a Lambertian surface
  • dE = L’ cos θ 0 d ω = k L’ cos θ 0
  • L = K dE = K 1 L’ cos θ 0
  • Radiance is same in all directions and is proportional to cos θ 0 Scene, dA

n θ (^0) θ 1

L’

θ 0

L

14

Pixel Brightness and Scene Brightness

(^2) ( /cos ) 2

cos

( /cos

cos α

θ α

α Z

dA f

da (^) = )

2

cos

cos  

  

f

Z da

dA θ

α

π (^) cos α cos θ 4

3

2 

 

Z

dP LdA D

π (^) cos α cos θ 4

3

2  

  

= =  Z

D da

LdA da

E dP

D

f

da

Ω

θ

α

L

f

D

E α

π (^) 4

2 cos 4 

dA

dP = LdA Ωcos θ

Z

E = k L

16

Normals to z = f (x, y)

  • We intersect surface z=f(x,y) with red plane and blue plane
  • We find tangents to red curve and blue curve
  • We write that normal is perpendicular to 2 tangents and is in direction of cross-product

z

x

y

x 0 y 0

z = f (x, y 0 )

z = f (x 0 , y)

  • Red tangent
  • Blue tangent
  • Normal

( 1 , 0 , ∂ f /∂ x )

( 0 , 1 , ∂ f /∂ y )

( ∂ f /∂ x , ∂ f /∂ y , − 1 )

17

Gradient Space

  • Orientations of normal can be represented by 2 parameters
  • The components p and q are called the gradient space coordinates of the normal
  • Any direction ( a, b, c ) can be represented by (- a/c, -b/c, - 1), and by a point with 2 components ( p= - a/c, q= -b/c ) in the same 2D gradient space - Example: direction of light source can be written ( p s , q s )

q f dy

p f dx

( ∂ f /∂ x , ∂ f /∂ y , − 1 )

Reflectance Map

  • A reflectance map is a 2D lookup table that gives the pixel brightness as a function of the orientation of the scene surface in camera coordinates

20

Reflectance Map for Point Light

Source and Lambertian Surface

  • Pixel brightness at pixel ( x, y ) is proportional to cosine of angle between normal to patch and direction of illumination source
  • For a given pixel brightness, the locus of possible normals ( p,q ) in gradient space is a conic

( , ) cos( ) 2 2 2 2

p q

p q

p q

p q I x y k k s s

θ s s

p q p q

p p q q I x y k k s s

s s