Instructor: Otmar Hilliges

Slides:



Advertisements
Similar presentations
Option G2: Optical Instruments
Advertisements

Single-view geometry Odilon Redon, Cyclops, 1914.
Last 4 lectures Camera Structure HDR Image Filtering Image Transform.
CS 691 Computational Photography Instructor: Gianfranco Doretto 3D to 2D Projections.
Correcting Projector Distortions on Planar Screens via Homography
Computer vision: models, learning and inference
Computer vision. Camera Calibration Camera Calibration ToolBox – Intrinsic parameters Focal length: The focal length in pixels is stored in the.
CH 14: MIRRORS & LENSES 14.1: Mirrors. I. Plane Mirrors  Flat, smooth mirror  Creates a virtual image: an image your brain perceives even though no.
Announcements. Projection Today’s Readings Nalwa 2.1.
CS485/685 Computer Vision Prof. George Bebis
Image Formation1 Projection Geometry Radiometry (Image Brightness) - to be discussed later in SFS.
COMP322/S2000/L221 Relationship between part, camera, and robot (cont’d) the inverse perspective transformation which is dependent on the focal length.
Camera model Relation between pixels and rays in space ?
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.
Multiple View Geometry Marc Pollefeys University of North Carolina at Chapel Hill Modified by Philippos Mordohai.
The Pinhole Camera Model
Projected image of a cube. Classical Calibration.
CS223b, Jana Kosecka Rigid Body Motion and Image Formation.
A. can be focused on a screen. B. can be projected on a wall.
Ch18.1 Mirrors Concave mirror All light rays that come in parallel to the optical axis, reflect thru the focal point. All light rays that come in thru.
Lenses and Mirrors. How does light interact with pinholes? How does light interact with lenses? –___________ How does light interact with mirrors? –___________.
Light: Geometric Optics Chapter Ray Model of Light Light travels in a straight line so a ray model is used to show what is happening to the light.
Camera Geometry and Calibration Thanks to Martial Hebert.
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
3D Sensing and Reconstruction Readings: Ch 12: , Ch 13: , Perspective Geometry Camera Model Stereo Triangulation 3D Reconstruction by.
Metrology 1.Perspective distortion. 2.Depth is lost.
Geometric Camera Models
Vision Review: Image Formation Course web page: September 10, 2002.
© 2005 Martin Bujňák, Martin Bujňák Supervisor : RNDr.
Lecture 03 15/11/2011 Shai Avidan הבהרה : החומר המחייב הוא החומר הנלמד בכיתה ולא זה המופיע / לא מופיע במצגת.
Single-view geometry Odilon Redon, Cyclops, 1914.
Ch. 3: Geometric Camera Calibration
CS-498 Computer Vision Week 7, Day 2 Camera Parameters Intrinsic Calibration  Linear  Radial Distortion (Extrinsic Calibration?) 1.
Plane Mirror: a mirror with a flat surface
October 5, Memorial University of Newfoundland Camera Calibration In the field of machine vision, camera calibration refers to the experimental.
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)
Sasha Bernard 5A Physics PowerPoint #2 Mr. Davis Sections of the syllabus.
Computer vision: models, learning and inference M Ahad Multiple Cameras
AP Physics Mr. Jean February 10 th, The plan: Diverging Mirrors Lenses.
Example: warping triangles Given two triangles: ABC and A’B’C’ in 2D (12 numbers) Need to find transform T to transfer all pixels from one to the other.
CS-498 Computer Vision Week 7, Day 2 Camera Parameters Intrinsic Calibration  Linear  Forward and backward projection 1.
Computer vision: geometric models Md. Atiqur Rahman Ahad Based on: Computer vision: models, learning and inference. ©2011 Simon J.D. Prince.
CS682, Jana Kosecka Rigid Body Motion and Image Formation Jana Kosecka
Computer vision: models, learning and inference
Geometric Model of Camera
More Mosaic Madness © Jeffrey Martin (jeffrey-martin.com)
Lenses Converging and Diverging Lenses.
Ch. 30 Lenses.
RAY DIAGRAMS FOR MIRRORS
Mirrors.
Notes 23.3: Lenses and Images
Overview Pin-hole model From 3D to 2D Camera projection
Thin Lenses 1/p + 1/q = 1/f 1/f = (n -1) (1/R1 - 1/R2)
Formation of Images by Spherical Mirrors
Reflections in Mirrors
More Mosaic Madness : Computational Photography
Geometric Camera Models
14-2 Thin lenses.
Announcements Midterm out today Project 1 demos.
Part 3: Optics (Lenses and Mirrors)
Camera Calibration Coordinate change Translation P’ = P – O
Credit: CS231a, Stanford, Silvio Savarese
Single-view geometry Odilon Redon, Cyclops, 1914.
Camera Calibration Reading:
Lenses: Day 1 -Converging Lenses
Lenses
The Pinhole Camera Model
3.2.6 Refinement of Photo Co-ordinates: -
Presentation transcript:

