image formation in man and overview machinesramani/cmsc828d/lecture3_6pp.pdf · image formation - 7...

8
Image formation - 1 Image Formation in Man and Machines Image formation - 2 Overview v Pinhole camera v Refraction of light v Thin-lens equation v Optical power and accommodation v Image irradiance and scene radiance v Human eye v Geometry of perspective imaging Image formation - 3 Lens-less Imaging Systems - Pinhole Optics v Pinhole optics projects images without lens with infinite depth of field v Smaller the pinhole better the focus less the light energy from any single point v Good for tracking solar eclipses Pinhole Image Scene Blurred Image Image formation - 4 Diffraction v Two disadvantages to pinhole systems Low light collecting power diffraction v Diffraction Light bends as it passes by the edge of a narrow aperture v Human vision at high light levels, pupil (aperture) is small and blurring is due to diffraction at low light levels, pupil is open and blurring is due to lens imperfections D λ θ= D Image formation - 5 Diffraction and pinhole optics Image formation - 6 Lenses Collect More Light v With a lens, diverging rays from a scene point are converged back to an image point Center of projection Image plane Scene Lens

Upload: others

Post on 06-Apr-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Image Formation in Man and Overview Machinesramani/cmsc828d/lecture3_6pp.pdf · Image formation - 7 incident ray reflected ray refracted ray refracted ray v If θ is the angle of

Image formation - 1

Image Formation in Man and Machines

Image formation - 2

Overview

v Pinhole camerav Refraction of lightv Thin-lens equationv Optical power and accommodationv Image irradiance and scene radiancev Human eyev Geometry of perspective imaging

Image formation - 3

Lens-less Imaging Systems - Pinhole Optics

v Pinhole optics projects images– without lens– with infinite depth of

field

v Smaller the pinhole– better the focus– less the light energy

from any single point

v Good for tracking solar eclipses

PinholeImageScene

BlurredImage

Image formation - 4

Diffraction

v Two disadvantages to pinhole systems– Low light collecting power– diffraction

v Diffraction– Light bends as it passes by the edge of a narrow aperture

v Human vision– at high light levels, pupil (aperture) is small and blurring is

due to diffraction– at low light levels, pupil is open and blurring is due to lens

imperfections

D

λθ =D

Image formation - 5

Diffraction and pinhole optics

Image formation - 6

Lenses Collect More Light

v With a lens, diverging rays from a scene point are converged back to an image point

Center of projection

Image planeScene

Lens

Page 2: Image Formation in Man and Overview Machinesramani/cmsc828d/lecture3_6pp.pdf · Image formation - 7 incident ray reflected ray refracted ray refracted ray v If θ is the angle of

Image formation - 7

incident ray

reflected ray

refracted ray

refracted ray

v If θ is the angle of incidence and θ ’ is the angle of refraction then

where n and n’ are the refractive indices of the two media

v Refractive index is the ratio of speed of light in a vacuum to speed of light in the medium

Refraction: Snell’s law

Refractive indicesglass - 1.50water - 1.333air - 1.000

θ

'sin'sin θθ nn =

Image formation - 8

Lens Equations

Image formation - 9

Thin-Lens Equationv Thin-lens equation

– relates the distance between the scene point being viewed and the lens to the distance between the lens and the point’s image (where the rays from that point are brought into focus by the lens)

– Let M be a point being viewedu p is the distance of M from the lens along the optical axisu The thin lens focuses all the rays from M onto the same point, the

image point m at distance q from the lens.

M

O

F

m

f q-f

p q

H

h

Q

S

s

Image formation - 10

Thin-Lens Equation

v m can be determined by intersecting two known rays– MQ is parallel to the optical

axis, so it must be refracted to pass through F.

– MO passes through the lens center, so it is not bent.

v Note two pairs of similar triangles– MSO and Osm (yellow)– OQF and Fsm (green)

fqp

111 =+

qp

hH

q

h

p

H

++==

q

hH

fq

h

f

H +=−

=

q

qp

f

p +=

M

O

F

m

f q -f

p q

H

h

Q

S

s

qp

qp

f

+=1

Divide 2 equations:

Image formation - 11

Thin-Lens Equation

v Notice that the distance behind the lens, q, at which a point, M, is brought into focus depends on p, the distance of that point from the lens– familiar to us from rotating the focus ring of any camera

fqp

111 =+

M

O

F

m

f q-f

p q

H

h

Q

S

s

Image formation - 12

Thin-Lens Equation

v As p gets large, q approaches fv As q approaches f, p approaches infinity

fqp

111 =+

M

O

F

m

f

p q

Q

S

M’

S’m’

Page 3: Image Formation in Man and Overview Machinesramani/cmsc828d/lecture3_6pp.pdf · Image formation - 7 incident ray reflected ray refracted ray refracted ray v If θ is the angle of

Image formation - 13

Optical Power and Accommodation

