Presentation is loading. Please wait.

Presentation is loading. Please wait.

What have we learned so far?

Similar presentations


Presentation on theme: "What have we learned so far?"— Presentation transcript:

1 What have we learned so far?
Camera structure Eye structure Project 1: High Dynamic Range Imaging

2 What have we learned so far?
Image Filtering Image Warping Camera Projection Model Project 2: Panoramic Image Stitching

3 What have we learned so far?
Projective Geometry Single View Modeling Shading Model Project 3: Photometric Stereo

4 Next 3D modeling from two images – Stereo

5

6 Public Library, Stereoscopic Looking Room, Chicago, by Phillips, 1923

7 Inventor: Sir Charles Wheatstone, 1802 - 1875

8 Inventor: Sir Charles Wheatstone, 1802 - 1875

9 Stereograms online UCR stereographs The Art of Stereo Photography History of Stereo Photography Double Exposure Stereo Photography 3D Photography links National Stereoscopic Association Books on Stereo Photography A free pair of red-blue stereo glasses can be ordered from Rainbow Symphony Inc

10 FUJIFILM, September 23, 2008 Fuji 3D printing

11 Stereo scene point image plane optical center

12 Stereo Basic Principle: Triangulation
Gives reconstruction as intersection of two rays Requires calibration point correspondence

13 Stereo correspondence
Determine Pixel Correspondence Pairs of points that correspond to same scene point epipolar plane epipolar line epipolar line Epipolar Constraint Reduces correspondence problem to 1D search along conjugate epipolar lines Java demo:

14 Epipolar Line Example courtesy of Marc Pollefeys

15 Stereo image rectification

16 Stereo image rectification
reproject image planes onto a common plane parallel to the line between optical centers pixel motion is horizontal after this transformation two homographies (3x3 transform), one for each input image reprojection C. Loop and Z. Zhang. Computing Rectifying Homographies for Stereo Vision. IEEE Conf. Computer Vision and Pattern Recognition, 1999.

17 Epipolar Line Example courtesy of Marc Pollefeys

18 Epipolar Line Example Give equations courtesy of Marc Pollefeys

19 Stereo matching algorithms
Match Pixels in Conjugate Epipolar Lines Assume brightness constancy This is a tough problem Numerous approaches A good survey and evaluation:

20 Basic stereo algorithm
Improvement: match windows For each pixel in the left image For each epipolar line compare with every pixel on same epipolar line in right image pick pixel with minimum match cost

21 Basic stereo algorithm
For each pixel For each disparity For each pixel in window Compute difference Find disparity with minimum SSD

22 Reverse order of loops For each disparity For each pixel in window
Compute difference Find disparity with minimum SSD at each pixel

23 Incremental computation
Given SSD of a window, at some disparity Image 1 Image 2

24 Incremental computation
Want: SSD at next location Image 1 Image 2

25 Incremental computation
Subtract contributions from leftmost column, add contributions from rightmost column - + - + Image 1 - + - + - + - + - + Image 2 - + - + - +

26 Selecting window size Small window: more detail, but more noise
Large window: more robustness, less detail Example:

27 Selecting window size 3 pixel window 20 pixel window Why?
Why larger window is bad? Discontinuity boundaries 3 pixel window 20 pixel window Why?

28 Non-square windows Compromise: have a large window, but higher weight near the center Example: Gaussian Example: Shifted windows (computation cost?) Local method: no guarantee we will have one to one correspondence Local methods -> global methods Global matching -> making decision for multiple pixel together

29 Problems with window matching
No guarantee that the matching is one-to-one Hard to balance window size and smoothness Local method: no guarantee we will have one to one correspondence Local methods -> global methods Global matching -> making decision for multiple pixel together

30 A global approach Finding correspondence between a pair of epipolar lines for all pixels simultaneously Local method: no guarantee we will have one to one correspondence Local methods -> global methods Global matching -> making decision for multiple pixel together

31 A global approach left right left right left right
Define an evaluation score for each configuration, choose the best matching configuration

32 A global approach How to define the evaluation score?
How about the sum of corresponding pixel difference?

33 Ordering constraint Order of matching features usually the same in both images But not always: occlusion Draw two epipolar lines, Illustrate the idea of ordering Formulate as constrained optimization What is the objective function? Sum of pixel differences Is this a well define optimization? No, occlusion -> empty matching How to solve it?

34 Dynamic programming Treat pixel correspondence as graph problem
Right image pixels 1 2 3 4 1 2 Left image pixels 3 4

35 Dynamic programming Find min-cost path through graph
Right image pixels 1 2 3 4 1 1 3 4 2 2 Left image pixels 3 The issue of occlusion cost 4

36 Dynamic Programming Results


Download ppt "What have we learned so far?"

Similar presentations


Ads by Google