90
stereo •Outline : •Remind class of 3d geometry •Introduction •How human see depth •The principle of triangulation •Epipolar geometry •Fundamental Matrix •Rectification •correspondence • Correlation • Feature based • Other 3d reconstruction methods

Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Embed Size (px)

Citation preview

Page 1: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

stereo

• Outline :• Remind class of 3d geometry• Introduction• How human see depth• The principle of triangulation• Epipolar geometry• Fundamental Matrix• Rectification• correspondence

• Correlation• Feature based• Other 3d reconstruction methods

Page 2: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Remind from the last lecture

Single view modeling

Page 3: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Projection in 2D

Page 4: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Vanishing points (2D)

Page 5: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Two point perspective

Page 6: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Vanishing lines

Multiple Vanishing Points Any set of parallel lines on the plane define a vanishing point The union of all these vanishing points is the horizon line

Also called vanishing line Note that different planes (can) define different vanishing lines

Page 7: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Vanishing pointVanishing point

Page 8: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Perspective cues

Page 9: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Perspective cues

Page 10: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Perspective cues

Page 11: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Comparing heights•Vanishing point Vanishing point

Page 12: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Measuring height

Page 13: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Cross ratio

scene cross ratio

Image cross ratio

Page 14: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Cross ratio

Page 15: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

stereo

• What is stereo in computer vision?• What it’s god for?

Page 16: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Introduction

• There is no sense of depth in image that seen from one camera.• We will see in this chapter how to produce images that have sense of depth.

Page 17: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Stereo

Many slides adapted from Steve Seitz

Page 18: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Introduction

• Computer stereo vision is the extraction of 3D information from digital images.• Human being use stereo to sense the distance.

Page 19: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

How human see depth

Page 20: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Motivation-Application

• Stereo vision is highly important in fields such as• robotics:

• Robot navigation.• Car navigation.

• Extract information about the relative position of 3D objects.• Making the 3d moves.• Vedieo games that use stereo .

Page 21: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Motivation .con

Page 22: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

goal

• Given two or more images of a same object (from different points) we want a recovery of the object in the real word .

Page 23: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Goal con.“Demo”

Page 24: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

The principle of triangulation con.• Given projections of a 3D point

“x” in two or more images (with known focal length), find the coordinates of the point.

• The 3d points at the intersection of the rays passing through the matching the image points and the associated optical center .

Page 25: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Depth from disparity

f

x x’

BaselineB

z

O O’

X

f

z

fBxxdisparity

𝛼𝛽

We can see that we have Similarity between the triangles (X,O,O’) and (X,x,x’)

Page 26: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

26

Stereo VisionTwo cameras: Left and RightOptical centers: OL and OR

Virtual image plane is projection of actual image plane through optical centerBaseline, b, is the separation between the optical centersScene Point, P, imaged at pL and pR

pL = 9pR = 3Disparity, d = pR – PL = 6

Disparity is the amount by which the two images of P are displaced relative to each other

Depth, z= bfpd

p = pixel width

Page 27: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Depth from disparity

f

x x’

BaselineB

z

O O’

X

f

z

fBxxdisparity

Disparity is inversely proportional to depth!

Z’Small disparity => large depth

Page 28: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Depth from disparity

f

x x’

BaselineB

z

O O’

X

f

z

fBxxdisparity

Disparity is inversely proportional to depth!

ZLarge disparity => small depth

Page 29: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Reconstruction

Sometimes the rays will never intersect because we have feature localization error, so we look for the closest point to the rays .

Page 30: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Stereo with convergence cameras

• short base line:large common filed of view .large depth error.

Page 31: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Stereo with convergence cameras

• Large base line:Small depth error .Small common filed of view.

Page 32: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Verging optical axes

• Two optical axes intersect at a fixation point:

the common filed of view increased.

small depth error.• Corresponding is more difficult.

Page 33: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Problems in stereo vision

• We have a problem to match a point in the two images.

correspondence

• So we use epipolar geometry.

Page 34: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Epipolar geometry

For each point in image plane 1 there is a set of points that can match (q’,p’). q

p

P’q’

O O’

Page 35: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Epipolar geometry

x x’

• Baseline – line connecting the two camera centers

Page 36: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

• Epipolar Plane – plane containing baseline (1D family)• Epipoles = intersections of baseline with image planes = projections of the other camera center= vanishing points of the motion direction

• Baseline – line connecting the two camera centers

Epipolar geometryp

p p’

Page 37: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Epipolar line

epipole

Epipolar plan

Page 38: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

The epipole

Page 39: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Epipolar constraint

Page 40: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

• Potential matches for p have to lay on the corresponding epiploar line l’