User Interface Engineering Exercise Class 2 Camera Calibration, Undistortion, and Image Dilation. Instructor: Otmar Hilliges TA’s: Tobias Nageli, Liu Zhiyong, Karthik Sheshadri Broken down table process into 4 hws, this deals with image formation. Allows obtain clean signal.

Overview Perspective projection based on the pinhole model Camera Calibration Lens Distortion and Correction Morphological Operations (Erosion & Dilation)

Image Formation Basic image model, pinhole camera, simplify the problem into two rays at extremes.

Perspective Projection: The Pinhole Model The image plane π in an actual camera is at a distance of f behind the center of projection and the projected image is inverted. However we can assume that the image plane is in front of the center of projection to avoid this inversion he line through the center of projection (i.e., optical center) c o and perpendicular to the image plane π is the optical axis. The 3D point c x is projected onto n x through the optical center c (Perspective Division)

Image Formation: Optics can cause issues

Image Formation 1 𝑓 = 1 𝑧 + 1 𝑒

Image Formation

Lens Distortion Assume Staright lines in real world project to straight lines in image. Most lenses radial distortion, manifests as a curvature in the projection of straight lines.

Perspective Projection: The Pinhole Model The Pinhole Model equations in homogeneous co-ordinates Say that this eqn is a projection from the 3D world cords to image plane and uses the focal length of the camera .

Perspective Projection: The Pinhole Model The displacements from the optical center need to be put in pixel co-ordinates.

Perspective Projection: The Pinhole Model Xp -> normalized 0 to 1 space

Perspective Projection: The Pinhole Model (Camera Intrinsics)

Perspective Projection: The Pinhole Model (Camera Extrinsics)

Perspective Projection: The Pinhole Model

Perspective Projection: The Pinhole Model

Lens Distortion

Lens Distortion 𝑢 𝑑 𝑣 𝑑 = 1+ 𝑘 1 𝑟 2 𝑢− 𝑢 0 𝑣− 𝑣 0 + 𝑢 0 𝑣 0 , 𝑢 𝑑 𝑣 𝑑 = 1+ 𝑘 1 𝑟 2 𝑢− 𝑢 0 𝑣− 𝑣 0 + 𝑢 0 𝑣 0 , With 𝑟 2 = 𝑢− 𝑢 0 2 + 𝑣− 𝑣 0 2

OpenCV Tutorial Online tutorial: http://docs.opencv.org/doc/tutorials/calib3d/camera_calibration/ca mera_calibration.html

Calibration procedure Practical tips and tricks Place your camera such that most of the image is covered by the checkerboard Use varying orientations and distances for the views Screenshots

Deliverables Send your calibration intrinsics Send in the estimated distortion coefficients Record a video of your undistorted images http://ait.ethz.ch/teaching/courses/2013-FS-User-Interface- Engineering/

Morphological Operations Size of s determines extent of ero/dil . Ero -> keep

Morphological Operations Absolute Image Differences for Motion Segmentation

Morphological Operations

Morphological Operations