Geometry of Images Pinhole camera, projection A taste of projective geometry Two view geometry:  Homography  Epipolar geometry, the essential matrix.

Slides:



Advertisements
Similar presentations
Image formation. Image Formation Vision infers world properties form images. How do images depend on these properties? Two key elements –Geometry –Radiometry.
Advertisements

Epipolar Geometry.
Lecture 11: Two-view geometry
Invariants (continued).
3D reconstruction.
Institut für Elektrische Meßtechnik und Meßsignalverarbeitung Professor Horst Cerjak, Augmented Reality VU 2 Calibration Axel Pinz.
Geometry 2: A taste of projective geometry Introduction to Computer Vision Ronen Basri Weizmann Institute of Science.
Study the mathematical relations between corresponding image points.
Geometry 1: Projection and Epipolar Lines Introduction to Computer Vision Ronen Basri Weizmann Institute of Science.
Two-View Geometry CS Sastry and Yang
Camera Models CMPUT 498/613 Richard Hartley and Andrew Zisserman, Multiple View Geometry, Cambridge University Publishers, 2000 Readings: HZ Ch 6, 7.
Camera calibration and epipolar geometry
Camera Models A camera is a mapping between the 3D world and a 2D image The principal camera of interest is central projection.
Single-view metrology
Computer Vision : CISC 4/689
Cameras (Reading: Chapter 1) Goal: understand how images are formed Camera obscura dates from 15 th century Basic abstraction is the pinhole camera Perspective.
Multiple View Geometry Projective Geometry & Transformations of 2D Vladimir Nedović Intelligent Systems Lab Amsterdam (ISLA) Informatics Institute,
The 2D Projective Plane Points and Lines.
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Used slides/content with permission from
Projective geometry- 2D Acknowledgements Marc Pollefeys: for allowing the use of his excellent slides on this topic
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
CS485/685 Computer Vision Prof. George Bebis
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,
Computer Vision - A Modern Approach
Camera model Relation between pixels and rays in space ?
Computer Vision : CISC4/689
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
Previously Two view geometry: epipolar geometry Stereo vision: 3D reconstruction epipolar lines Baseline O O’ epipolar plane.
Lecture 20: Two-view geometry CS6670: Computer Vision Noah Snavely.
The Pinhole Camera Model
The Image Formation Pipeline
CS223b, Jana Kosecka Rigid Body Motion and Image Formation.
Lec 21: Fundamental Matrix
Camera parameters Extrinisic parameters define location and orientation of camera reference frame with respect to world frame Intrinsic parameters define.
Two-views geometry Outline Background: Camera, Projection Necessary tools: A taste of projective geometry Two view geometry:  Homography  Epipolar geometry,
3-D Scene u u’u’ Study the mathematical relations between corresponding image points. “Corresponding” means originated from the same 3D point. Objective.
EEM 561 Machine Vision Week 10 :Image Formation and Cameras
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
Lecture 11 Stereo Reconstruction I Lecture 11 Stereo Reconstruction I Mata kuliah: T Computer Vision Tahun: 2010.
875: Recent Advances in Geometric Computer Vision & Recognition Jan-Michael Frahm Fall 2011.
Epipolar geometry The fundamental matrix and the tensor
Image Formation Fundamentals Basic Concepts (Continued…)
Geometric Models & Camera Calibration
Imaging Geometry for the Pinhole Camera Outline: Motivation |The pinhole camera.
Metrology 1.Perspective distortion. 2.Depth is lost.
Stereo Course web page: vision.cis.udel.edu/~cv April 11, 2003  Lecture 21.
Vision Review: Image Formation Course web page: September 10, 2002.
Multi-linear Systems and Invariant Theory in the Context of Computer Vision and Graphics CS329 Amnon Shashua.
Affine Structure from Motion
EECS 274 Computer Vision Affine Structure from Motion.
Feature Matching. Feature Space Outlier Rejection.
Computer vision: models, learning and inference M Ahad Multiple Cameras
Reconstruction from Two Calibrated Views Two-View Geometry
Stereo March 8, 2007 Suggested Reading: Horn Chapter 13.
Lec 26: Fundamental Matrix CS4670 / 5670: Computer Vision Kavita Bala.
Projective 2D geometry course 2 Multiple View Geometry Comp Marc Pollefeys.
Nazar Khan PUCIT Lecture 19
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry
René Vidal and Xiaodong Fan Center for Imaging Science
Two-view geometry Computer Vision Spring 2018, Lecture 10
Epipolar geometry.
Study the mathematical relations between corresponding image points.
Two-view geometry.
Computer Graphics Recitation 12.
Multiple View Geometry for Robotics
The Pinhole Camera Model
Presentation transcript:

Geometry of Images Pinhole camera, projection A taste of projective geometry Two view geometry:  Homography  Epipolar geometry, the essential matrix  Camera calibration, the fundamental matrix Stereo vision: 3D shape reconstruction from two views Factorization: reconstruction from many views

Geometry of Images

Cameras Camera obscura dates from 15 th century First photograph on record shown in the book Basic abstraction is the pinhole camera Current cameras contain a lens and a recording device (film, CCD) The human eye functions very much like a camera

Camera Obscura "Reinerus Gemma-Frisius, observed an eclipse of the sun at Louvain on January 24, 1544, and later he used this illustration of the event in his book De Radio Astronomica et Geometrica, It is thought to be the first published illustration of a camera obscura..." Hammond, John H., The Camera Obscura, A Chronicle

