class todayhays/compvision/lectures/02.pdf · accidental cameras accidental pinhole and pinspeck...

83

Upload: others

Post on 03-Aug-2020

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman
Page 2: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman
Page 3: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Class Today

• Project 1 is going out today

• Read Szeliski 2.1, especially 2.1.5

• More about projections

• Light, color, biological vision

Page 4: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman
Page 5: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman
Page 6: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

The Geometry of Image Formation

Mapping between image and world coordinates

– Pinhole camera model

– Projective geometry

• Vanishing points and lines

– Projection matrix

Page 7: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

What do you need to make a camera from scratch?

Page 8: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Image formation

Let’s design a camera– Idea 1: put a piece of film in front of an object– Do we get a reasonable image?

Slide source: Seitz

Page 9: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Pinhole camera

Idea 2: add a barrier to block off most of the rays

– This reduces blurring

– The opening known as the aperture

Slide source: Seitz

Page 10: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Pinhole camera

Figure from Forsyth

f

f = focal length

c = center of the camera

c

Page 11: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Camera obscura: the pre-camera

• Known during classical period in China and Greece (e.g. Mo-Ti, China, 470BC to 390BC)

Illustration of Camera Obscura Freestanding camera obscura at UNC Chapel Hill

Photo by Seth Ilys

Page 12: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Camera Obscura used for Tracing

Lens Based Camera Obscura, 1568

Page 13: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Accidental Cameras

Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture.

Antonio Torralba, William T. Freeman

Page 14: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Accidental Cameras

Page 15: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman
Page 16: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

First Photograph

Oldest surviving photograph

– Took 8 hours on pewter plate

Joseph Niepce, 1826

Photograph of the first photograph

Stored at UT Austin

Niepce later teamed up with Daguerre, who eventually created Daguerrotypes

Page 17: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Camera and World Geometry

How tall is this woman?

Which ball is closer?

How high is the camera?

What is the camera

rotation?

What is the focal length of

the camera?

Page 18: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Point of observation

Figures © Stephen E. Palmer, 2002

Dimensionality Reduction Machine (3D to 2D)

3D world 2D image

Page 19: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Projection can be tricky…Slide source: Seitz

Page 20: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Projection can be tricky…Slide source: Seitz

Page 21: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Projective Geometry

What is lost?

• Length

Which is closer?

Who is taller?

Page 22: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Length and area are not preserved

Figure by David Forsyth

B’

C’

A’

Page 23: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Projective Geometry

What is lost?

• Length

• Angles

Perpendicular?

Parallel?

Page 24: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Projective Geometry

What is preserved?

• Straight lines are still straight

Page 25: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Vanishing points and lines

Parallel lines in the world intersect in the image at a “vanishing point”

Page 26: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Vanishing points and lines

oVanishing Point o

Vanishing Point

Vanishing Line

Page 27: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Vanishing points and lines

Vanishingpoint

Vanishingpoint

Vertical vanishingpoint

(at infinity)

Slide from Efros, Photo from Criminisi

Page 28: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Projection: world coordinatesimage coordinates

Camera

Center

(0, 0, 0)

z

y

x

X.

.

. f

z

y

'

'

v

ux

.v’

u’

z

fxu *'

z

fyv *'

5

2*2' u

5

2*3' v

If X = 2, Y = 3,

Z = 5, and f = 2

What are U and V?

35

-2?

z

y

f

v

'

Page 29: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Projection: world coordinatesimage coordinates

Camera

Center

(tx, ty, tz)

Z

Y

X

P.

.

. f Z Y

v

up

.

Optical

Center

(u0, v0)

v

u

How do we handle the general case?

Page 30: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Interlude: why does this matter?

Page 31: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Relating multiple views

Page 32: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman
Page 33: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Projection: world coordinatesimage coordinates

Camera

Center

(tx, ty, tz)

Z

Y

X

P.

.

. f Z Y

v

up

.

Optical

Center

(u0, v0)

v

u

How do we handle the general case?

Page 34: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Homogeneous coordinates

Conversion

Converting to homogeneous coordinates

homogeneous image

coordinates

homogeneous scene

coordinates

Converting from homogeneous coordinates

Page 35: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Homogeneous coordinates

Invariant to scaling

Point in Cartesian is ray in Homogeneous

w

y

wx

kw

ky

kwkx

kw

ky

kx

w

y

x

k

Homogeneous Coordinates

Cartesian Coordinates

Page 36: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Slide Credit: Savarese

Projection matrix

XtRKx x: Image Coordinates: (u,v,1)

