Announcements list – let me know if you have NOT been getting mail

Slides:



Advertisements
Similar presentations
Computer Vision, Robert Pless
Advertisements

1 A camera is modeled as a map from a space pt (X,Y,Z) to a pixel (u,v) by ‘homogeneous coordinates’ have been used to ‘treat’ translations ‘multiplicatively’
Primitives Behaviour at infinity HZ 2.2 Projective DLT alg Invariants
Recovery of affine and metric properties from images in 2D Projective space Ko Dae-Won.
Lecture 8: Stereo.
View Morphing (Seitz & Dyer, SIGGRAPH 96)
Structure from motion.
Single-view metrology
Lecture 14: Panoramas CS4670: Computer Vision Noah Snavely What’s inside your fridge?
1 Basic geometric concepts to understand Affine, Euclidean geometries (inhomogeneous coordinates) projective geometry (homogeneous coordinates) plane at.
The 2D Projective Plane Points and Lines.
Projective 2D & 3D geometry course 2
Lecture 19: Single-view modeling CS6670: Computer Vision Noah Snavely.
Lecture 11: Structure from motion, part 2 CS6670: Computer Vision Noah Snavely.
list – let me know if you have NOT been getting mail Assignment hand in procedure –web page –at least 3 panoramas: »(1) sample sequence, (2) w/Kaidan,
Projective geometry- 2D Acknowledgements Marc Pollefeys: for allowing the use of his excellent slides on this topic
Scene Modeling for a Single View : Computational Photography Alexei Efros, CMU, Fall 2005 René MAGRITTE Portrait d'Edward James …with a lot of slides.
Announcements Project 2 questions Midterm out on Thursday
Lecture 7: Image Alignment and Panoramas CS6670: Computer Vision Noah Snavely What’s inside your fridge?
Projective geometry Slides from Steve Seitz and Daniel DeMenthon
Multiple View Geometry
Lecture 15: Single-view modeling CS6670: Computer Vision Noah Snavely.
Panorama signups Panorama project issues? Nalwa handout Announcements.
Lecture 16: Single-view modeling, Part 2 CS6670: Computer Vision Noah Snavely.
Single-view Metrology and Camera Calibration Computer Vision Derek Hoiem, University of Illinois 02/26/15 1.
Lec 21: Fundamental Matrix
CSE 576, Spring 2008Projective Geometry1 Lecture slides by Steve Seitz (mostly) Lecture presented by Rick Szeliski.
Scene Modeling for a Single View : Computational Photography Alexei Efros, CMU, Spring 2010 René MAGRITTE Portrait d'Edward James …with a lot of.
3-D Scene u u’u’ Study the mathematical relations between corresponding image points. “Corresponding” means originated from the same 3D point. Objective.
Project Geometry Jiecai He (Jake)
Single-view metrology
Projective Geometry and Single View Modeling CSE 455, Winter 2010 January 29, 2010 Ames Room.
Single-view modeling, Part 2 CS4670/5670: Computer Vision Noah Snavely.
Automatic Camera Calibration
Lecture 11 Stereo Reconstruction I Lecture 11 Stereo Reconstruction I Mata kuliah: T Computer Vision Tahun: 2010.
Single View Geometry Course web page: vision.cis.udel.edu/cv April 7, 2003  Lecture 19.
Projective Geometry and Geometric Invariance in Computer Vision Babak N. Araabi Electrical and Computer Eng. Dept. University of Tehran Workshop on image.
Robot Vision SS 2008 Matthias Rüther 1 ROBOT VISION Lesson 2: Projective Geometry Matthias Rüther Slides courtesy of Marc Pollefeys Department of Computer.
Projective Geometry. Projection Vanishing lines m and n.
Single-view Metrology and Camera Calibration Computer Vision Derek Hoiem, University of Illinois 01/25/11 1.
Projective geometry ECE 847: Digital Image Processing Stan Birchfield Clemson University.
Metrology 1.Perspective distortion. 2.Depth is lost.
Single View Geometry Course web page: vision.cis.udel.edu/cv April 9, 2003  Lecture 20.
Project 2 –contact your partner to coordinate ASAP –more work than the last project (> 1 week) –you should have signed up for panorama kitssigned up –sign.
Projective Geometry Hu Zhan Yi. Entities At Infinity The ordinary space in which we lie is Euclidean space. The parallel lines usually do not intersect.
Auto-calibration we have just calibrated using a calibration object –another calibration object is the Tsai grid of Figure 7.1 on HZ182, which can be used.
Last Two Lectures Panoramic Image Stitching
Project 1 Due NOW Project 2 out today –Help session at end of class Announcements.
Project 2 went out on Tuesday You should have a partner You should have signed up for a panorama kit Announcements.
Projective 2D geometry course 2 Multiple View Geometry Comp Marc Pollefeys.
Projective geometry ECE 847: Digital Image Processing Stan Birchfield Clemson University.
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry
Lec 23: Single View Modeling
Single-view metrology
Projective geometry ECE 847: Digital Image Processing Stan Birchfield
CS4670 / 5670: Computer Vision Kavita Bala Lec 27: Stereo.
CSCE 441 Computer Graphics 3-D Viewing
Scene Modeling for a Single View
Humans and animals have a number of senses
I. BASICS Thanks to Peter Corke for the use of some slides
CS Visual Recognition Projective Geometry Projective Geometry is a mathematical framework describing image formation by perspective camera. Under.
Overview Pin-hole model From 3D to 2D Camera projection
Computer Graphics Recitation 12.
Lecture 3: Camera Rotations and Homographies
Lecture 13: Cameras and geometry
Geometric Camera Models
2D transformations (a.k.a. warping)
Projective geometry Readings
Announcements Project 2 extension: Friday, Feb 8
Presentation transcript:

Announcements Email list – let me know if you have NOT been getting mail Assignment hand in procedure web page at least 3 panoramas: (1) sample sequence, (2) w/Kaidan, (3) handheld hand procedure will be posted online Readings for Monday (via web site) Seminar on Thursday, Jan 18 Ramin Zabih: “Energy Minimization for Computer Vision via Graph Cuts “ Correction to radial distortion term

Projective geometry Readings Ames Room Readings Mundy, J.L. and Zisserman, A., Geometric Invariance in Computer Vision, Chapter 23: Appendix: Projective Geometry for Machine Vision, MIT Press, Cambridge, MA, 1992, pp. 463-534  (for this week, read  23.1 - 23.5, 23.10) available online: http://www.cs.cmu.edu/~ph/869/papers/zisser-mundy.pdf

Projective geometry—what’s it good for? Uses of projective geometry Drawing Measurements Mathematics for projection Undistorting images Focus of expansion Camera pose estimation, match move Object recognition via invariants Today: single-view projective geometry Projective representation Point-line duality Vanishing points/lines Homographies The Cross-Ratio Later: multi-view geometry

Applications of projective geometry Vermeer’s Music Lesson Criminisi et al., “Single View Metrology”, ICCV 1999 Other methods Horry et al., “Tour Into the Picture”, SIGGRAPH 96 Shum et al., CVPR 98 ...

Measurements on planes 1 2 3 4 Approach: unwarp then measure What kind of warp is this? A Homography

Image rectification To unwarp (rectify) an image p’ p solve for homography H given p and p’ solve equations of the form: wp’’ = Hp linear in unknowns: w and coefficients of H H is defined up to an arbitrary scale factor can assume H[2,2] = 1 how many points are necessary to solve for H? work out on board

The projective plane Why do we need homogeneous coordinates? represent points at infinity, homographies, perspective projection, multi-view relationships What is the geometric intuition? a point in the image is a ray in projective space image plane (x,y,1) y (sx,sy,s) (0,0,0) x z Each point (x,y) on the plane is represented by a ray (sx,sy,s) all points on the ray are equivalent: (x, y, 1)  (sx, sy, s)

Projective lines What is a line in projective space? l p A line is a plane of rays through origin all rays (x,y,z) satisfying: ax + by + cz = 0 A line is also represented as a homogeneous 3-vector l l p

Point and line duality What is the line l spanned by rays p1 and p2 ? A line l is a homogeneous 3-vector (a ray) It is  to every point (ray) p on the line: l p=0 l l1 l2 p p2 p1 What is the line l spanned by rays p1 and p2 ? l is  to p1 and p2  l = p1  p2 l is the plane normal What is the intersection of two lines l1 and l2 ? p is  to l1 and l2  p = l1  l2 Points and lines are dual in projective space every property of points also applies to lines

