Presentation is loading. Please wait.

Presentation is loading. Please wait.

Stereopsis Mark Twain at Pool Table", no date, UCR Museum of Photography.

Similar presentations


Presentation on theme: "Stereopsis Mark Twain at Pool Table", no date, UCR Museum of Photography."— Presentation transcript:

1

2 Stereopsis

3 Mark Twain at Pool Table", no date, UCR Museum of Photography

4 Woman getting eye exam during immigration procedure at Ellis Island, c. 1905 - 1920, UCR Museum of Phography

5 Why Stereo Vision? 2D images project 3D points into 2D: O P’=Q’PQ 3D Points on the same viewing line have the same 2D image: –2D imaging results in depth information loss

6 Stereo Assumes (two) cameras. Known positions. Recover depth.

7 Recovering Depth Information: O2O2O2O2 P’ 2 =Q’ 2 P Q O1O1O1O1 P’ 1 Q’ 1 Depth can be recovered with two images and triangulation.

8 Finding Correspondences: O2O2O2O2 P’ 2 Q’ 2 P Q O1O1O1O1 P’ 1 Q’ 1

9 Finding Correspondences:

10 3D Reconstruction O2O2O2O2 P’ 2 P O1O1O1O1 P’ 1 We must solve the correspondence problem first!

11 Stereo correspondence Determine Pixel Correspondence –Pairs of points that correspond to same scene point Epipolar Constraint –Reduces correspondence problem to 1D search along conjugate epipolar lines epipolar plane epipolar line (Seitz)

12 Simplest Case Image planes of cameras are parallel. Focal points are at same height. Focal lengths same. Then, epipolar lines are horizontal scan lines.

13 Epipolar Geometry for Parallel Cameras f f T P OlOlOlOl OrOrOrOr elelelel erererer Epipoles are at infinite Epipolar lines are parallel to the baseline

14 We can always achieve this geometry with image rectification Image Reprojection –reproject image planes onto common plane parallel to line between optical centers Notice, only focal point of camera really matters (Seitz)

15 Let’s discuss reconstruction with this geometry before correspondence, because it’s much easier. blackboard OlOlOlOl OrOrOrOr P plplplpl prprprpr T Z xlxlxlxl xrxrxrxr f T is the stereo baseline d measures the difference in retinal position between corresponding points Then given Z, we can compute X and Y. Disparity:

16 Correspondence: What should we match? Objects? Edges? Pixels? Collections of pixels?

17 Julesz: had huge impact because it showed that recognition not needed for stereo.

18

19 Correspondence: Epipolar constraint.

20 Correspondence Problem Two classes of algorithms: –Correlation-based algorithms Produce a DENSE set of correspondences –Feature-based algorithms Produce a SPARSE set of correspondences

21 Correspondence: Photometric constraint Same world point has same intensity in both images. –Lambertian fronto-parallel –Issues: Noise Specularity Foreshortening

22 Using these constraints we can use matching for stereo For each epipolar line For each pixel in the left image compare with every pixel on same epipolar line in right image pick pixel with minimum match cost This will never work, so: Improvement: match windows

23 Comparing Windows: =?f g Mostpopular For each window, match to closest window on epipolar line in other image.

24 It is closely related to the SSD: Maximize Cross correlation Minimize Sum of Squared Differences

25 Window size W = 3W = 20 Better results with adaptive window T. Kanade and M. Okutomi, A Stereo Matching Algorithm with an Adaptive Window: Theory and Experiment,, Proc. International Conference on Robotics and Automation, 1991.A Stereo Matching Algorithm with an Adaptive Window: Theory and Experiment D. Scharstein and R. Szeliski. Stereo matching with nonlinear diffusion. International Journal of Computer Vision, 28(2):155-174, July 1998Stereo matching with nonlinear diffusion Effect of window size (Seitz)

26

27 Stereo results Ground truthScene –Data from University of Tsukuba (Seitz)

28 Results with window correlation Window-based matching (best window size) Ground truth (Seitz)

29 Results with better method State of the art method Boykov et al., Fast Approximate Energy Minimization via Graph Cuts,Fast Approximate Energy Minimization via Graph Cuts International Conference on Computer Vision, September 1999. Ground truth (Seitz)

30 Ordering constraint Usually, order of points in two images is same. Is this always true?

31 This enables dynamic programming. If we match pixel i in image 1 to pixel j in image 2, no matches that follow will affect which are the best preceding matches. Example with pixels (a la Cox et al.).

32 Other constraints Smoothness: disparity usually doesn’t change too quickly. –Unfortunately, this makes the problem 2D again. –Solved with a host of graph algorithms, Markov Random Fields, Belief Propagation, …. Uniqueness constraint (each feature can at most have one match Occlusion and disparity are connected.

33 Feature-based Methods Conceptually very similar to Correlation- based methods, but: –They only search for correspondences of a sparse set of image features. –Correspondences are given by the most similar feature pairs. –Similarity measure must be adapted to the type of feature used.

34 Feature-based Methods: Features most commonly used: –Corners Similarity measured in terms of: –surrounding gray values (SSD, Cross-correlation) –location –Edges, Lines Similarity measured in terms of: –orientation –contrast –coordinates of edge or line’s midpoint –length of line

35 Example: Comparing lines l l and l r : line lengths  l and  r : line orientations (x l,y l ) and (x r,y r ): midpoints c l and c r : average contrast along lines  l    m  c : weights controlling influence The more similar the lines, the larger S is!

36 Summary First, we understand constraints that make the problem solvable. –Some are hard, like epipolar constraint. Ordering isn’t a hard constraint, but most useful when treated like one. –Some are soft, like pixel intensities are similar, disparities usually change slowly. Then we find optimization method. –Which ones we can use depend on which constraints we pick.


Download ppt "Stereopsis Mark Twain at Pool Table", no date, UCR Museum of Photography."

Similar presentations


Ads by Google