Humanoid Robotics Projective Geometry Homogeneous Coordinates - - PowerPoint PPT Presentation

humanoid robotics projective geometry homogeneous
SMART_READER_LITE
LIVE PREVIEW

Humanoid Robotics Projective Geometry Homogeneous Coordinates - - PowerPoint PPT Presentation

Humanoid Robotics Projective Geometry Homogeneous Coordinates Maren Bennewitz Motivation Cameras generate a projected image of the world In Euclidian geometry, the math can get difficult Projective geometry is an alternative


slide-1
SLIDE 1

Humanoid Robotics Projective Geometry Homogeneous Coordinates

Maren Bennewitz

slide-2
SLIDE 2

Motivation

§ Cameras generate a projected image of the world § In Euclidian geometry, the math can get difficult § Projective geometry is an alternative algebraic representation of geometric

  • bjects and transformations

§ Homogeneous coordinates are often used in robotics for the sake of simplicity § All affine transformations and even projective transformations can be expressed with one matrix multiplication

slide-3
SLIDE 3

Pinhole Camera Model

§ Describes the projection of a 3D world point into the camera image § A box with an infinitesimal small hole § The camera center is the intersection point

  • f the rays (pinhole)

§ The back wall is the image plane § The distance between the camera center and image plane is the camera constant

slide-4
SLIDE 4

Pinhole Camera Model

image plane

  • bject

camera center (pinhole)

camera constant (focal length)

slide-5
SLIDE 5

Geometry and Images

Image courtesy: Förstner

slide-6
SLIDE 6

Pinhole Camera Properties

§ Line-preserving: straight lines are mapped to straight lines § Not length-preserving: size of

  • bjects is inverse proportional to the

distance § Not angle-preserving: Angles between lines change

slide-7
SLIDE 7

Information Loss Caused by the Projection of the Camera

§ A camera projects from 3D to 2D § This causes a loss of information § 3D information can only be recovered if additional information is available

slide-8
SLIDE 8

Information Loss Caused by the Projection of the Camera

§ A camera projects from 3D to 2D § This causes a loss of information § 3D information can only be recovered if additional information is available

§ Multiple images § Details about the camera § Background knowledge § Known size of objects § …

slide-9
SLIDE 9

Homogeneous Coordinates

§ H.C. are a system of coordinates used in projective geometry § Formulas using H.C. are often simpler than using Euclidian coordinates § Points at infinity can be represented using finite coordinates § A single matrix can represent affine and projective transformations

slide-10
SLIDE 10

Notation

Point (or or ) § in homogeneous coordinates § in Euclidian coordinates 2D vs. 3D space § lowercase = 2D § capitalized = 3D

slide-11
SLIDE 11

Homogeneous Coordinates

Definition § The representation of a geometric

  • bject is homogeneous if and

represent the same object for Example

homogeneous Euclidian

slide-12
SLIDE 12

Homogeneous Coordinates

§ H.C. use a n+1 dimensional vector to represent the same (n-dim.) point § Example:

slide-13
SLIDE 13

Definition

§ Homogeneous Coordinates of a point in the plane is a 3-dim. vector § Corresponding to Euclidian coordinates

slide-14
SLIDE 14

From Homogeneous to Euclidian Coordinates

slide-15
SLIDE 15

From Homogeneous to Euclidian Coordinates

Image courtesy: Förstner

slide-16
SLIDE 16

3D Points

§ Analogous for 3D points in Euclidian space

homogeneous Euclidian

slide-17
SLIDE 17

Origin of the Euclidian Coordinate System in H.C.

slide-18
SLIDE 18

Points at Infinity

§ It is possible to explicitly model infinitively distant points with finite coordinates § H.C. allow us to maintain the direction to that infinitively distant point

slide-19
SLIDE 19

Transformations

§ A projective transformation is an invertible linear mapping § Called homography

slide-20
SLIDE 20

§ Projective mapping § Translation: 3 parameters

(3 translations)

Important 3D Transformations

slide-21
SLIDE 21

Important 3D Transformations

§ Rotation: 3 parameters

(3 rotation)

rotation matrix

slide-22
SLIDE 22

Reminder Rotation Matrices

§ 2D: § 3D:

slide-23
SLIDE 23

Important 3D Transformations

§ Rotation: 3 parameters

(3 rotation)

§ Rigid body transformation: 6 params

(3 translation + 3 rotation)

slide-24
SLIDE 24

Important 3D Transformations

§ Similarity transformation: 7 params

(3 trans + 3 rot + 1 scale)

§ Affine transformation: 12 parameters

(3 trans + 3 rot + 3 scale + 3 sheer)

slide-25
SLIDE 25

Important 3D Transformations

§ Projective transformation: 15 params

(affine transformation + 3 parameters)

§ These 3 parameters are the projective that yield to the fact that parallel lines may not stay parallel

slide-26
SLIDE 26

Transformations for 2D

Image courtesy: Schindler

slide-27
SLIDE 27

Transformations Hierarchy (2D/3D)

projective transformation

(8/15 parameters)

affine transformation

(6/12 parameters)

similarity transformation

(4/7 parameters)

motion transformation

(3/6 parameters)

translation

(2/3 parameters)

rotation

(1/3 parameters)

slide-28
SLIDE 28

Example: Homography

source: openMVG

slide-29
SLIDE 29

Inverting and Chaining

§ Inverting a transformation § Chaining transformations via matrix products (not commutative)

slide-30
SLIDE 30

Conclusion

§ Homogeneous coordinates are an alternative representation for transforms § Can simplify mathematical expressions § Can model points at infinity § Allow for easy chaining and inversion

  • f transformations

§ Modeled through an extra dimension § Equivalence up to scale

slide-31
SLIDE 31

Literature

§ Multiple View Geometry in Computer Vision,

  • R. Hartley and A. Zisserman, Ch. 2, 3

§ Slides based on Chapter 15 “Projective Geometry (Homogeneous Coordinates)”, Photogrammetry I by C. Stachniss