Top Banner
Stereo matching Class 10 Read Chapter 7 http:// cat.middlebury.edu /stereo/ Tsukuba dataset
39
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Stereo matchingClass 10

Read Chapter 7

http://cat.middlebury.edu/stereo/

Tsukuba dataset

Page 2: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Stereo

• Standard stereo geometry• Stereo matching

• Correlation• Optimization (DP, GC)

• General camera configuration• Rectification• Plane-sweep

Page 3: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Standard stereo geometry

pure translation along X-axis

Page 4: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Standard stereo geometry

Page 5: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Stereo matching

• Search is limited to epipolar line (1D)• Look for most similar pixel

?

Page 6: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Aggregation

• Use more than one pixel• Assume neighbors have similar

disparities*

• Use correlation window containing pixel

• Allows to use SSD, ZNCC, Census, etc.

Page 7: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Compare intensities pixel-by-pixel

Comparing image regions

I(x,y) I´(x,y)

Sum of Square Differences

Dissimilarity measures

Page 8: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Compare intensities pixel-by-pixel

Comparing image regions

I(x,y) I´(x,y)

Zero-mean Normalized Cross Correlation

Similarity measures

Page 9: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Compare intensities pixel-by-pixel

Comparing image regions

I(x,y) I´(x,y)

Census

Similarity measures

125 126 125

127 128 130

129 132 135

0 0 0

0 1

1 1 1

(Real-time chip from TYZX based on Census)

only compare bit signature

Page 10: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Aggregation window sizes

Small windows • disparities similar• more ambiguities• accurate when correct

Large windows • larger disp. variation• more discriminant• often more robust• use shiftable windows

to deal with discontinuities

(Illustration from Pascal Fua)

Page 11: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Occlusions

(Slide from Pascal Fua)

Page 12: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.
Page 13: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Real-time stereo on GPU

• Computes Sum-of-Square-Differences (use pixelshader)

• Hardware mip-map generation for aggregation over window

• Trade-off between small and large support window

(Yang and Pollefeys, CVPR2003)

290M disparity hypothesis/sec (Radeon9800pro)e.g. 512x512x36disparities at 30Hz

GPU is great for vision too!

Page 14: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Exploiting scene constraints

Page 15: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Ordering constraint

11 22 33 4,54,5 66 11 2,32,3 44 55 66

2211 33 4,54,5 6611

2,32,3

44

55

66

surface slicesurface slice surface as a pathsurface as a path

occlusion right

occlusion left

Page 16: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Uniqueness constraint

• In an image pair each pixel has at most one corresponding pixel• In general one corresponding pixel• In case of occlusion there is none

Page 17: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Disparity constraint

surface slicesurface slice surface as a pathsurface as a path

bounding box

dispa

rity b

and

use reconstructed features to determine bounding box

constantdisparitysurfaces

Page 18: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Stereo matching

Optimal path(dynamic programming )

Similarity measure(SSD or NCC)

Constraints• epipolar

• ordering

• uniqueness

• disparity limit

Trade-off

• Matching cost (data)

• Discontinuities (prior)

Consider all paths that satisfy the constraints

pick best using dynamic programming

Page 19: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Hierarchical stereo matching

Dow

nsam

plin

g

(Gau

ssia

n p

yra

mid

)

Dis

pari

ty p

rop

ag

ati

on

Allows faster computation

Deals with large disparity ranges

Page 20: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Disparity map

image I(x,y) image I´(x´,y´)Disparity map D(x,y)

(x´,y´)=(x+D(x,y),y)

Page 21: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Example: reconstruct image from neighboring

images

Page 22: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.
Page 23: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Energy minimization

(Slide from Pascal Fua)

Page 24: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Graph Cut

(Slide from Pascal Fua)

(general formulation requires multi-way cut!)

Page 25: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

(Boykov et al ICCV‘99)

(Roy and Cox ICCV‘98)

Simplified graph cut

Page 26: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.
Page 27: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Stereo matching with general camera configuration

Page 28: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Image pair rectification

Page 29: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Planar rectification

Bring two views Bring two views to standard stereo setupto standard stereo setup

(moves epipole to )(not possible when in/close to image)

~ image size

(calibrated)(calibrated)

Distortion minimization(uncalibrated)

Page 30: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.
Page 31: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Polar re-parameterization around epipolesRequires only (oriented) epipolar geometryPreserve length of epipolar linesChoose so that no pixels are compressed

original image rectified image

Polar rectification(Pollefeys et al. ICCV’99)

Works for all relative motionsGuarantees minimal image size

Page 32: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

polarrectification

planarrectification

originalimage pair

Page 33: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Example: Béguinage of Leuven

Does not work with standard Homography-based approaches

Page 34: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Example: Béguinage of Leuven

Page 35: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Stereo camera configurations

(Slide from Pascal Fua)

Page 36: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Multi-camera configurations

Okutami and Kanade

(illustration from Pascal Fua)

Page 37: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Multi-view depth fusion

• Compute depth for every pixel of reference image• Triangulation• Use multiple views• Up- and down

sequence• Use Kalman filter

(Koch, Pollefeys and Van Gool. ECCV‘98)

Allows to compute robust texture

Page 38: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Plane-sweep multi-view matching

• Simple algorithm for multiple cameras• no rectification necessary• doesn’t deal with occlusions

Collins’96; Roy and Cox’98 (GC); Yang et al.’02/’03 (GPU)

Page 39: Stereo matching Class 10 Read Chapter 7  Tsukuba dataset.

Next class: structured light