K: Intrinsic Matrix (3x3)

R: Rotation (3x3)

t: Translation (3x1)

X: World Coordinates: (X,Y,Z,1)

Ow

iw

kw

jwR,t

X

x

Page 37: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

X0IKx

10100

000

000

1z

y

x

f

f

v

u

w

K

Slide Credit: Savarese

Projection matrix

Intrinsic Assumptions

• Unit aspect ratio

• Optical center at (0,0)

• No skew

Extrinsic Assumptions• No rotation

• Camera at (0,0,0)

X

x

Page 38: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

X0IKx

10100

000

000

1z

y

x

f

f

v

u

w

Slide Credit: Savarese

Projection matrix

Intrinsic Assumptions

• Unit aspect ratio

• Optical center at (0,0)

• No skew

Extrinsic Assumptions• No rotation

• Camera at (0,0,0)

X

x

Page 39: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Remove assumption: known optical center

X0IKx

10100

00

00

1

0

0

z

y

x

vf

uf

v

u

w

Intrinsic Assumptions

• Unit aspect ratio

• No skew

Extrinsic Assumptions• No rotation

• Camera at (0,0,0)

Page 40: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Remove assumption: square pixels

X0IKx

10100

00

00

1

0

0

z

y

x

v

u

v

u

w

Intrinsic Assumptions• No skew

Extrinsic Assumptions• No rotation

• Camera at (0,0,0)

Page 41: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Remove assumption: non-skewed pixels

X0IKx

10100

00

0

1

0

0

z

y

x

v

us

v

u

w

Intrinsic Assumptions Extrinsic Assumptions• No rotation

• Camera at (0,0,0)

Note: different books use different notation for parameters

Page 42: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Oriented and Translated Camera

Ow

iw

kw

jw

t

R

X

x

Page 43: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Allow camera translation

XtIKx

1100

010

001

100

0

0

1

0

0

z

y

x

t

t

t

v

u

v

u

w

z

y

x

Intrinsic Assumptions Extrinsic Assumptions• No rotation

Page 44: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

3D Rotation of Points

Rotation around the coordinate axes, counter-clockwise:

100

0cossin

