+ All Categories
Home > Documents > Objective

Objective

Date post: 05-Jan-2016
Category:
Upload: redell
View: 37 times
Download: 0 times
Share this document with a friend
Description:
Objective. 3-D Scene. u ’. u. Study the mathematical relations between corresponding image points. “Corresponding” means originated from the same 3D point. Two-views geometry Outline. Background: Camera, Projection models Necessary tools: A taste of projective geometry - PowerPoint PPT Presentation
Popular Tags:
39
3-D Scene u uStudy the mathematical relations between corresponding image points. “Corresponding” means originated from the same 3D point. Objective
Transcript
Page 1: Objective

3-D Scene

u

u’

Study the mathematical relations between corresponding image points.

“Corresponding” means originated from the same 3D point.

Objective

Page 2: Objective

Two-views geometryOutline

Background: Camera, Projection models Necessary tools: A taste of projective geometry Two view geometry:

Planar scene (homography ). Non-planar scene (epipolar geometry).

3D reconstruction (stereo).

Page 3: Objective

A few words about Cameras

Camera obscura dates from 15th century First photograph on record shown in the book – 1826 The human eye functions very much like a camera

Page 4: Objective

History Camera Obscura

"Reinerus Gemma-Frisius, observed an eclipse of the sun at Louvain on January 24, 1544, and later he used this illustration of the event in his book De Radio Astronomica et Geometrica, 1545. It is thought to be the first published illustration of a camera obscura..." Hammond, John H., The Camera Obscura, A Chronicle

Page 5: Objective

6

The first “photograph”www.hrc.utexas.edu/exhibitions/permanent/wfp/

Joseph Nicéphore Niépce.View from the Window at Le Gras.

Page 6: Objective

A few words about Cameras

Current cameras contain a lens and a recording device (film, CCD, CMOS)

Basic abstraction is the pinhole camera

Page 7: Objective

A few words about LensesIdeal Lenses

Lens acts as a pinhole (for 3D points at the focal depth).

Page 8: Objective

Regular LensesE.g., the cameras in our lab.

To learn more on lens-distortion see Hartley & Zisserman Sec. 7.4 p.189.Not part of this class.

Page 9: Objective

Modeling a Pinhole Camera (or projection)

Page 10: Objective

Single View Geometry

f

X

P Y

Z

x

p y

f

Page 11: Objective

Modeling a Pinhole Camera (or projection)

Page 12: Objective

Perspective Projection

f Xx

Zf Y

yZ

Origin (0,0,0) is the Focal center X,Y (x,y) axis are along the image axis (height / width). Z is depth = distance along the Optical axis f – Focal length

Page 13: Objective

Projection

x y f

X Y Z

f

y

Z

X

Y

f Xx

Zf Y

yZ

P=(X,Y,Z)

f

Page 14: Objective

Projection

x y f

X Y Z

f

y

Z

X

Y

f Xx

Zf Y

yZ

P=(X,Y,Z)

f

Page 15: Objective

Orthographic Projection

•Projection rays are parallel•Image plane is fronto-parallel(orthogonal to rays)

•Focal center at infinity

x X

y Y

Page 16: Objective

Scaled Orthographic ProjectionAlso called “weak perspective”

x sX

y sY

0

fsZ

Page 17: Objective

Pros and Cons of Projection Models Weak perspective has simpler math.

Accurate when object is small and distant. Useful for object recognition.

When accuracy really matters (SFM), we must model the real camera (Pinhole / perspective ): Perspective projection, calibration parameters (later), and

all other issues (radial distortion).

Page 18: Objective

Two-views geometryOutline

Background: Camera, Projection Necessary tools: A taste of projective geometry Two view geometry:

Planar scene (homography ). Non-planar scene (epipolar geometry).

3D reconstruction from two views (Stereo algorithms)

Hartley & Zisserman: Sec. 2 Proj. Geom. of 2D.Sec. 3 Proj. Geom. of 3D.

Page 19: Objective

Reading

Hartley & Zisserman:

Sec. 2 Proj. Geo. of 2D:• 2.1- 2.2.3 point lines in 2D• 2.3 -2.4 transformations • 2.7 line at infinity

Sec. 3 Proj. Geo. of 3D. • 3.1 – 3.2 point planes & lines. • 3.4 transformations

Page 20: Objective

Euclidean Geometry is good for

questions like:

what objects have the same shape (= congruent)

Same shapes are related by rotation and translation

Why not Euclidian Geometry(Motivation)

Page 21: Objective

Where do parallel lines meet?

Parallel lines meet at the horizon (“vanishing line”)

Why Projective Geometry (Motivation)

Page 22: Objective

Coordinates in Euclidean Line R1

0 1 2 3 ∞

Not in space

Page 23: Objective

