stereo matching
play

Stereo Matching 16-385 Computer Vision (Kris Kitani) Carnegie - PowerPoint PPT Presentation

Stereo Matching 16-385 Computer Vision (Kris Kitani) Carnegie Mellon University What is stereo rectification? Reproject image planes onto a common plane parallel to the line between camera centers Recall: Stereo Rectification What can we


  1. Stereo Matching 16-385 Computer Vision (Kris Kitani) Carnegie Mellon University

  2. What is stereo rectification? Reproject image planes onto a common plane parallel to the line between camera centers Recall: Stereo Rectification

  3. What can we do after rectification?

  4. Depth Estimation via Stereo Matching

  5. 1. Rectify images 
 (make epipolar lines horizontal) 2. For each pixel a. Find epipolar line b. Scan line for best match c. Compute depth from disparity Z = bf d

  6. Stereo Block Matching Left Right scanline Matching cost disparity • Slide a window along the epipolar line and compare contents of that window with the reference window in the left image • Matching cost: SSD or normalized correlation

  7. SSD

  8. Normalized cross-correlation

  9. Similarity Measure Formula Sum of Absolute Differences (SAD) Sum of Squared Differences (SSD) Zero-mean SAD Locally scaled SAD Normalized Cross Correlation (NCC) SSD SAD NCC Ground truth

  10. Effect of window size W = 3 W = 20

  11. Effect of window size W = 3 W = 20 Larger window Smaller window + Smoother disparity maps + More detail - Less detail - More noise - Fails near boundaries

  12. When will stereo block matching fail?

  13. When will stereo block matching fail? textureless regions repeated patterns specularities

  14. Improving Stereo Block Matching

  15. Block matching Ground truth What are some problems with the result?

  16. How can we improve depth estimation?

  17. How can we improve depth estimation? Too many discontinuities. We expect disparity values to change slowly. Let’s make an assumption: depth should change smoothly

  18. Stereo matching as … 
 Energy Minimization What defines a good stereo correspondence? 1. Match quality – Want each pixel to find a good match in the other image 2. Smoothness – If two pixels are adjacent, they should (usually) move about the same amount

  19. energy function (for one pixel) { { data term smoothness term

  20. energy function (for one pixel) { { data term smoothness term Adjacent pixels should (usually) Want each pixel to find a good move about the same amount match in the other image (block matching result) (smoothness function)

  21. data term SSD distance between windows centered at I(x, y) and J(x+ d(x,y), y)

  22. SSD distance between windows centered at I(x, y) and J(x+ d(x,y), y) smoothness term : set of neighboring pixels 4-­‑connected ¡ 8-­‑connected ¡ neighborhood neighborhood

  23. smoothness term L 1 distance “Potts model”

  24. Dynamic Programming Can minimize this independently per scanline using dynamic programming (DP) : minimum cost of solution such that d(x,y) = d

  25. Match only Match & smoothness (via graph cut) Ground Truth Y. Boykov, O. Veksler, and R. Zabih, Fast Approximate Energy Minimization via Graph Cuts, PAMI 2001

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend