Lecturer: Dr. A.H. Abdul Hafez

Slides:



Advertisements
Similar presentations
C280, Computer Vision Prof. Trevor Darrell Lecture 2: Image Formation.
Advertisements

Single-view geometry Odilon Redon, Cyclops, 1914.
CS 691 Computational Photography Instructor: Gianfranco Doretto 3D to 2D Projections.
Computer Vision CS 776 Spring 2014 Cameras & Photogrammetry 1 Prof. Alex Berg (Slide credits to many folks on individual slides)
Monday March 21 Prof. Kristen Grauman UT-Austin Image formation.
Paris town hall.
Algorithms and Applications in Computer Vision Lihi Zelnik-Manor
Computer vision: models, learning and inference
Projection Readings Szeliski 2.1. Projection Readings Szeliski 2.1.
Image formation and cameras CSE P 576 Larry Zitnick Many slides courtesy of Steve Seitz.
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.
Structure from motion.
Announcements. Projection Today’s Readings Nalwa 2.1.
Lecture 5: Projection CS6670: Computer Vision Noah Snavely.
Structure from motion. Multiple-view geometry questions Scene geometry (structure): Given 2D point matches in two or more images, where are the corresponding.
CS485/685 Computer Vision Prof. George Bebis
Announcements Mailing list Project 1 test the turnin procedure *this week* (make sure it works) vote on best artifacts in next week’s class Project 2 groups.
Calibration Dorit Moshe.
Lecture 13: Projection, Part 2
Lecture 12: Projection CS4670: Computer Vision Noah Snavely “The School of Athens,” Raphael.
Lecture 6: Image Warping and Projection CS6670: Computer Vision Noah Snavely.
Single-view geometry Odilon Redon, Cyclops, 1914.
The Pinhole Camera Model
Projected image of a cube. Classical Calibration.
CS223b, Jana Kosecka Rigid Body Motion and Image Formation.
Cameras, lenses, and calibration
Perspective projection
EEM 561 Machine Vision Week 10 :Image Formation and Cameras
Image formation & Geometrical Transforms Francisco Gómez J MMS U. Central y UJTL.
Image formation How are objects in the world captured in an image?
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Spring 2013.
Lecture 14: Projection CS4670 / 5670: Computer Vision Noah Snavely “The School of Athens,” Raphael.
Camera Geometry and Calibration Thanks to Martial Hebert.
Image Formation Fundamentals Basic Concepts (Continued…)
Course 12 Calibration. 1.Introduction In theoretic discussions, we have assumed: Camera is located at the origin of coordinate system of scene.
Geometric Models & Camera Calibration
Sebastian Thrun CS223B Computer Vision, Winter Stanford CS223B Computer Vision, Winter 2005 Lecture 2 Lenses and Camera Calibration Sebastian Thrun,
Geometric Camera Models
Vision Review: Image Formation Course web page: September 10, 2002.
Peripheral drift illusion. Multiple views Hartley and Zisserman Lowe stereo vision structure from motion optical flow.
Single-view geometry Odilon Redon, Cyclops, 1914.
CS-498 Computer Vision Week 7, Day 2 Camera Parameters Intrinsic Calibration  Linear  Radial Distortion (Extrinsic Calibration?) 1.
Projection Readings Nalwa 2.1 Szeliski, Ch , 2.1
1 Chapter 2: Geometric Camera Models Objective: Formulate the geometrical relationships between image and scene measurements Scene: a 3-D function, g(x,y,z)
Reconnaissance d’objets et vision artificielle Jean Ponce Equipe-projet WILLOW ENS/INRIA/CNRS UMR 8548 Laboratoire.
Single-view geometry Odilon Redon, Cyclops, 1914.
Lecture 14: Projection CS4670 / 5670: Computer Vision Noah Snavely “The School of Athens,” Raphael.
Lecture 18: Cameras CS4670 / 5670: Computer Vision KavitaBala Source: S. Lazebnik.
CSE 185 Introduction to Computer Vision
CS682, Jana Kosecka Rigid Body Motion and Image Formation Jana Kosecka
Calibrating a single camera
Computer vision: models, learning and inference
Prof. Adriana Kovashka University of Pittsburgh October 3, 2016
Geometric Model of Camera
CS5670: Computer Vision Lecture 9: Cameras Noah Snavely
Announcements Project 1 Project 2
Announcements Project 1 Project 2 Due Wednesday at 11:59pm
CS 790: Introduction to Computational Vision
Lecture 13: Cameras and geometry
Geometric Camera Models
Multiple View Geometry for Robotics
Announcements Midterm out today Project 1 demos.
Projection Readings Nalwa 2.1.
Credit: CS231a, Stanford, Silvio Savarese
Projection Readings Szeliski 2.1.
Single-view geometry Odilon Redon, Cyclops, 1914.
The Pinhole Camera Model
Presentation transcript:

Lecturer: Dr. A.H. Abdul Hafez Image Processing and Analysis Computer Vision Lecture 2: Image Formation Geometry Lecturer: Dr. A.H. Abdul Hafez abdul.hafez@hku.edu.tr Hasan Kalyoncu University Faculty of Computer Engineering Fall 2015-16 30 November 2018 HKU, AH Abdul Hafez

Physical parameters of image formation Geometric Type of projection Camera pose Optical Sensor’s lens type focal length, field of view, aperture Photometric Type, direction, intensity of light reaching sensor Surfaces’ reflectance properties Sensor sampling, etc.

Physical parameters of image formation Geometric Type of projection Camera pose Optical Sensor’s lens type focal length, field of view, aperture Photometric Type, direction, intensity of light reaching sensor Surfaces’ reflectance properties Sensor sampling, etc.

Perspective and art Use of correct perspective projection indicated in 1st century B.C. frescoes Skill resurfaces in Renaissance: artists develop systematic methods to determine perspective projection (around 1480-1515) Raphael Durer, 1525 K. Grauman

Perspective projection equations 3d world mapped to 2d projection in image plane Image plane Focal length Optical axis Camera frame ‘ ’ Scene / world points Scene point Image coordinates ‘’ Forsyth and Ponce

Homogeneous coordinates Is this a linear transformation? no—division by z is nonlinear Trick: add one more coordinate: homogeneous image coordinates homogeneous scene coordinates Converting from homogeneous coordinates Slide by Steve Seitz

Perspective Projection Matrix Projection is a matrix multiplication using homogeneous coordinates: divide by the third coordinate to convert back to non-homogeneous coordinates Complete mapping from world points to image pixel positions? Slide by Steve Seitz

Perspective projection & calibration Perspective equations so far in terms of camera’s reference frame…. Camera’s intrinsic and extrinsic parameters needed to calibrate geometry. Camera frame K. Grauman 8

Perspective projection & calibration World frame Extrinsic: Camera frame World frame Intrinsic: Image coordinates relative to camera  Pixel coordinates Camera frame World to camera coord. trans. matrix (4x4) Perspective projection matrix (3x4) Camera to pixel coord. trans. matrix (3x3) = 2D point (3x1) 3D point (4x1) K. Grauman 9

Intrinsic parameters: from idealized world coordinates to pixel values Forsyth&Ponce Perspective projection W. Freeman

Intrinsic parameters But “pixels” are in some arbitrary spatial units Maybe pixels are not square W. Freeman

Intrinsic parameters We don’t know the origin of our camera pixel coordinates W. Freeman

Intrinsic parameters May be skew between camera pixel axes W. Freeman

Intrinsic parameters, homogeneous coordinates Using homogenous coordinates, we can write this as: or: In pixels In camera-based coords W. Freeman

Extrinsic parameters: translation and rotation of camera frame Non-homogeneous coordinates Homogeneous coordinates W. Freeman

Combining extrinsic and intrinsic calibration parameters, in homogeneous coordinates pixels Intrinsic Camera coordinates World coordinates Extrinsic Forsyth&Ponce W. Freeman

Other ways to write the same equation pixel coordinates world coordinates Conversion back from homogeneous coordinates leads to: W. Freeman

Calibration target Find the position, ui and vi, in pixels, of each calibration object feature point. http://www.kinetic.bc.ca/CompVision/opti-CAL.html

Camera calibration From before, we had these equations relating image positions, u,v, to points at 3-d positions P (in homogeneous coordinates): So for each feature point, i, we have: W. Freeman

Camera calibration Stack all these measurements of i=1…n points into a big matrix: W. Freeman

Camera calibration In vector form: Showing all the elements: W. Freeman

Camera calibration Q m = 0 We want to solve for the unit vector m (the stacked one) that minimizes The minimum eigenvector of the matrix QTQ gives us that (see Forsyth&Ponce, 3.1), because it is the unit vector x that minimizes xT QTQ x. W. Freeman

Camera calibration Once you have the M matrix, can recover the intrinsic and extrinsic parameters as in Forsyth&Ponce, sect. 3.2.2. W. Freeman

Recall, perspective effects… Far away objects appear smaller Forsyth and Ponce

Perspective effects

Perspective effects

Perspective effects Parallel lines in the scene intersect in the image Converge in image on horizon line Image plane (virtual) pinhole Scene

Projection Types/properties Many-to-one: any points along same ray map to same point in image Points  ? points Lines  ? lines (collinearity preserved) Distances and angles are / are not ? preserved are not Degenerate cases: – Line through focal point projects to a point. – Plane through focal point projects to line – Plane perpendicular to image plane projects to part of the image.

Projection Types/Weak perspective Approximation: treat magnification as constant Assumes scene depth << average distance to camera Image plane World points:

Projection Types/Orthographic projection Given camera at constant distance from scene World points projected along rays parallel to optical access

2D rigid Transformations

2D Rigid Transformations

3D Rigid Transformations

Slide Credits Bill Freeman Steve Seitz Kristen Grauman Forsyth and Ponce Rick Szeliski Trevol Darrell and others, as marked…

END

Other types of projection Lots of intriguing variants… (I’ll just mention a few fun ones) S. Seitz

360 degree field of view… Basic approach Take a photo of a parabolic mirror with an orthographic lens (Nayar) Or buy one a lens from a variety of omnicam manufacturers… See http://www.cis.upenn.edu/~kostas/omni.html S. Seitz

Titlt-shift images from Olivo Barbieri and Photoshop imitations Tilt-shift http://www.northlight-images.co.uk/article_pages/tilt_and_shift_ts-e.html Titlt-shift images from Olivo Barbieri and Photoshop imitations S. Seitz

tilt, shift http://en.wikipedia.org/wiki/Tilt-shift_photography

Tilt-shift perspective correction http://en.wikipedia.org/wiki/Tilt-shift_photography

normal lens tilt-shift lens http://www.northlight-images.co.uk/article_pages/tilt_and_shift_ts-e.html

Rotating sensor (or object) Rollout Photographs © Justin Kerr http://research.famsi.org/kerrmaya.html Also known as “cyclographs”, “peripheral images” S. Seitz

Photofinish S. Seitz