Coordinates in Projective Line P1

-1 0 1 2 ∞

k(0,1)

k(1,0)

k(2,1)k(1,1)k(-1,1)

Realization: Points on a line P1

“Ideal point”

Take R2 –{0,0} and look at scale equivalence class (rays/lines trough the origin).

Page 24: Objective

Coordinates in Projective Plane P2

k(0,0,1)

k(x,y,0)

k(1,1,1)

k(1,0,1)

k(0,1,1)

“Ideal point”

Take R3 –{0,0,0} and look at scale equivalence class (rays/lines trough the origin).

z

y

x

z

y

x

Page 25: Objective

Projective Line vs. the Real Line

-1 0 1 2 ∞

k(0,1)

k(1,0)

k(2,1)k(1,1)k(-1,1)

“Ideal point”

SymbolRP1

SpaceThe real lineR^2 – {0,0}

Objects (points)pointsEquivalence classes (2D “rays”)

RealizationIntersection with line y=1

Page 26: Objective

Projective Plane vs Euclidian plane

k(0,0,1)

k(x,y,0)

k(1,1,1)

k(1,0,1)

k(0,1,1)“Ideal line”

SymbolR2P2

SpaceThe real planeR3 – {0,0,0}

Objects (points)pointEquivalence classes (3D rays)

RealizationIntersection with plane z=1

Page 27: Objective

2D Projective Geometry: Basics A point:

A line:

we denote a line with a 3-vector

Line coordinates are homogenous

Points and lines are dual: p is on l if

Intersection of two lines/points

2 2( , , ) ( , )T Tx yx y z P

z z

0 ( ) ( ) 0x y

ax by cz a b cz z

0Tl p

1 2 ,l l 1 2p p

( , , )Ta b c

ll

Page 28: Objective

Cross Product

1 2 1 2 1 2

1 2 1 2 1 2

1 2 1 2 1 2

x x y z z y

y y z x x z

z z x y y x

0T Tw u v w u w v

Every entry is a determinant of the two other entries

w Area of parallelogram bounded by u and v

Hartley & Zisserman p. 581

Page 29: Objective

Cross Product in matrix notation [ ]x

0

0

0

xy

xz

yz

x

tt

tt

tt

t1 2 1 2 1 2

1 2 1 2 1 2

1 2 1 2 1 2

x x y z z y

y y z x x z

z z x y y x

0

0

0

x y z z y

y z x z x

z x y y x

t x t z t y t t x

t y t x t z t t y

t z t y t x t t z

Hartley & Zisserman p. 581

ptpt x

Page 30: Objective

Example: Intersection of parallel lines

00

)(

0

)(

)(

2122

21

21 a

b

a

b

cccca

ccb

ll

1 2 1 2 1 2

1 2 1 2 1 2

1 2 1 2 1 2

x x y z z y

y y z x x z

z z x y y x

Q: How many ideal points are there in P2?A: 1 degree of freedom family – the line at infinity

),,( ),,( 2211 cbalcbal

Page 31: Objective

Projective Transformations

u

u’

Page 32: Objective

Transformations of the projective line

1P

Pencil of raysPerspective mapping

A perspective mapping is a projective transformation T:P1 P1

Perceptivity is a special projective mapping. Hartley & Zisserman p. 632Lines connecting corresponding points are “concurrent”

Page 33: Objective

40

Perspectivities Projectivities Perspectivities are not a group

ityperspectiv a is 1 Ll ityperspectiv a is 2lL

ityperspectiv anot is 21 ll

L

l1 l2

Page 34: Objective

Projective transformations of the projective line

dycx

byax

y

xG dc

ba

:

1/

//

dc

dbda

dc

ba

11'

''

1 xc

bxax G

Given a 2D linear transformation G:R2 R2 Study the induced transformation on the Equivalents classes.

1'

''

xc

bxax GOn the realization y=1 we get:

Page 35: Objective

Properties:1'

''

xc

bxax T

dc

baT

1. Invertible (T-1 exists) 2. Composable (To G is a projective transformation)3. Closed under composition

• Has 4 parameters • 3 degrees of freedom • Defined by 3 points

TT Every point defines 1 constraint

Page 36: Objective

Ideal points and projective transformations

Projective transformation can map ∞ to a real point

Page 37: Objective

Plane Perspective

2P

Page 38: Objective

cos sin, , det 1

sin cosTR R R I R

Rotation:

Translation:x

y

tt

t

2 2, 1, (2)a b

R a b R SOb a

Euclidean Transformations (Isometries)

q Rp t

Page 39: Objective

Rotation:Translation:

Hierarchy of 2D Transformations

Rigid (Isometry)

Similarity

Affine

Projective

Scale

Hartley & Zisserman p. Sec. 2.4


Recommended