Ideal points and lines Ideal line Ideal point (“point at infinity”) l  (a, b, 0) – parallel to image plane Corresponds to a line in the image (finite coordinates) (a,b,0) y x z image plane (sx,sy,0) y x z image plane Ideal point (“point at infinity”) p  (x, y, 0) – parallel to image plane It has infinite image coordinates

Homographies of points and lines Computed by 3x3 matrix multiplication To transform a point: p’ = Hp To transform a line: lp=0  l’p’=0 0 = lp = lH-1Hp = lH-1p’  l’ = lH-1 lines are transformed by premultiplication of H-1

3D projective geometry These concepts generalize naturally to 3D Homogeneous coordinates Projective 3D points have four coords: P = (X,Y,Z,W) Duality A plane N is also represented by a 4-vector Points and planes are dual in 3D: N P=0 Projective transformations Represented by 4x4 matrices T: P’ = TP, N’ = N T-1 However Can’t use cross-products in 4D. We need new tools Grassman-Cayley Algebra generalization of cross product, allows interactions between points, lines, and planes via “meet” and “join” operators Won’t get into this stuff today

3D to 2D: “Perspective” Projection Matrix Projection: Preserves Lines Incidence Does not preserve Lengths Angles Parallelism

Vanishing Points Vanishing point projection of a point at infinity image plane vanishing point camera center ground plane Vanishing point projection of a point at infinity

Vanishing Points (2D) image plane vanishing point camera center line on ground plane

Vanishing Points Properties image plane vanishing point V line on ground plane camera center C line on ground plane Properties Any two parallel lines have the same vanishing point The ray from C through v point is parallel to the lines An image may have more than one vanishing point

Vanishing Lines Multiple Vanishing Points Any set of parallel lines on the plane define a vanishing point The union of all of these vanishing points is the horizon line also called vanishing line Note that different planes define different vanishing lines

Vanishing Lines Multiple Vanishing Points Any set of parallel lines on the plane define a vanishing point The union of all of these vanishing points is the horizon line also called vanishing line Note that different planes define different vanishing lines

Computing Vanishing Points D Properties P is a point at infinity, v is its projection They depend only on line direction Parallel lines P0 + tD, P1 + tD intersect at X

Computing Vanishing Lines ground plane Properties l is intersection of horizontal plane through C with image plane Compute l from two sets of parallel lines on ground plane All points at same height as C project to l Provides way of comparing height of objects in the scene

Fun With Vanishing Points

Perspective Cues

Perspective Cues

Perspective Cues

Comparing Heights Vanishing Point

Measuring Height 5.4 1 2 3 4 5 3.3 Camera height 2.8

Measuring Height Without a Ruler Y C ground plane Compute Y from image measurements Need more than vanishing points to do this

The Cross Ratio The Cross-Ratio of 4 Collinear Points P4 P3 P2 P1 A Projective Invariant Something that does not change under projective transformations (including perspective projection) P1 P2 P3 P4 The Cross-Ratio of 4 Collinear Points Can permute the point ordering 4! = 24 different orders (but only 6 distinct values) This is the fundamental invariant of projective geometry

Measuring Height  Scene Cross Ratio Image Cross Ratio T (top of object) C vZ vL t b Image Cross Ratio L (height of camera on the this line) Y B (bottom of object) ground plane

Measuring Height Algebraic Derivation Eliminating  and  yields reference plane Algebraic Derivation Eliminating  and  yields Can calculate  given a known height in scene

So Far Can measure Positions within a plane Height More generally—distance between any two parallel planes These capabilities provide sufficient tools for single-view modeling To do: Compute camera projection matrix

Vanishing Points and Projection Matrix = vx (X vanishing point) Not So Fast! We only know v’s up to a scale factor Can fully specify by providing 3 reference lengths

3D Modeling from a Photograph

3D Modeling from a Photograph

Conics Conic (= quadratic curve) Defined by matrix equation Can also be defined using the cross-ratio of lines “Preserved” under projective transformations Homography of a circle is a… 3D version: quadric surfaces are preserved Other interesting properties (Sec. 23.6 in Mundy/Zisserman) Tangency Bipolar lines Silhouettes