Dr. Hassan Foroosh Dept. of Computer Science UCF

Slides:



Advertisements
Similar presentations
Image Rectification for Stereo Vision
Advertisements

Epipolar Geometry.
Lecture 11: Two-view geometry
CSE473/573 – Stereo and Multiple View Geometry
3D reconstruction.
MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling.
Two-view geometry.
Lecture 8: Stereo.
Relations between image coordinates Given coordinates in one image, and the tranformation Between cameras, T = [R t], what are the image coordinates In.
View Morphing (Seitz & Dyer, SIGGRAPH 96)
Camera calibration and epipolar geometry
Structure from motion.
Computer Vision : CISC 4/689
Epipolar geometry. (i)Correspondence geometry: Given an image point x in the first view, how does this constrain the position of the corresponding point.
Structure from motion. Multiple-view geometry questions Scene geometry (structure): Given 2D point matches in two or more images, where are the corresponding.
Uncalibrated Geometry & Stratification Sastry and Yang
Lecture 21: Multiple-view geometry and structure from motion
Multiple View Geometry
Multiple-view Reconstruction from Points and Lines
CAU Kiel DAGM 2001-Tutorial on Visual-Geometric 3-D Scene Reconstruction 1 The plan for today Leftovers and from last time Camera matrix Part A) Notation,
Lecture 20: Two-view geometry CS6670: Computer Vision Noah Snavely.
3D Computer Vision and Video Computing 3D Vision Lecture 14 Stereo Vision (I) CSC 59866CD Fall 2004 Zhigang Zhu, NAC 8/203A
May 2004Stereo1 Introduction to Computer Vision CS / ECE 181B Tuesday, May 11, 2004  Multiple view geometry and stereo  Handout #6 available (check with.
Lec 21: Fundamental Matrix
Multiple View Geometry
Global Alignment and Structure from Motion Computer Vision CSE455, Winter 2008 Noah Snavely.
Multiple View Geometry. THE GEOMETRY OF MULTIPLE VIEWS Reading: Chapter 10. Epipolar Geometry The Essential Matrix The Fundamental Matrix The Trifocal.
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,
CSE 6367 Computer Vision Stereo Reconstruction Camera Coordinate Transformations “Everything should be made as simple as possible, but not simpler.” Albert.
Multi-view geometry. Multi-view geometry problems Structure: Given projections of the same 3D point in two or more images, compute the 3D coordinates.
Automatic Camera Calibration
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,
Computer vision: models, learning and inference
Lecture 11 Stereo Reconstruction I Lecture 11 Stereo Reconstruction I Mata kuliah: T Computer Vision Tahun: 2010.
Epipolar Geometry and Stereo Vision Computer Vision ECE 5554 Virginia Tech Devi Parikh 10/15/13 These slides have been borrowed from Derek Hoiem and Kristen.
Structure from images. Calibration Review: Pinhole Camera.
Multi-view geometry.
Epipolar geometry The fundamental matrix and the tensor
1 Preview At least two views are required to access the depth of a scene point and in turn to reconstruct scene structure Multiple views can be obtained.
Projective cameras Motivation Elements of Projective Geometry Projective structure from motion Planches : –
Lecture 04 22/11/2011 Shai Avidan הבהרה : החומר המחייב הוא החומר הנלמד בכיתה ולא זה המופיע / לא מופיע במצגת.
Multiview Geometry and Stereopsis. Inputs: two images of a scene (taken from 2 viewpoints). Output: Depth map. Inputs: multiple images of a scene. Output:
Stereo Course web page: vision.cis.udel.edu/~cv April 11, 2003  Lecture 21.
Lec 22: Stereo CS4670 / 5670: Computer Vision Kavita Bala.
Announcements Project 3 due Thursday by 11:59pm Demos on Friday; signup on CMS Prelim to be distributed in class Friday, due Wednesday by the beginning.
Geometry of Multiple Views
Raquel A. Romano 1 Scientific Computing Seminar May 12, 2004 Projective Geometry for Computer Vision Projective Geometry for Computer Vision Raquel A.
Two-view geometry. Epipolar Plane – plane containing baseline (1D family) Epipoles = intersections of baseline with image planes = projections of the.
stereo Outline : Remind class of 3d geometry Introduction
Feature Matching. Feature Space Outlier Rejection.
Multi-linear Systems and Invariant Theory
Mixing Catadioptric and Perspective Cameras
Computer vision: models, learning and inference M Ahad Multiple Cameras
Geometry Reconstruction March 22, Fundamental Matrix An important problem: Determine the epipolar geometry. That is, the correspondence between.
Image-Based Rendering Geometry and light interaction may be difficult and expensive to model –Think of how hard radiosity is –Imagine the complexity of.
Structure from motion Multi-view geometry Affine structure from motion Projective structure from motion Planches : –
Lec 26: Fundamental Matrix CS4670 / 5670: Computer Vision Kavita Bala.
Introduction To IBR Ying Wu. View Morphing Seitz & Dyer SIGGRAPH’96 Synthesize images in transition of two views based on two images No 3D shape is required.
CSE 185 Introduction to Computer Vision Stereo 2.
Multi-view geometry. Multi-view geometry problems Structure: Given projections of the same 3D point in two or more images, compute the 3D coordinates.
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry
CS4670 / 5670: Computer Vision Kavita Bala Lec 27: Stereo.
Epipolar geometry.
Epipolar geometry continued
Computer Graphics Recitation 12.
Reconstruction.
Announcements Review on Thurs Project 4 Extra office hour: Friday 4-5
Multi-view geometry.
Presentation transcript:

