cs 4495 computer vision stereo disparity and matching
play

CS 4495 Computer Vision Stereo: Disparity and Matching Aaron Bobick - PowerPoint PPT Presentation

Stereo: Disparity and Matching CS 4495 Computer Vision A. Bobick CS 4495 Computer Vision Stereo: Disparity and Matching Aaron Bobick School of Interactive Computing Stereo: Disparity and Matching CS 4495 Computer Vision A. Bobick


  1. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick CS 4495 Computer Vision Stereo: Disparity and Matching Aaron Bobick School of Interactive Computing

  2. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Administrivia • PS2 is out. But I was late. So we pushed the due date to Wed Sept 24 th , 11:55pm. • There is still *no* grace period. To avoid confusion, the submission site will close at the time it’s due. • If you miss it you can send email to me and the TAs and plead your case. Pretty soon we will have no sympathy for presuming that everything works. • Read; FP chapter 7

  3. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Stereo: A Special case of Multiple views Multi-view geometry, matching, invariant features, stereo vision Lowe Hartley and Zisserman

  4. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Why multiple views? • Structure and depth are inherently ambiguous from single views. Images from Lana Lazebnik

  5. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Why multiple views? • Structure and depth are inherently ambiguous from single views. P1 P2 P1’=P2’ Optical center

  6. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick How do we see depth? • What cues help us to perceive 3d shape and depth? • What about one eye first?

  7. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Perspective effects S. Seitz

  8. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Shading K. Grauman

  9. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Texture [From A.M. Loh. The recovery of 3-D structure using visual texture patterns. PhD thesis]

  10. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Focus/defocus Images from same point of view, different camera parameters 3d shape / depth estimates [figs from H. Jin and P. Favaro, 2002]

  11. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Motion Figures from L. Zhang http://www.brainconnection.com/teasers/?main=illusion/motion-shape

  12. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Estimating scene shape from one eye • “Shape from X”: Shading, Texture, Focus, Motion… • Very popular circa 1980

  13. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick But we (and lots of creatures) have two eyes! • Stereo : • shape from “motion” between two views • infer 3d shape of scene from two (multiple) images from different viewpoints scene point Main idea: image plane optical center

  14. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Stereo photography and stereo viewers Take two pictures of the same subject from two slightly different viewpoints and display so that each eye sees only one of the images. Invented by Sir Charles Wheatstone 1838

  15. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick People fascinated by 3D

  16. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick http://www.johnsonshawmuseum.org

  17. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Public Library, Stereoscopic Looking Room, Chicago, by Phillips, 1923

  18. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Teesta suspension bridge-Darjeeling, India

  19. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Mark Twain at Pool Table", no date, UCR Museum of Photography

  20. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Stereo photography and stereo viewers When I grew up…

  21. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Stereo photography and stereo viewers When I grew up… You guys..

  22. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick The Basic Idea: Two slightly different images http://www.well.com/~jimg/stereo/stereo_list.html

  23. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick So how do humans do it?

  24. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Random dot stereograms • Julesz 1960: Do we identify local brightness patterns before fusion (monocular process) or after (binocular)? • To test: pair of synthetic images obtained by randomly spraying black dots on white objects

  25. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Random dot stereograms Forsyth & Ponce

  26. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Random dot stereograms

  27. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick

  28. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Random dot stereograms • When viewed monocularly, they appear random; when viewed stereoscopically, see 3d structure. • Conclusion: human binocular fusion not based upon matching large scale structures or any processing of the individual images • Imaginary “ cyclopean retina” that combines the left and right image stimuli as a single unit. Later discovered the cells in the brain’s visual cortex that create this “percept”

  29. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Estimating depth with stereo • Stereo : shape from “motion” between two views • We’ll need to consider: • Info on camera pose (“calibration”) • Image point correspondences scene point image plane optical center

  30. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Estimating depth with stereo • Stereo : shape from “motion” between two views • We’ll need to consider: Info on camera pose (“calibration”) • Image point correspondences • scene point image plane optical center

  31. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Geometry for a simple stereo system Optic Optic Axis Axis P • First, assuming parallel optical axes, known camera parameters (i.e., calibrated cameras) • Figure is looking down Z on the cameras and image planes • Baseline B, focal length f f • Point P is distance Z in B camera coordinate COP L COP R systems

  32. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Geometry for a simple stereo system P • Point P projects into left and right images. x l • Distance is positive in x r Z left image, and negative in right p l p r f B COP L COP R

  33. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Geometry for a simple stereo system P • What is the expression for Z? • Similar triangles (p l , P, p r ) and x l x r Z (C L ,P, C r ): − + B x x B = l r p l p r − f Z f Z B B COP L COP R = Z f x − x Disparity … is inversely l r proportional to depth

  34. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Depth from disparity image I´(x´,y´) image I(x,y) Disparity map D(x,y) (x´,y´)=(x+D(x,y), y) So if we could find the corresponding points in two images, we could estimate relative depth …

  35. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Depth from disparity image I´(x´,y´) image I(x,y) Disparity map D(x,y) (x´,y´)=(x+D(x,y), y) So if we could find the corresponding points in two images, we could estimate relative depth …

  36. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick General case, with calibrated cameras • The two cameras need not have parallel optical axes and image planes. Vs.

  37. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Stereo correspondence constraints • Given p in left image, where can corresponding point p’ be?

  38. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Stereo correspondence constraints • In perspective projection, lines project into lines. So the line containing the center of projection and the point p in the left image must project to a line in the right image.

  39. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Epipolar constraint Geometry of two views constrains where the corresponding pixel for some image point in the first view must occur in the second view.

  40. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Epipolar constraint Geometry of two views constrains where the corresponding pixel for some image point in the first view must occur in the second view. • It must be on the line carved out by a plane – the epipolar plane – connecting the world point and optical centers.

  41. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Epipolar geometry: terms • Baseline : line joining the camera centers • Epipole : point of intersection of baseline with image plane • Epipolar plane : plane containing baseline and world point • Epipolar line : intersection of epipolar plane with the image plane • All epipolar lines intersect at the epipole • An epipolar plane intersects the left and right image planes in epipolar lines Why is the epipolar constraint useful?

  42. Stereo: Disparity and Matching CS 4495 Computer Vision – A. Bobick Epipolar constraint This is useful because it reduces the correspondence problem to a 1D search along an epipolar line. Image from Andrew Zisserman

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