Digital Image Processing

Slides:



Advertisements
Similar presentations
Stereo Vision Reading: Chapter 11
Advertisements

Public Library, Stereoscopic Looking Room, Chicago, by Phillips, 1923.
Gratuitous Picture US Naval Artillery Rangefinder from World War I (1918)!!
Stereo Many slides adapted from Steve Seitz. Binocular stereo Given a calibrated binocular stereo pair, fuse it to produce a depth image Where does the.
Recap from Previous Lecture Tone Mapping – Preserve local contrast or detail at the expense of large scale contrast. – Changing the brightness within.
Lecture 8: Stereo.
Stereo.
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Spring 2012.
Last Time Pinhole camera model, projection
CS6670: Computer Vision Noah Snavely Lecture 17: Stereo
Multiple View Geometry : Computational Photography Alexei Efros, CMU, Fall 2005 © Martin Quinn …with a lot of slides stolen from Steve Seitz and.
Computer Vision : CISC 4/689 Adaptation from: Prof. James M. Rehg, G.Tech.
Stereo Binocular Stereo Calibration (finish up) Next Time Motivation
Stereopsis Mark Twain at Pool Table", no date, UCR Museum of Photography.
The plan for today Camera matrix
CS 223b 1 More on stereo and correspondence. CS 223b 2 =?f g Mostpopular For each window, match to closest window on epipolar line in other image. (slides.
3D from multiple views : Rendering and Image Processing Alexei Efros …with a lot of slides stolen from Steve Seitz and Jianbo Shi.
Lecture 10: Stereo and Graph Cuts
Lecture 11: Stereo and optical flow CS6670: Computer Vision Noah Snavely.
CSE473/573 – Stereo Correspondence
Announcements PS3 Due Thursday PS4 Available today, due 4/17. Quiz 2 4/24.
Stereo Guest Lecture by Li Zhang
Project 1 artifact winners Project 2 questions Project 2 extra signup slots –Can take a second slot if you’d like Announcements.
Midterm went out on Tuesday (due next Tuesday) Project 3 out today Announcements.
Multiple View Geometry : Computational Photography Alexei Efros, CMU, Fall 2006 © Martin Quinn …with a lot of slides stolen from Steve Seitz and.
VZvZ r t b image cross ratio Measuring height B (bottom of object) T (top of object) R (reference point) ground plane H C scene cross ratio  scene points.
Stereo matching Class 10 Read Chapter 7 Tsukuba dataset.
CSCE 641 Computer Graphics: Image-based Modeling Jinxiang Chai.
What have we leaned so far? Camera structure Eye structure Project 1: High Dynamic Range Imaging.
Computer Vision Spring ,-685 Instructor: S. Narasimhan WH 5409 T-R 10:30am – 11:50am Lecture #15.
Stereo Readings Trucco & Verri, Chapter 7 –Read through 7.1, 7.2.1, 7.2.2, 7.3.1, 7.3.2, and 7.4, –The rest is optional. Single image stereogram,
Camera Calibration & Stereo Reconstruction Jinxiang Chai.
What have we leaned so far? Camera structure Eye structure Project 1: High Dynamic Range Imaging.
Announcements Project 1 artifact winners Project 2 questions
Structure from images. Calibration Review: Pinhole Camera.
Recap from Monday Image Warping – Coordinate transforms – Linear transforms expressed in matrix form – Inverse transforms useful when synthesizing images.
Stereo Vision Reading: Chapter 11 Stereo matching computes depth from two or more images Subproblems: –Calibrating camera positions. –Finding all corresponding.
Stereo Readings Szeliski, Chapter 11 (through 11.5) Single image stereogram, by Niklas EenNiklas Een.
Stereo Many slides adapted from Steve Seitz.
CS 4487/6587 Algorithms for Image Analysis
Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Quick Review.
Project 2 code & artifact due Friday Midterm out tomorrow (check your ), due next Fri Announcements TexPoint fonts used in EMF. Read the TexPoint.
Stereo Many slides adapted from Steve Seitz. Binocular stereo Given a calibrated binocular stereo pair, fuse it to produce a depth image image 1image.
Computer Vision, Robert Pless
Computer Vision Stereo Vision. Bahadir K. Gunturk2 Pinhole Camera.
Computer Vision Lecture #10 Hossam Abdelmunim 1 & Aly A. Farag 2 1 Computer & Systems Engineering Department, Ain Shams University, Cairo, Egypt 2 Electerical.
Bahadir K. Gunturk1 Phase Correlation Bahadir K. Gunturk2 Phase Correlation Take cross correlation Take inverse Fourier transform  Location of the impulse.
Lecture 16: Stereo CS4670 / 5670: Computer Vision Noah Snavely Single image stereogram, by Niklas EenNiklas Een.
Digital Image Processing
Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Edge Detection.
Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Edge Detection:
776 Computer Vision Jan-Michael Frahm Spring 2012.
Solving for Stereo Correspondence Many slides drawn from Lana Lazebnik, UIUC.
Paper presentation topics 2. More on feature detection and descriptors 3. Shape and Matching 4. Indexing and Retrieval 5. More on 3D reconstruction 1.
Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Image Processing.
A global approach Finding correspondence between a pair of epipolar lines for all pixels simultaneously Local method: no guarantee we will have one to.
Project 2 due today Project 3 out today Announcements TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAA.
Project 2 artifacts—vote now!! Project 3 questions? Start thinking about final project ideas, partners Announcements.
Project 3 code & artifact due Tuesday Final project proposals due noon Wed (by ) –One-page writeup (from project web page), specifying: »Your team.
Energy minimization Another global approach to improve quality of correspondences Assumption: disparities vary (mostly) smoothly Minimize energy function:
CSE 185 Introduction to Computer Vision Stereo 2.
Stereo CS4670 / 5670: Computer Vision Noah Snavely Single image stereogram, by Niklas EenNiklas Een.
Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Color Image.
Noah Snavely, Zhengqi Li
Image Warping (Geometric Transforms)
Announcements Midterms graded (handed back at end of lecture)
Thanks to Richard Szeliski and George Bebis for the use of some slides
What have we learned so far?
Digital Image Processing
Stereo vision Many slides adapted from Steve Seitz.
Presentation transcript:

Digital Image Processing Stereo Images DRAFT Brent M. Dingle, Ph.D. 2015 Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Material in this presentation is largely based on/derived from presentations by: Sventlana Lazebnik, and Noah Snavely

Lecture Objectives Previously Today Image Manipulation and Enhancement Filtering Interpolation Warping Morphing Image Compression Image Analysis Edge Detection Smart Scissors Today Stereo Images

Stereo Images, Relation Stereo Image Processing Builds from previous topics Requires methods derived from image manipulation and enhancement Relates to feature detection and extraction Relates to human stereoscopic vision Useful in navigating 3D environments i.e. computer vision for robots

Public Library, Stereoscopic Looking Room, Chicago, by Phillips, 1923 slide by: Noah Snavely

Mark Twain at Pool Table", no date, UCR Museum of Photography slide by: Noah Snavely

slide by: Noah Snavely

slide by: Noah Snavely

Stereo Image Goal Given 2 images from different viewpoints Compute the depth of each point in the image Suggested Method Perform the computation based on how much each pixel moves between the two images

Epipolar Geometry x2 – x1 = the disparity of pixel (x1, y1) (x1, y1) Two images captured by a purely horizontal translating camera (rectified stereo pair) epipolar lines (x1, y1) (x2, y1)

Simple Stereo Algorithm For each epipolar line For each pixel in the ‘left’ image Compare it with every pixel in the same epipolar line of the ‘right’ image Select the pixel with minimum cost match Possible improvement: use matching windows instead of pixels

Window size W = 3 W = 20 Effect of window size 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. D. Scharstein and R. Szeliski. Stereo matching with nonlinear diffusion. International Journal of Computer Vision, 28(2):155-174, July 1998 smaller window: more detail, more noise bigger window: less noise, more detail Smaller window more detail more noise Larger window less noise slide by: Noah Snavely

Stereo results Data from University of Tsukuba Similar results on other images without ground truth Scene Ground truth slide by: Noah Snavely

Results with window search Window-based matching (best window size) Ground truth slide by: Noah Snavely

Better methods exist... State of the art method Ground truth Boykov et al., Fast Approximate Energy Minimization via Graph Cuts, International Conference on Computer Vision, September 1999. Ground truth slide by: Noah Snavely

Stereo as Energy Minimization What defines a good stereo correspondence? Match quality Each pixel needs a good match in the other image Smoothness Two adjacent pixels in one image should move about the same amount

Stereo as Energy Minimization Find a disparity map d that minimizes an energy function: Simple pixel / window matching SSD distance between windows I(x, y) and J(x + d(x,y), y) =

Stereo as energy minimization I(x, y) J(x, y) y = 141 C(x, y, d); the disparity space image (DSI) x d slide by: Noah Snavely

Stereo as energy minimization d x Simple pixel / window matching: choose the minimum of each column in the DSI independently: slide by: Noah Snavely

Stereo as energy minimization Better objective function { { match cost smoothness cost Want each pixel to find a good match in the other image Adjacent pixels should (usually) move about the same amount slide by: Noah Snavely

Stereo as energy minimization match cost: smoothness cost: : set of neighboring pixels 4-connected neighborhood 8-connected neighborhood slide by: Noah Snavely

Smoothness cost How do we choose V? L1 distance “Potts model” slide by: Noah Snavely

Dynamic programming Can minimize this independently per scanline using dynamic programming (DP) : minimum cost of solution such that d(x,y) = d slide by: Noah Snavely

Dynamic programming Finds “smooth” path through DPI from left to right x Finds “smooth” path through DPI from left to right slide by: Noah Snavely

Dynamic Programming slide by: Noah Snavely

Dynamic programming Can we apply this trick in 2D as well? No: dx,y-1 and dx-1,y may depend on different values of dx-1,y-1 Slide by: D. Huttenlocher

Stereo as a minimization problem The 2D problem has many local minima Gradient descent doesn’t work well And a large search space n x m image w/ k disparities has knm possible solutions Finding the global minimum is NP-hard in general Good approximations exist… slide by: Noah Snavely

Depth From Disparity f x x’ baseline z C C’ X slide by: Noah Snavely

Stereo reconstruction pipeline Steps Calibrate cameras Rectify images Compute disparity Estimate depth Camera calibration errors Poor image resolution Occlusions Violations of brightness constancy (specular reflections) Large motions Low-contrast image regions What will cause errors? slide by: Noah Snavely

Real-time stereo Used for robot navigation (and other tasks) Nomad robot searches for meteorites in Antartica http://www.frc.ri.cmu.edu/projects/meteorobot/index.html Used for robot navigation (and other tasks) Several software-based real-time stereo techniques have been developed (most based on simple discrete search) slide by: Noah Snavely

Questions? Beyond D2L Examples and information can be found online at: http://docdingle.com/teaching/cs.html Continue to more stuff as needed

Extra Reference Stuff Follows

Credits Much of the content derived/based on slides for use with the book: Digital Image Processing, Gonzalez and Woods Some layout and presentation style derived/based on presentations by Donald House, Texas A&M University, 1999 Sventlana Lazebnik, UNC, 2010 Noah Snavely, Cornell University, 2012 Xin Li, WVU, 2014 George Wolberg, City College of New York, 2015 Yao Wang and Zhu Liu, NYU-Poly, 2015