Projective Geometry - Heidelberg University

19
Projective Geometry Based on slides by Peter Corke

Transcript of Projective Geometry - Heidelberg University

Page 1: Projective Geometry - Heidelberg University

Projective Geometry

Based on slides by Peter Corke

Page 2: Projective Geometry - Heidelberg University
Page 3: Projective Geometry - Heidelberg University
Page 4: Projective Geometry - Heidelberg University

Homogeneous coordinates

• homogeneous → Cartesian

• Cartesian → homogeneous

lines and points are duals

Page 5: Projective Geometry - Heidelberg University

Pin-hole model in homogeneous form

• Perspective transformation, with the pesky divide by

Z, is linear in homogeneous coordinate form.

Page 6: Projective Geometry - Heidelberg University

3D to 2Dscaling/zoomi

ng

Page 7: Projective Geometry - Heidelberg University

Central projection model

Page 8: Projective Geometry - Heidelberg University

Change of coordinates

• scale from metres to pixels

• shift the origin to top left

corner

Page 9: Projective Geometry - Heidelberg University

Complete camera model

intrinsic

parameters

extrinsic parameters

camera matrix

Page 10: Projective Geometry - Heidelberg University

Camera matrix• Mapping points from the world to an image (pixel)

coordinate is simply a matrix multiplication using homogeneous coordinates

Page 11: Projective Geometry - Heidelberg University

Scale invariance

Page 12: Projective Geometry - Heidelberg University

Normalized camera matrix• Since scale factor is arbitrary we can fix the value of

one element, typically C(3,4) to one.

Page 13: Projective Geometry - Heidelberg University

Points on a plane

all points on the

plane have Z=0

Page 14: Projective Geometry - Heidelberg University

Planar homography

• Once again the scale factor is arbitrary

• 8 unique numbers in the homography matrix

• Can be estimated from 4 world points and their corresponding image points

homography

matrix

Page 15: Projective Geometry - Heidelberg University

Perspective rectification

>> H = homography(p1, p2) H=

1.4003 0.3827 -136.5900 -

0.0785 1.8049 -83.1054 -

0.0003 0.0016 1.0000

Page 16: Projective Geometry - Heidelberg University

>> homwarp(H, im, 'full')

Perspective rectification

Page 17: Projective Geometry - Heidelberg University

Warping

Page 18: Projective Geometry - Heidelberg University

Name

Page 19: Projective Geometry - Heidelberg University