• Potential matches for p’ have to lay on the corresponding epipolar line l.

• e , e’ called epipoles.

Page 41: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Vector cross product to matrix vector multiplication

],,[ yxyxzxxzzyyz

zyx

zyx BAABBABABABA

BBB

AAA

kji

BA

z

y

x

xy

xZ

yZ

B

B

B

AA

AA

AA

BSBA

0

0

0

. ],,[ yxyxzxxzzyyz BAABBABABABA

Page 42: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Essential matrix

T=translationR=rotation

Page 43: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Essential matrix

0 lT

r PRTP0)( l

Tl PTTP

)( TPRP lr

)( TPPR lrT

Tl

Tr TPRP )(

}

Coplanarity constraint between vectors T , )( TPl lP,

Page 44: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Essential matrix

0 lT

r PRTP } 0][ lxT

r PTRP 0 lT

r EPP

Essential Matrix

E=R

0

0

0

xy

xZ

yZ

TT

TT

TT xT

Page 45: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Homogeneous coordinates Conversion

Converting to homogeneous coordinates

homogeneous image coordinates

homogeneous scene coordinates

Converting from homogeneous coordinates

Page 46: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Intrinsic transformation - Principal Point

Page 47: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Camera transformation

2D poin

t (3x1

)

Camera to pixel coord.

trans. matrix

(3x3)

Perspectiveprojection

matrix(3x4)

World to camera coord.

trans. matrix(4x4)

3Dpoin

t(4x1

)

Page 48: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Intrinsic transformation

Page 49: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Fundamental matrix

• We assume that camera calibration is known what if we don’t know the camera calibration.

• We use fundamental matrix to solve this problem

0lT

r Fxx

Page 50: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Fundamental matrix

Assume we know the camera calibration:Then: is the un-normalized coordinates . = K=

lll pMx

lp

lM

lM

Page 51: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Fundamental matrix

lll PMx

rrr PMx 0l

Tr EPP

lll PxM 1

rrr PMx T

rT

rT

r PMx

}01

llT

rT

r xEMMx

0][ 1 ll

Tr

Tr xEMMx

0lT

r Fxx

Page 52: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Fundamental matrix

• M is 4*3 matrix , so how we get • Assume we get M.• We use pseudo inverse to get it.

TT MMMMpinv 1)()(

Page 53: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Fundamental matrix

• Given appoint on the left camera what can we know from the fundamental matrix.

• Every point on the epipolar line of that correspond the point is accomplish the equation.

0''

x

ihg

fed

cba

xFxx TT0' Fxx T

Page 54: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

• Assume ]1[ yxX

3

2

1

f

f

f

x

ihg

fed

cba

Fx 0'')'( 321

3

2

1

fyfxf

f

f

f

X T

We got a equation of the epipolar line .

Page 55: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Fundamental Matrix. con

0''

x

ihg

fed

cba

xFxx TT

Given a point in left camera x , epiploar line in right camera is Fxur

Admin
Admin
Page 56: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Fundamental Matrix. con

0''

x

ihg

fed

cba

xFxx TT

• 3*3 matrix with 9 components• Rank 2 matrix( due to S )• 7 degrees of freedom• Given a point in left camera x , epiploar line in

right camera is Fxur

Page 57: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Computing fundamental matrix

• F (the fundamental matrix ) has 9 variables.• In order to compute F we must get some pointes.• How much pointes we need.

0

00

'

''

x

ihg

fed

cba

x

x

ihg

fed

cba

xFxx

T

TT

Page 58: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Computing fundamental matrix

• we can set i=1;• All epipolar lines intersect in the epipole point .• =epipole in the left image.• No mater what is x’ the equation Is always true.

00''

ee

TT x

ihg

fed

cba

x

ihg

fed

cba

xFxx

ex

Epipole is an eigenvector of F with eigenvalue =0

Page 59: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Computing fundamental matrix

• F has 7 degree of freedom .• We need minimum 4 points to calculate i={1,2,3,4}.

0

1

'

'

11 3231

232221

131211

i

i

T

i

i

y

x

ff

fff

fff

y

x

Page 60: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Computing fundamental matrix