v Optical power of a lens - how strongly the lens bends the incoming rays– Short focal length lens bends rays significantly– It images a point source at infinity (large p) at distance f

behind the lens. The smaller f, the more the rays must be bent to bring them into focus sooner.

– Optical power is 1/f, with f measured in meters. The unit is called the diopter

– Human vision: when viewing faraway objects the distance from the lens to the retina is 0.017m. So the optical power of the eye is 58.8 diopters

Image formation - 14

Accommodationv How does the human eye bring nearby points

into focus on the retina?– by increasing the power of the lens– muscles attached to the lens change its shape to change the

lens power– accommodation: adjusting the focal length of the lens– bringing points that are nearby into focus causes faraway

points to go out of focus– depth-of-field: range of distances in focus

M

Om

f

p q

S

M’

S’ m’F F’

Image formation - 15

Accommodation

Image formation - 16

Accommodation

Sources at > 1 meter are imaged at same distanceSources closer than 1 m are imaged at different distances

Image formation - 17

Accommodation

v Physical cameras - mechanically change the distance between the lens and the image plane

M

O

F

m

f

p q

S

M’

S’m’

Image formation - 18

Pixel Brightness and Scene Brightness

22 )cos/(

cos

cos/(

cos

αθ

αα

Z

dA

f

da =)

2

cos

cos

=

f

Z

da

dA

θα

θαπcoscos

43

2

=

Z

DLdAdP

θαπcoscos

43

2

==

Z

D

da

dAL

da

dPE

D

fda

Ωθ

α

Lf

DE απ 4

2

cos4

=

dA

θcosΩ= LdAdP

Z

Page 4: Image Formation in Man and Overview Machinesramani/cmsc828d/lecture3_6pp.pdf · Image formation - 7 incident ray reflected ray refracted ray refracted ray v If θ is the angle of

Image formation - 19

Image Irradiance and Scene Radiance

v Image irradiance E is proportional to scene radiancev Brighter scene points produce brighter pixelsv Image irradiance is proportional to inverse of square

of f-number (f/D), is larger for small f-number

Lf

DE απ 4

2

cos4

=

Image formation - 20

Retina

Light

Image formation - 21

Retina

v Limitations of human vision– Blood vessels and other

cells in front of photoreceptors

– shadows cast on photoreceptors

– non-uniform brightness

Light

Image formation - 22

Photoreceptor Mosaics

v The retina is covered with a mosaic of photoreceptors

v Two different types of photoreceptors– Rods - approximately 100,000,000– Cones - approximately 5,000,000

v Rods– Sensitive to low levels of light: scotopic light levels

v Cones– Sensitive to higher levels of light: photopic light levels

v Mesopic light levels - both rods and cones active

Image formation - 23

Photoreceptor Mosaics

v (A) Cones in the Fovea. Several neurons per conev (B) Cones and Rods in the peripheryv Rods are small but several rods per neuron

Image formation - 24

Photoreceptor Mosaics

v Fovea is area of highest concentration of photoreceptors– fovea contains no rods, just cones– approximately 50,000 cones in the fovea– cannot see dim light sources (like stars) when we look

straight at them!

v TV camera photoreceptor mosaics– nearly square mosaic of approximately 800X640 elements for

complete field of view

Page 5: Image Formation in Man and Overview Machinesramani/cmsc828d/lecture3_6pp.pdf · Image formation - 7 incident ray reflected ray refracted ray refracted ray v If θ is the angle of

Image formation - 25

The Human Eye

v Limitations of human vision– the image is upside-down!– high resolution vision only in

the foveau only one small fovea in

manu other animals (birds,

cheetas) have differentfoveal organizations

– blind spot

Image formation - 26

Blind Spotv Close left eyev Look steadily at white crossv Move head slowly toward and away from figurev At a particular head position, the white disk

disappears completely from view.

Image formation - 27

Cones and color

v There are three different types of cones– they differ in their sensitivity to different wavelengths of

light

Image formation - 28

Color Cameras

v Two types of color cameras– Single CCD array

u in front of each CCD element is a filter - red, green or blue

u color values at each pixel are obtained by hardware interpolation

– subject to artifacts– lower intensity quality than a monochromatic

camera– 3 CCD arrays packed together, each sensitive to different

wavelengths of light

Image formation - 29

3-CCD Camera

Image formation - 30

Cones, CCD’s and space

v How much of the world does a cone see?– measured in terms of visual angle– the eye lens collects light over a total field of view of about

100o

– each cone collects light over a visual angle of about 8.5 x 10-3

degrees (about 30 seconds)

v How much of the world does a single camera CCD see– example: 30o lens– 30/500 gives about 6 x10-2 degrees per CCD– Eye’s acuity is 10 times higher.

Page 6: Image Formation in Man and Overview Machinesramani/cmsc828d/lecture3_6pp.pdf · Image formation - 7 incident ray reflected ray refracted ray refracted ray v If θ is the angle of

Image formation - 31

Perspective Imaging -Pinhole Camera Model

pinhole at thecenter of projection

Scene point(xs , ys , zs )

Image point(xi , yi , -f)

fx

z

v The point on the image plane that corresponds to a particularpoint in the scene is found by following the line that passes through the scene point and the center of projection

zs

y

Image center

Line of sightImage plane

C

Image formation - 32

Perspective Imaging=Central Projection

v Line of sight to a point in the scene is the line through the center of projection to that point

v Image plane is parallel to the x-y plane– distance to image plane is f - focal length– this inverts the image – move the image plane in front of the center of projection

Image formation - 33

Perspective Imaging

v Fundamental equations for perspective projection onto a plane

Scene point(xs , ys , zs )

Image point(xi , yi , f)

f

x

z

CImage point(xi , yi , -f)

f

s

si

s

si

z

yfy

z

xfx

=

=

Image planey

center of projection

Image formation - 34

Field of Viewv As f gets smaller, image

becomes more wide angle(more world points project onto the finite image plane)

v As f gets larger, image becomes more telescopic(smaller part of the world projects onto the finite image plane)

f3f2

f1

Field of view

Image formation - 35

m

Vanishing Points and Lines

v We are looking at a scene on a planev To each point M on the scene plane we

associate an image point mv The line, v, of the image plane that

belongs to the plane through C parallel to the scene plane is called the vanishing line, or the horizon line

Image planeScene plane

C v

M

∞m

Image formation - 36

Vanishing Points and Linesv The images of the points on rail L1 belong

to a plane P1 defined by C and L1

– The lines of sight for each point of the track L1 lie on this plane

v The image of rail L2 belongs to a plane P2 defined by C and track

v The image l1 of L1 belongs to intersection of plane P1 and image plane

v The image l2 of L2 belongs to intersection of plane P1 and image plane

v Planes P1 and P2 intersect along line CVparallel to L1 and L2

v Point V belongs to P1, P2 and image plane.v Therefore, l1 and l2 intersect in Vv V is image of a scene point of L1 and a

scene point of L2. Since CV is parallel to L1and L2, these points are at infinity.

m

Image planeScene plane

C

vV

V’ L1

L2

l1

l2

Page 7: Image Formation in Man and Overview Machinesramani/cmsc828d/lecture3_6pp.pdf · Image formation - 7 incident ray reflected ray refracted ray refracted ray v If θ is the angle of

Image formation - 37

From Perspective Projection to Orthographic Projection

v Select origin of coordinate system at image center

v World coordinates are independent of focal length

v β = 1/fv When β = 0,

orthographic projection

Scene point(xs , ys , zs )

(xi , yi , 0)

x

z

y

f

s

s

s

si

s

s

s

si

z

y

zf

yfy

z

x

zf

xfx

β

β

+=

+=

+=

+=

1

1

C O

Image formation - 38

Orthographic Projection Scene point(xs , ys , zs )

(xi , yi , 0)

x

z

y

1/f = 0

si

si

yy

xx

==

C

O

Image plane

Image formation - 39

Depth of Field and f-number

v Depth of field is smaller for small f-number

M

F

m

S

Image formation - 40

Lens Imperfections

v Lens imperfections might cause rays not to intersect at a point– Deviations in shape from the ideal lens– Material imperfections that might cause the refractive index

to vary within the lens

Image formation - 41

Refraction of Color

v Why does the prism separate the light into its spectral components?– Prism bends different

wavelengths of light by different amountsu Refractive index is a function

of wavelengthu Shorter wavelengths are

refracted more strongly than longer wavelengths

Image formation - 42

Chromatic Aberration

v Chromatic aberration– Different wavelengths of light from the same point source

are focused at different distances behind the lens– When incident light is a mixture of wavelengths, we can

observe a chromatic fringe at edges– Accommodation can bring any wavelength into good focus,

but not all simultaneously– Human visual system has other mechanisms for reducing

chromatic aberration– Color cameras have similar problems

Page 8: Image Formation in Man and Overview Machinesramani/cmsc828d/lecture3_6pp.pdf · Image formation - 7 incident ray reflected ray refracted ray refracted ray v If θ is the angle of

Image formation - 43

Chromatic Aberration

Image formation - 44

Compound Eyes

• Many (small) animals have compound eyes- each photoreceptor has its own lens- images seen by these eyes are equally sharp in

all directions-examples: flies and other insects

• But these eyes do not “scale” well biologically

Image formation - 45

References

v Foundations of Vision, Brian Wandell, SinauerAssociates, Sunderland MA, 1995

v Introductory Techniques for 3-D Computer Vision, E. Trucco and A. Verri, Prentice-Hall, pp. 18-28

v Computer Vision, Ballard & Brown, Prentice-Hall, pp. 19-22, pp.206-208

v Robot Vision, B.K.P. Horn, MIT Press, pp. 18-27v A Guided Tour of Computer Vision, V. Nalwa,

AT&T Press, pp. 3-49