geometry of multiple views - cs.bilkent.edu.tr

53
CS554 Computer Vision © Pinar Duygulu 1 Geometry of Multiple views CS 554 – Computer Vision Pinar Duygulu Bilkent University

Upload: others

Post on 27-Mar-2022

4 views

Category:

Documents


0 download

TRANSCRIPT

CS554 Computer Vision © Pinar Duygulu

1

Geometry of Multiple views

CS 554 – Computer VisionPinar Duygulu

Bilkent University

CS554 Computer Vision © Pinar Duygulu

2

Multiple views

With at least two pictures, depth can be measured by triangulation.

OOP’=Q’P’=Q’

PPQQ 3D Points on the same viewing line have

the same 2D image: 2D imaging results in depth information

loss

Despite the wealth of information contained in a a photograph, the depth of a scene point along the corresponding projection ray is not directly accessible in a single image

CS554 Computer Vision © Pinar Duygulu

3

Adapted from David Forsyth, UC Berkeley

Human/Animal Visual system

It is the reason that most animals have at least two eyes and/or move their head when looking around

CS554 Computer Vision © Pinar Duygulu

4

Visual Robot Navigation

Forsyth & Ponce

Left : The Stanford cart sports a single camera moving in discrete increments along a straight line and providing multiple snapshots of outdoor scenesRight : The INRIA mobile robot uses three cameras to map its environment

This is also the motivation for equipping an autonomous robot with a stereo or motion analysis system.

CS554 Computer Vision © Pinar Duygulu

5

Human Vision

• Humans have two eyes, both forward facing but horizontally spaced by approximately 60mm.

• When looking at an object, each eye will produce a slightly different image, as it will be looking at a slightly different angle.

• The human brain combines both these

images into one to give a perception of depth.

• This processing is so quick and seamless

that the perception is that we are looking through one big eye rather than two.

http://www.photostuff.co.uk/stereo.htm

CS554 Computer Vision © Pinar Duygulu

6

Human Vision

• The brain can also determine depth and how far objects are away from each other by the amount of difference between the two images that it receives.

• The further the subject is from the eye, the less will be the difference between the two images and conversely the nearer the subject, the greater the difference.

• The left and right eyes see the sun in the same place as it is in the distance. The tree being much closer is seen in slightly different places

http://www.photostuff.co.uk/stereo.htm

CS554 Computer Vision © Pinar Duygulu

7

Stereo vision = correspondences + reconstruction

Adapted from Martial Hebert, CMU

Stereovision involves two problems:Correspondence : Given a point p_l in one image, find the corresponding point in the other imageReconstruction: Given a correspondence (p_l, p_r) compute the 3D coordinates of the corresponding point in space, P

CS554 Computer Vision © Pinar Duygulu

8

Stereo constraints

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

9

Stereo constraints

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

10

Epipolar line

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

11

Multi-view Geometry

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

12

Epipolar constraint

Forsyth & Ponce

O, O’ : optical centersp & p’ are the images of P

These 5 points all belong to epipolar plane

CS554 Computer Vision © Pinar Duygulu

13

Epipolar constraint

Adapted from Trevor Darrell, MIT

Point p’ lies on the line l’ where epipolar plane and the retina π’ intersect. The line l’ is the epipolar line associated with the point pIt passes through the point e’ where the baseline joining the optical centers o and O’ intersectsThe points e and e’ are called the epipoles of the cameras

If p and p’ are the images of the same point P, then p’ must lie on the epipolar assoiciated with p Epipolar constraint

CS554 Computer Vision © Pinar Duygulu

14

Epipolar constraint

Adapted from Martial Hebert, CMU

Epipolar constraint greatly limits the search of corresponding points.

CS554 Computer Vision © Pinar Duygulu

15

Epipolar constraint – Calibrated case

Adapted from Trevor Darrell, MIT

Assume that the intrinsic parameters of each camera are known

CS554 Computer Vision © Pinar Duygulu

16

Epipolar constraint – Calibrated case

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

17

Epipolar constraint – Calibrated case

Adapted from Trevor Darrell, MIT

p = (u,v,1)T p’ = (u’,v’,1)T

CS554 Computer Vision © Pinar Duygulu

18

Epipolar constraint – Calibrated case

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

19

Epipolar constraint – Calibrated case

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

20

Epipolar constraint – Calibrated case

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

21

The essential matrix

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

22

The essential matrix

Adapted from Trevor Darrell, MIT

p lies on the epipolar line associated with the point p’

CS554 Computer Vision © Pinar Duygulu

23

Epipolar geometry example

Adapted from Martial Hebert, CMU

CS554 Computer Vision © Pinar Duygulu

24

What if calibration is unknown?

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

25

Fundamental Matrix

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

26

Estimating the Fundamental Matrix

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

27

Estimating the Fundamental Matrix

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

28

The 8 point algorithm (Longuet-Higgins, 1981)

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

29

Improved 8 point algorithm (Normalized)

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

30

8 point algorithm

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

31

8 point algorithm

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

32

8 point algorithm

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

33

Example

Adapted from David Forsyth

CS554 Computer Vision © Pinar Duygulu

34

Example

Adapted from David Forsyth

CS554 Computer Vision © Pinar Duygulu

35

Example

Adapted from David Forsyth

CS554 Computer Vision © Pinar Duygulu

36

Example

Adapted from David Forsyth

CS554 Computer Vision © Pinar Duygulu

37

Multiple Cameras

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

38

Three essential matrices

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

39

Three essential matrices

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

40

Trinocular epipolar geometry

Adapted from Trevor Darrell, MIT

Trifocal plane formed from trifocal lines

CS554 Computer Vision © Pinar Duygulu

41

Trifocal line constraint

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

42

Trifocal line constraint

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

43

Trifocal line constraint

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

44

Trifocal line constraint

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

45

Trifocal line constraint

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

46

Trifocal line constraint

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

47

The trifocal tensor

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

48

Trifocal line constraint

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

49

Line transfer

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

50

Uncalibrated case

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

51

Quadrifocal Geometry

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

52

Quadrifocal Geometry

Adapted from Trevor Darrell, MIT

CS554 Computer Vision © Pinar Duygulu

53

Trifocal constraint with noise

Adapted from Trevor Darrell, MIT