Docsity

Perspective Imaging - Lecture Slides | CMSC 426, Study notes of Computer Science

Partial preview of the text

Download Perspective Imaging - Lecture Slides | CMSC 426 and more Study notes Computer Science in PDF only on Docsity!

Overview^ ™

perspective imaging

Image formation

Refraction of light

Thin-lens equation

Optical power and accommodation

Image irradiance and scene radiance

Digital images

Introduction to MATLAB

Perspective Imaging -Pinhole Camera Model

pinhole at the center of projection

Scene point(x

, ys

, zs^

)s^

Image point(x

, yi^

, -f)i^

f^

x

z

™

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

z^ s

y

Image center

Line of sight

Image plane

C

Perspective Imaging

Fundamental equationsfor perspectiveprojection onto a plane

s s

i

s s

i

y z

f

y

x z

f

x

=^ =

Scene point(x

, ys

, zs^

)s^

Image point

(x

, yi^

, f)i^

f

x

z

C

Image point(x

, yi^

, -f)i^

f

Image plane

y

center ofprojection

Field of View

As

f

gets smaller, image

becomes more

wide angle

(more world pointsproject onto the finiteimage plane)

As

f

gets larger, image

becomes more

telescopic

(smaller part of theworld projects onto thefinite image plane)

f^3

f^2

f^1

Field of view

The camera matrix ™

Turn previousexpression into HC’s

-^

HC’s for 3D point are(X,Y,Z,T)

-^

HC’s for point in image are(U,V,W)

^ UV   W

    

=

1

0

0

0

0

1

0

0

0

0

1

f

0

     

      ^ X ^ Y   Z  T

 

Lenses Collect More Light

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

Center of projection

Image plane

Scene

Lens

Thin-Lens Equation

Thin-lens equation

–^

relates the distance between the scene point being viewed and the lensto the distance between the lens and the point’s image (where the raysfrom that point are brought into focus by the lens)

-^

Let

M

be a point being viewed

‹

p

is the distance of

M

from the lens along the optical axis

‹

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

Thin-Lens Equation

m

can be determined by

intersecting two knownrays–

MQ

is parallel to the optical

axis, so it must be refracted topass through F.

-^

MO passes through the lenscenter, so it is not bent.

Note two pairs ofsimilar triangles

–^

MSO and Osm (yellow)

-^

OQF and Fsm (green)

f

q

p

1

1

1

=

q p

h

H

h q

H p

=

=

q

h

H

f

q

h

H^ f

=

−

q

q

p

p f

M

O

F

m

f^

q -f

p^

q

H

h

Q

S

s

q

p

q

p

f

Divide 2 equations:^1

Middle school math ™^

Invertendo.

If a : b :: c : d then b : a :: d : c

™

Alternendo.

If a : b :: c : d then a : c :: b : d

™

Componendo.

If a : b :: c : d then (a +b) : b :: (c +d) : d

™

Dividendo.

If a : b :: c : d then (a -b) : b :: (c -d) : d

™

Componendo and dividendo.

If a : b :: c : d then (a +b) : (a -b) :: (c +d) : (c -d)i.e., a/b = c/d => (a +b)/(a - b) = (c +d)/(c +d)

™

If a/b = c/d = e/f = ...,then each ratio

(a +c +e +...)/(b +d +f +...)

From: http://www.ilovemaths.com/2ratio.htm

Thin-Lens Equation

As

p

gets large,

q

approaches

f

As

q

approaches

f

,^

p

approaches infinity

f

q

p

1

1

1

=

M

O

F

m

f

p^

q

Q

S

M’

S’

m’

Optical Power and Accommodation ™

Optical power of a lens - how strongly thelens 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 distancefrom the lens to the retina is 0.017m. So the optical power ofthe eye is 58.8 diopters

Accommodation

How does the human eye bring nearby pointsinto focus on the retina?

–^

by increasing the power of the lens

-^

muscles attached to the lens change its shape to change thelens power

-^

accommodation: adjusting the focal length of the lens

-^

bringing points that are nearby into focus causes farawaypoints to go out of focus

-^

depth-of-field: range of distances in focus

M

O

m

f

p^

q

S

M’ S’

m’

F^

F’

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

Accommodation ™

Physical cameras - mechanically change thedistance between the lens and the imageplane

M

O

F

m

f

p^

q

S

M’

S’

m’