0sincos

)(

cos0sin

010

sin0cos

)(

cossin0

sincos0

001

)(

z

y

x

R

R

R

p

p’

y

z

Slide Credit: Saverese

Page 45: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Allow camera rotation

XtRKx

1100

0

1 333231

232221

131211

0

0

z

y

x

trrr

trrr

trrr

v

us

v

u

w

z

y

x

Page 46: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Degrees of freedom

XtRKx

1100

0

1 333231

232221

131211

0

0

z

y

x

trrr

trrr

trrr

v

us

v

u

w

z

y

x

5 6

Page 47: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Field of View (Zoom, focal length)

Page 48: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Beyond Pinholes: Radial Distortion

Image from Martin Habbecke

Corrected Barrel Distortion

Page 49: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Things to remember

• Vanishing points and vanishing lines

• Pinhole camera model and camera projection matrix

• Homogeneous coordinates

Vanishingpoint

Vanishingline

Vanishingpoint

Vertical vanishingpoint

(at infinity)

XtRKx

Page 50: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Reminder: read your book

• Lectures have assigned readings

• Szeliski 2.1 and especially 2.1.5 cover the geometry of image formation

Page 51: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

5 minute break

Page 52: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Motion illusion, rotating snakes

Page 53: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Image Formation

Digital Camera

The Eye

Film

Page 54: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

A photon’s life choices

• Absorption

• Diffusion

• Reflection

• Transparency

• Refraction

• Fluorescence

• Subsurface scattering

• Phosphorescence

• Interreflection

λ

light source

?

Page 55: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

A photon’s life choices

• Absorption

• Diffusion

• Reflection

• Transparency

• Refraction

• Fluorescence

• Subsurface scattering

• Phosphorescence

• Interreflection

λ

light source

Page 56: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

A photon’s life choices

• Absorption

• Diffuse Reflection

• Reflection

• Transparency

• Refraction

• Fluorescence

• Subsurface scattering

• Phosphorescence

• Interreflection

λ

light source

Page 57: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

A photon’s life choices

• Absorption

• Diffusion

• Specular Reflection

• Transparency

• Refraction

• Fluorescence

• Subsurface scattering

• Phosphorescence

• Interreflection

λ

light source

Page 58: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

A photon’s life choices

• Absorption

• Diffusion

• Reflection

• Transparency

• Refraction

• Fluorescence

• Subsurface scattering

• Phosphorescence

• Interreflection

λ

light source

Page 59: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

A photon’s life choices

• Absorption

• Diffusion

• Reflection

• Transparency

• Refraction

• Fluorescence

• Subsurface scattering

• Phosphorescence

• Interreflection

λ

light source

Page 60: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

A photon’s life choices

• Absorption

• Diffusion

• Reflection

• Transparency

• Refraction

• Fluorescence

• Subsurface scattering

• Phosphorescence

• Interreflection

λ1

light source

λ2

Page 61: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

A photon’s life choices

• Absorption

• Diffusion

• Reflection

• Transparency

• Refraction

• Fluorescence

• Subsurface scattering

• Phosphorescence

• Interreflection

λ

light source

Page 62: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

A photon’s life choices

• Absorption

• Diffusion

• Reflection

• Transparency

• Refraction

• Fluorescence

• Subsurface scattering

• Phosphorescence

• Interreflection

t=1

light source

t=n

Page 63: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

A photon’s life choices

• Absorption

• Diffusion

• Reflection

• Transparency

• Refraction

• Fluorescence

• Subsurface scattering

• Phosphorescence

• Interreflection

λ

light source

(Specular Interreflection)

Page 64: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Lambertian Reflectance

• In computer vision, surfaces are often assumed to be ideal diffuse reflectors with no dependence on viewing direction.

Page 65: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Digital camera

• A digital camera replaces film with a sensor array– Each cell in the array is light-sensitive diode that converts photons to electrons– Two common types

• Charge Coupled Device (CCD)• CMOS

– http://electronics.howstuffworks.com/digital-camera.htm

Slide by Steve Seitz

Page 66: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Sensor Array

CMOS sensor

Page 67: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Sampling and Quantization

Page 68: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Interlace vs. progressive scan

http://www.axis.com/products/video/camera/progressive_scan.htm Slide by Steve Seitz

Page 69: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Progressive scan

http://www.axis.com/products/video/camera/progressive_scan.htm Slide by Steve Seitz

Page 70: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Interlace

http://www.axis.com/products/video/camera/progressive_scan.htm Slide by Steve Seitz

Page 71: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Rolling Shutter

Page 72: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

The Eye

• The human eye is a camera!– Iris - colored annulus with radial muscles

– Pupil - the hole (aperture) whose size is controlled by the iris

– What’s the “film”?

– photoreceptor cells (rods and cones) in the retina

Slide by Steve Seitz

Page 73: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Aside: why do we care about human vision in this class?• We don’t, necessarily.

Page 74: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Ornithopters

Page 75: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Why do we care about human vision?

• We don’t, necessarily.

• But cameras necessarily imitate the frequency response of the human eye, so we should know that much.

• Also, computer vision probably wouldn’t get as much scrutiny if biological vision (especially human vision) hadn’t proved that it was possible to make important judgements from 2d images.

Page 76: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Does computer vision “understand” images?

"Can machines fly?" The answer is yes, because airplanes fly.

"Can machines swim?" The answer is no, because submarines don't swim.

"Can machines think?" Is this question like the first, or like the second?

Source: Norvig

Page 77: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

The Retina

Cross-section of eye

Ganglion cell layer

Bipolar cell layer

Receptor layer

Pigmentedepithelium

Ganglion axons

Cross section of retina

Page 78: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

What humans don’t have: tapetum lucidum

Human eyes can reflect a tiny

bit and blood in the retina

makes this reflection red.

Page 79: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

© Stephen E. Palmer, 2002

Cones

cone-shaped

less sensitive

operate in high light

color vision

Two types of light-sensitive receptors

Rods

rod-shaped

highly sensitive

operate at night

gray-scale vision

Page 80: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Rod / Cone sensitivity

Page 81: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

© Stephen E. Palmer, 2002

Distribution of Rods and Cones.

0

150,000

100,000

50,000

020 40 60 8020406080

Visual Angle (degrees from fovea)

Rods

Cones Cones

Rods

FoveaBlindSpot

# R

ecepto

rs/m

m2

Night Sky: why are there more stars off-center?

Averted vision: http://en.wikipedia.org/wiki/Averted_vision

Page 82: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman

Wait, the blood vessels are in front of the photoreceptors??

https://www.youtube.com/watch?v=L_W-IXqoxHA

Page 83: Class Todayhays/compvision/lectures/02.pdf · Accidental Cameras Accidental Pinhole and Pinspeck Cameras Revealing the scene outside the picture. Antonio Torralba, William T. Freeman