Why Not Use Pinhole Camera If pinhole is too big - many directions are averaged, blurring the image Pinhole too small diffraction effects blur the image Generally, pinhole cameras are dark, because a very small set of rays from a particular point hits the screen.

Lenses

Lenses collect light from a large hole and direct it to a single point Overcome the darkness of pinhole cameras But there is a price  Focus  Radial distortions  Chromatic abberations  … Pinhole is useful as a model

Pinhole Camera

Single View Geometry f ∏

Notation O – Focal center π – Image plane Z – Optical axis f – Focal length

Projection f x y Z X Y

Perspective Projection Homogeneous Coordinates

Orthographic Projection Projection rays are parallel Image plane is fronto-parallel ( orthogonal to rays) Focal center at infinity

Scaled Orthographic Projection Also called “weak perspective”

Pros and Cons of Projection Models Weak perspective has simpler math.  Accurate when object is small and distant.  Most useful for recognition of objects. Pinhole perspective much more accurate for scenes.  Used in structure from motion. When accuracy really matters, we must model the real camera  Use perspective projection with other calibration parameters (e.g., radial lens distortion)

World Cup 66: England-Germany

World Cup 66: Second View

World Cup 66: England-Germany Conclusion: no goal (missing 3 inches) (Reid and Zisserman, “Goal-directed video metrology”)

Euclidean Geometry Answers the question what objects have the same shape (= congruent) Same shapes are related by rotation and translation

Projective Geometry Answers the question what appearances (projections) represent the same shape Same shapes are related by a projective transformation

Perspective Distortion Where do parallel lines meet? Parallel lines meet at the horizon (“vanishing line”)

Line Perspective Pencil of rays Perspective mapping

Plane Perspective

Ideal points Projective transformation can map ∞ to a real point

Coordinates in Euclidean Space ∞ Not in space

Coordinates in Projective Line ∞ k(0,1) k(1,0) k(2,1) k(1,1) k(-1,1) Points on a line P 1 are represented as rays from origin in 2D, Origin is excluded from space “Ideal point”

Coordinates in Projective Plane k(0,0,1) k(x,y,0) k(1,1,1) k(1,0,1) k(0,1,1) “Ideal point”

2D Projective Geometry: Basics A point: A line: we denote a line with a 3-vector Points and lines are dual: p is on l if Intersection of two lines: A line through two points:

Cross Product Every entry is a determinant of the two other entries Area of parallelogram bounded by u and v

Ideal points Q: How many ideal points are there in P 2 ? A: 1 degree of freedom family – the line at infinity

Projective Transformation (Homography) Any finite sequence of perspectivities is a projective transformation Projective transformations map lines to lines Represented by an invertible 3x3 linear transformation (up to scale), denote by H, or Given homography H, how does it operate on lines?

Rotation: Translation: Euclidean Transformations (Isometries)

Hierarchy of Transformations Isometry (Euclidean), Similarity, Affine, general linear Projective,

Invariants LengthAreaAnglesParallelism Isometry √√√√ Similarity × × (Scale) √√ Affine ×××√ Projective ××××

Perspective Projection Note: P and p are related by a scale factor, but it is a different factor for each point (depends on Z)

Two View Geometry When a camera changes position and orientation, the scene moves rigidly relative to the camera In two cases this results in homography:  Camera rotates around its focal point  The scene is planar In this case the mapping from one image to the second is one to one and depth cannot be recovered In the general case the induced motion is more complex and is captured by what is termed “epipolar geometry”

Camera Rotation (R is 3x3 non-singular)

Intuitively A sequence of two perspectivities Algebraically Planar Scenes Scene Camera 1 Camera 2

Two Views Related by Homography Two images are related by homography: One to one mapping from p to p’ H contains 8 degrees of freedom Given correspondences, each point determines 2 equations 4 points are required to recover H Depth cannot be recovered

General Case: Epipolar Lines epipolar line

Epipolar Plane epipolar plane epipolar line Baseline P O O’

Epipole Every plane through the baseline is an epipolar plane, and determines a pair of epipolar lines in the two images Two systems of epipolar lines are obtained, each system intersects in a point, the epipole The epipole is the projection of the center of the other camera epipolar plane epipolar lines Baseline O O’

Epipolar Lines epipolar plane epipolar line Baseline P O O’ To define an epipolar plane, we define the plane through the two camera centers O and O’ and some point P. This can be written algebraically (in some world coordinates as follows:

Epipolar Lines Set world coordinates around the first camera What to do with O’P? Every rotation changes the observed coordinate in the second image We need to de-rotate to make the second image plane parallel to the first Replacing by image points

Essential Matrix Denote this by: Then Define, then E is called the “essential matrix”

Essential Matrix E is rank 2. Its (right and left) null spaces are the two epipoles is linear and homogeneous in E, E can be recovered up to scale using 8 points The additional constraint detE=0 reduces the needed points to 7 In fact, there are only 5 degrees of freedom in E,  3 for rotation  2 for translation (up to scale), determined by epipole

Internal Calibration Camera parameters may be unknown: (c x,c y ) camera center, (a x,a y ) pixel dimensions, b skew Radial distortions are not accounted for

Fundamental Matrix F, the fundamental matrix, too is rank 2 F has 7 d.o.f. (9 entries, homogeneous, and detF=0)

Summary HomographyPerspectiveOrthographic Form ShapeOne-to-one (Group) Concentric epipolar lines Parallel epipolar lines D.o.f.8(5) 5 Eqs/pnt211 Minimal configuration 45+ (8, linear)4 DepthNoYes, up to scale No, third view required