Structure from images. Calibration Review: Pinhole Camera.

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.
Stereo and Projective Structure from Motion
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.
Camera calibration and epipolar geometry
Last Time Pinhole camera model, projection
Stereo and Epipolar geometry
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.
Stereopsis Mark Twain at Pool Table", no date, UCR Museum of Photography.
The plan for today Camera matrix
3D from multiple views : Rendering and Image Processing Alexei Efros …with a lot of slides stolen from Steve Seitz and Jianbo Shi.
CSCE 641 Computer Graphics: Image-based Modeling Jinxiang Chai.
Computer Vision : CISC 4/689
Stereo and Structure from Motion
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.
3-D Scene u u’u’ Study the mathematical relations between corresponding image points. “Corresponding” means originated from the same 3D point. Objective.
Epipolar Geometry and Stereo Vision Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 04/12/11 Many slides adapted from Lana Lazebnik,
9 – Stereo Reconstruction
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,
Epipolar Geometry and Stereo Vision Computer Vision CS 543 / ECE 549 University of Illinois Derek Hoiem 03/05/15 Many slides adapted from Lana Lazebnik,
Camera Calibration & Stereo Reconstruction Jinxiang Chai.
Announcements Project 1 artifact winners Project 2 questions
Lecture 12 Stereo Reconstruction II Lecture 12 Stereo Reconstruction II Mata kuliah: T Computer Vision Tahun: 2010.
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.
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
Lec 22: Stereo CS4670 / 5670: Computer Vision Kavita Bala.
Computer Vision Stereo Vision. Bahadir K. Gunturk2 Pinhole Camera.
Single-view geometry Odilon Redon, Cyclops, 1914.
CSE 185 Introduction to Computer Vision Stereo. Taken at the same time or sequential in time stereo vision structure from motion optical flow Multiple.
Bahadir K. Gunturk1 Phase Correlation Bahadir K. Gunturk2 Phase Correlation Take cross correlation Take inverse Fourier transform  Location of the impulse.
3D Imaging Midterm Review.
Geometric Transformations
Lecture 16: Stereo CS4670 / 5670: Computer Vision Noah Snavely Single image stereogram, by Niklas EenNiklas Een.
stereo Outline : Remind class of 3d geometry Introduction
776 Computer Vision Jan-Michael Frahm Spring 2012.
Solving for Stereo Correspondence Many slides drawn from Lana Lazebnik, UIUC.
Project 2 due today Project 3 out today Announcements TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAA.
John Morris Stereo Vision (continued) Iolanthe returns to the Waitemata Harbour.
Project 2 artifacts—vote now!! Project 3 questions? Start thinking about final project ideas, partners Announcements.
Multiple View Geometry and Stereo. Overview Single camera geometry – Recap of Homogenous coordinates – Perspective projection model – Camera calibration.
CSE 185 Introduction to Computer Vision Stereo 2.
Stereo CS4670 / 5670: Computer Vision Noah Snavely Single image stereogram, by Niklas EenNiklas Een.
Epipolar Geometry and Stereo Vision
제 5 장 스테레오.
Stereo CSE 455 Linda Shapiro.
CS4670 / 5670: Computer Vision Kavita Bala Lec 27: Stereo.
Stereo and Structure from Motion
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?
Computer Vision Stereo Vision.
Stereo vision Many slides adapted from Steve Seitz.
Presentation transcript:

Structure from images

Calibration

Review: Pinhole Camera

Review: Perspective Projection

 Points go to Points  Lines go to Lines  Planes go to whole image or Half-planes  Polygons go to Polygons

Review: Intrinsic Camera Parameters X Y Z C Image plane Focal plane M m u v

Review: Extrinsic Parameters X Y Z C Image plane Focal plane M m u v Z Y X By Rigid Body Transformation:

Alper Yilmaz, CAP5415, Fall Estimating Camera Parameters

Shape From Images

Perspective cues

Ames Room

Video

Recovering 3D from images  What cues in the image provide 3D information?

 Shading Visual cues Merle Norman Cosmetics, Los Angeles

Visual cues  Shading  Texture The Visual Cliff, by William Vandivert, 1960

Visual cues From The Art of Photography, Canon  Shading  Texture  Focus

Visual cues  Shading  Texture  Focus  Motion

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

Shape From Multiple Views

Multi-View Geometry Relates 3D World Points Camera Centers Camera Orientations

Multi-View Geometry Relates 3D World Points Camera Centers Camera Orientations Camera Intrinsic Parameters Image Points

Stereo scene point optical center image plane

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

Stereo Constraints p p’ ? Given p in left image, where can the corresponding point p’ in right image be?

Stereo Constraints X1X1 Y1Y1 Z1Z1 O1O1 Image plane Focal plane M p p’ Y2Y2 X2X2 Z2Z2 O2O2 Epipolar Line Epipole

Epipolar Constraint

From Geometry to Algebra O O’ P p p’

From Geometry to Algebra O O’ P p p’

Linear Constraint: Should be able to express as matrix multiplication.

The Essential Matrix

Correspondence

Pin Hole Camera Model

Basic Stereo Derivations Derive expression for Z as a function of x 1, x 2, f and B

Basic Stereo Derivations

Disparity:

We can always achieve this geometry with image rectification  Image Reprojection  reproject image planes onto common plane parallel to line between optical centers (Seitz)

Rectification example

Correspondence: Epipolar constraint.

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

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

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

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

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

Matching cost disparity LeftRight scanline Correspondence search Slide a window along the right scanline and compare contents of that window with the reference window in the left image Matching cost: SSD or normalized correlation

LeftRight scanline Correspondence search SSD

LeftRight scanline Correspondence search Norm. corr

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

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

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

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 Ground truth (Seitz)

Failures of correspondence search Textureless surfaces Occlusions, repetition Non-Lambertian surfaces, specularities

How can we improve window-based matching?  So far, matches are independent for each point  What constraints or priors can we add?

Stereo constraints/priors Uniqueness  For any point in one image, there should be at most one matching point in the other image

Stereo constraints/priors Uniqueness  For any point in one image, there should be at most one matching point in the other image Ordering  Corresponding points should be in the same order in both views Ordering constraint doesn’t hold

Priors and constraints Uniqueness  For any point in one image, there should be at most one matching point in the other image Ordering  Corresponding points should be in the same order in both views Smoothness  We expect disparity values to change slowly (for the most part)

Stereo matching as energy minimization I1I1 I2I2 D Energy functions of this form can be minimized using graph cuts Y. Boykov, O. Veksler, and R. Zabih, Fast Approximate Energy Minimization via Graph Cuts, PAMI 2001Fast Approximate Energy Minimization via Graph Cuts W1(i )W1(i )W 2 (i+D(i )) D(i )D(i )

Examples breadtoyapple

Szeliski Active stereo with structured light  Project “structured” light patterns onto the object  simplifies the correspondence problem camera 2 camera 1 projector camera 1 projector Li Zhang’s one-shot stereo

Active stereo with structured light L. Zhang, B. Curless, and S. M. Seitz. Rapid Shape Acquisition Using Color Structured Light and Multi-pass Dynamic Programming. 3DPVT 2002Rapid Shape Acquisition Using Color Structured Light and Multi-pass Dynamic Programming.

Kinect

The third view can be used for verification Beyond two-view stereo