0)''()''()''( 333231232221131211 fyfxffyfxfyfyfxfx iiiii

0

''

''

''

1 333231

232221

131211

fyfxf

fyfxf

fyfxf

y

x

i

i

i

i

i

Page 61: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Fundamental Matrix.con

0)''()''()''( 333231232221131211 fyfxffyfxfyfyfxfx iiiii

0'''''' 333231232221131211 fyfxffyyfyxfyfxyfxxfx iiiiiiiii

One equation for one point correspondence

Page 62: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Computing fundamental matrix

1

1

1

1

1

1

1

1

33

32

31

23

22

21

13

12

'8

'888

'88

'888

'88

'8

'7

'777

'77

'777

'77

'7

'6

'666

'66

'666

'66

'6

'5

'555

'55

'555

'55

'5

'4

'444

'44

'444

'44

'4

'3

'333

'33

'333

'33

'3

'2

'222

'22

'222

'2

'2

'1

'111

'11

'111

'11

'1

f

f

f

f

f

f

f

f

f

yxyyyyxxxyxx

yxyyyyxxxyxx

yxyyyyxxxyxx

yxyyyyxxxyxx

yxyyyyxxxyxx

yxyyyyxxxyxx

yxyyyyxxxyxx

yxyyyyxxxyxx

Page 63: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Epipolar lines

Page 64: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Epipolar lines

Page 65: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Rectification

• Why we need rectification ?

Because the matching point will be in the same row.

Page 66: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Rectification

• Rectification: warping the input images (perspective transformation) so that epipolar lines are horizontal

Page 67: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Rectification

Image Reprojection reproject image planes onto

common plane parallel to baseline Notice, only focal point of camera

really matters(Seitz)

Page 68: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Rectification

slide: R. Szeliski

Page 69: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Rectification• Any stereo pair can be rectified by rotating and scaling

the two image planes (=homography)

• We will assume images have been rectified so• Image planes of cameras are parallel. • Focal points are at same height.• Focal lengths same.

• Then, epipolar lines fall along the horizontal scan lines of the images

Page 70: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Correspondence

• For every point in image plane 1 we have a set of point that may match in the image plane2.

• How we find the best matching point ?• Correlation based

Attempt to establish correspondence by matching image intensities-usually over a window of pixels in each image.• Feature based

attempt to establish a correspondence by matching a sparse sets to image features (edges…).

Page 71: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Matching cost

disparity

Left Right

scanline

Correspondence search-via correlation

• Slide a window along the right scanline and compare contents of that window with the reference window in the left image

• Matching cost: SSD or normalized correlation

Page 72: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Correlation methods

• Sum of squares different(SSD)=

• Absolute difference (AD) =

• CC =

• Normalized correlation (NC) =

• MC =

2)( rightleft II

|)(| rightleft II

rightleft II

rightleft

rightleft

II

II

)(

))((64

1rightrightleftleft

rightleft

II

Page 73: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Window size

• If we take a too small window then we will more details but more noise !• If we take a too large window the matching will be less sensitive to noise.

W=3 W=20

Page 74: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Disparity map

• Disparity map is a map that helps us to express our match after we have done the correspondence ( correlation ) between the left and the right images, that it uses the intensity of gray color to express the disparity between the two matching windows (bright color mention that disparity is large, and dark color express small disparity) .

Page 75: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Disparity map.con

• If we were to perform this matching process for every pixel in the left hand image, finding its match in the right hand frame and computing the distance between them you would end up with an image where every pixel contained the distance/disparity value for that pixel in the left image.

Page 76: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Right imageLeft image

Disparity map

Page 77: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Correlation method

• Not working good enough in some cases (images that have few details).• Easy to implement .• We can use dense disparity map.

Page 78: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Failures of correspondence search

Textureless surfaces Occlusions , repetition

Page 79: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Feature based approach

Page 80: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Feature based

• Features• Edge points• Lines• Corners

• Matching algorithm• Extract features in the stereo pair• Define similarity measure• Search correspondence using similarity measure and the epipolar geometry

Page 81: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Feature based methods

23

22

21

20 )()()()(

1

rlrlrlrl iiwmmwwllws

l-length - orientation m-coordinates of the midpointi-average intensity along the line

W- the weights

Page 82: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Feature based approach

• Pros :• Relatively insensive to illumination changes• Good for man made scenes with strong lines but weak texture or texurless

surfaces• Work well on edges• Faster than correlation approach

• Cons:• Only sparse depth map• May be tricky

Page 83: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Winner take all

• Tow pixels(in image plan1) may correesponed to the same pixel in image plane2.

ab

c

Page 84: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Ordering

Page 85: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Global approach

• Use dynamic programing to force pixels along scan line.• If a is in the left side of b then will match to a pixel that in the liftest

side.• We will match every pixel

Page 86: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Global approach

Page 87: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Global approach

• We want to minimize the coast of the correspondence(starting from the left to the right).

Page 88: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification
Page 89: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification

Three Views

Matches between points in the first two images can be checked by re-projecting the corresponding three-dimensional point in the third image

Page 90: Stereo Outline : Remind class of 3d geometry Introduction How human see depth The principle of triangulation Epipolar geometry Fundamental Matrix Rectification