Dr. Hassan Foroosh Dept. of Computer Science UCF Visual Simulation CAP 6938 Dr. Hassan Foroosh Dept. of Computer Science UCF © Copyright Hassan Foroosh 2002

View Morphing (Seitz & Dyer, SIGGRAPH 96) Photograph Morphed View Virtual Camera View interpolation (ala McMillan) but no depth no camera information

But First: Multi-View Projective Geometry Last time (single view geometry) Vanishing Points Points at Infinity Vanishing Lines The Cross-Ratio Today (multi-view geometry) Point-line duality Epipolar geometry The Fundamental Matrix All quantities on these slides are in homogeneous coordinates except when specified otherwise

Multi-View Projective Geometry scene point focal point image plane How to relate point positions in different views? Central question in image-based rendering Projective geometry gives us some powerful tools constraints between two or more images equations to transfer points from one image to another

Epipolar Geometry What does one view tell us about another? Point positions in 2nd view must lie along a known line epipolar plane epipolar line epipolar line epipoles Epipolar Constraint Extremely useful for stereo matching Reduces problem to 1D search along conjugate epipolar lines Also useful for view interpolation...

Transfer from Epipolar Lines What does one view tell us about another? Point positions in 2nd view must lie along a known line output image input image input image Two views determines point position in a third image But doesn’t work if point is in the trifocal plane spanned by all three cameras bad case: three cameras are colinear

Epipolar Algebra How do we compute epipolar lines? p’ = Rp + T Can trace out lines, reproject. But that is overkill Y p p’ T R X Z p’ = Rp + T Note that p’ is  to Tp’ So 0 = p’T Tp = p’T T(Rp + T) = p’T T(Rp)

Simplifying: p’T T(Rp) = 0 We can write a cross-product ab as a matrix equation a  b = Ab where Therefore: Where E = TR is the 3x3 “essential matrix” Holds whenever p and p’ correspond to the same scene point Properties of E Ep is the epipolar line of p; p’T E is the epipolar line of p’ p’T E p = 0 for every pair of corresponding points 0 = Ee = e’T E where e and e’ are the epipoles E has rank < 3, has 5 independent parameters E tells us everything about the epipolar geometry

Linear Multiview Relations The Essential Matrix: 0 = p’T E p First derived by Longuet-Higgins, Nature 1981 also showed how to compute camera R and T matrices from E E has only 5 free parameters (three rotation angles, two transl. directions) Only applies when cameras have same internal parameters same focal length, aspect ratio, and image center The Fundamental Matrix: 0 = p’T F p F = (A’-1)T E A-1, where A3x3 and A’3x3 contain the internal parameters Gives epipoles, epipolar lines F (like E) defined only up to a scale factor & has rank 2 (7 free params) Generalization of the essential matrix Can’t uniquely solve for R and T (or A and A’) from F Can be computed using linear methods R. Hartley, In Defence of the 8-point Algorithm, ICCV 95 Or nonlinear methods: Xu & Zhang, Epipolar Geometry in Stereo, 1996

The Trifocal Tensor What if you have three views? Can compute 3 pairwise fundamental matrices However there are more constraints it should be possible to resolve the trifocal problem Answer: the trifocal tensor introduced by Shashua, Hartley in 1994/1995 a 3x3x3 matrix T (27 parameters) gives all constraints between 3 views can use to generate new views without trifocal probs. [Shai & Avidan] linearly computable from point correspondences How about four views? five views? N views? There is a quadrifocal tensor [Faugeras & Morrain, Triggs, 1995] But: all the constraints are expressed in the trifocal tensors, obtained by considering every subset of 3 cameras

View Morphing (Seitz & Dyer, SIGGRAPH 96) Photograph Morphed View Virtual Camera View interpolation (ala McMillan) but no depth no camera information

Uniqueness Result Given Any two images of a Lambertian scene No occlusions Result: all views along C1C2 are uniquely determined View Synthesis is solvable when Cameras are uncalibrated Dense pixel correspondence is not available Shape reconstruction is impossible

Uniqueness Result Relies on Monotonicity Assumption Left-to-right ordering of points is the same in both images used often to facilitate stereo matching Implies no occlusions on line between C1 and C2

Image Morphing Linear Interpolation of 2D shape and color Photograph Morphed Image Photograph Linear Interpolation of 2D shape and color

Image Morphing for View Synthesis? We want to high quality view interpolations Can image morphing do this? Goal: extend to handle changes in viewpoint Produce valid camera transitions

Special Case: Parallel Cameras Left Image Morphed Image Right Image Morphing parallel views new parallel views Projection matrices have a special form third rows of projection matrices are equal Linear image motion linear camera motion

Uncalibrated Prewarping Parallel cameras have a special epipolar geometry Epipolar lines are horizontal Corresponding points have the same y coordinate in both images What fundamental matrix does this correspond to? Prewarp procedure: Compute F matrix given 8 or more correspondences Compute homographies H and H’ such that each homography composes two rotations, a scale, and a translation Transform first image by H-1, second image by H’-1

1. Prewarp align views 2. Morph move camera

1. Prewarp align views

1. Prewarp align views 2. Morph move camera

1. Prewarp align views 2. Morph move camera 3. Postwarp point camera

Corrected Photographs Face Recognition Corrected Photographs

View Morphing Summary Additional Features Pros Cons Automatic correspondence N-view morphing Real-time implementation Pros Don’t need camera positions Don’t need shape/Z Don’t need dense correspondence Cons Limited to interpolation (although not with three views) Problems with occlusions (leads to ghosting) Prewarp can be unstable (need good F-estimator)