Unit 1: Image Formation

Similar documents
Projection. Projection. Image formation. Müller-Lyer Illusion. Readings. Readings. Let s design a camera. Szeliski 2.1. Szeliski 2.

Projection. Readings. Szeliski 2.1. Wednesday, October 23, 13

Cameras. CSE 455, Winter 2010 January 25, 2010

Projection. Announcements. Müller-Lyer Illusion. Image formation. Readings Nalwa 2.1

CS6670: Computer Vision

LENSES. INEL 6088 Computer Vision

Image Formation III Chapter 1 (Forsyth&Ponce) Cameras Lenses & Sensors

Building a Real Camera. Slides Credit: Svetlana Lazebnik

Building a Real Camera

The Camera : Computational Photography Alexei Efros, CMU, Fall 2008

Two strategies for realistic rendering capture real world data synthesize from bottom up

The Camera : Computational Photography Alexei Efros, CMU, Fall 2005

Image Formation. Dr. Gerhard Roth. COMP 4102A Winter 2015 Version 3

IMAGE FORMATION. Light source properties. Sensor characteristics Surface. Surface reflectance properties. Optics

How do we see the world?

CSE 473/573 Computer Vision and Image Processing (CVIP)

CS6670: Computer Vision

Overview. Pinhole camera model Projective geometry Vanishing points and lines Projection matrix Cameras with Lenses Color Digital image

Computer Vision. The Pinhole Camera Model

CSE 527: Introduction to Computer Vision

Image Formation and Capture

Image formation - Cameras. Grading & Project. About the course. Tentative Schedule. Course Content. Students introduction

Cameras. Outline. Pinhole camera. Camera trial #1. Pinhole camera Film camera Digital camera Video camera

Computer Vision. Thursday, August 30

Dr F. Cuzzolin 1. September 29, 2015

Cameras. Digital Visual Effects, Spring 2008 Yung-Yu Chuang 2008/2/26. with slides by Fredo Durand, Brian Curless, Steve Seitz and Alexei Efros

Acquisition. Some slides from: Yung-Yu Chuang (DigiVfx) Jan Neumann, Pat Hanrahan, Alexei Efros

Colorado School of Mines. Computer Vision. Professor William Hoff Dept of Electrical Engineering &Computer Science.

Announcement A total of 5 (five) late days are allowed for projects. Office hours

Cameras. Shrinking the aperture. Camera trial #1. Pinhole camera. Digital Visual Effects Yung-Yu Chuang. Put a piece of film in front of an object.

Cameras. Outline. Pinhole camera. Camera trial #1. Pinhole camera Film camera Digital camera Video camera High dynamic range imaging

Image Formation. Dr. Gerhard Roth. COMP 4102A Winter 2014 Version 1

Single-view Metrology and Cameras

VC 14/15 TP2 Image Formation

VC 16/17 TP2 Image Formation

Image Formation and Capture. Acknowledgment: some figures by B. Curless, E. Hecht, W.J. Smith, B.K.P. Horn, and A. Theuwissen

Lecture 02 Image Formation 1

Image Processing & Projective geometry

Capturing Light in man and machine. Some figures from Steve Seitz, Steve Palmer, Paul Debevec, and Gonzalez et al.

Capturing Light in man and machine

VC 11/12 T2 Image Formation

Capturing light and color

Lenses, exposure, and (de)focus

Image Acquisition Hardware. Image Acquisition and Representation. CCD Camera. Camera. how digital images are produced

TSBB09 Image Sensors 2018-HT2. Image Formation Part 1

Image Acquisition and Representation. Camera. CCD Camera. Image Acquisition Hardware

Image Acquisition and Representation. Image Acquisition Hardware. Camera. how digital images are produced how digital images are represented

Image Acquisition and Representation

CPSC 425: Computer Vision

Virtual and Digital Cameras

Image Formation: Camera Model

Lecture 2 Camera Models

Light. Path of Light. Looking at things. Depth and Distance. Getting light to imager. CS559 Lecture 2 Lights, Cameras, Eyes

Cameras. Steve Rotenberg CSE168: Rendering Algorithms UCSD, Spring 2017

Intorduction to light sources, pinhole cameras, and lenses

Overview. Image formation - 1

Image Formation. World Optics Sensor Signal. Computer Vision. Introduction to. Light (Energy) Source. Surface Imaging Plane. Pinhole Lens.

Cameras, lenses and sensors

Getting light to imager. Capturing Images. Depth and Distance. Ideal Imaging. CS559 Lecture 2 Lights, Cameras, Eyes

GEOMETRICAL OPTICS AND OPTICAL DESIGN

Computer Vision Lecture 1

CS 443: Imaging and Multimedia Cameras and Lenses

ME 6406 MACHINE VISION. Georgia Institute of Technology

Lecture 4: Geometrical Optics 2. Optical Systems. Images and Pupils. Rays. Wavefronts. Aberrations. Outline

Lecture 7: Camera Models

Sensors and Sensing Cameras and Camera Calibration

Announcements. Image Formation: Outline. The course. How Cameras Produce Images. Earliest Surviving Photograph. Image Formation and Cameras

Capturing Light in man and machine

ECEN 4606, UNDERGRADUATE OPTICS LAB

6.098 Digital and Computational Photography Advanced Computational Photography. Bill Freeman Frédo Durand MIT - EECS

Image stitching. Image stitching. Video summarization. Applications of image stitching. Stitching = alignment + blending. geometrical registration

Basic principles of photography. David Capel 346B IST

Cameras and Sensors. Today. Today. It receives light from all directions. BIL721: Computational Photography! Spring 2015, Lecture 2!

Capturing Light in man and machine

What will be on the midterm?

Imaging Optics Fundamentals

Lecture 2 Camera Models

The eye & corrective lenses

Capturing Light in man and machine

Digital Image Processing COSC 6380/4393

Reading. Angel. Chapter 5. Optional

Image acquisition. In both cases, the digital sensing element is one of the following: Line array Area array. Single sensor

Homogeneous Representation Representation of points & vectors. Properties. Homogeneous Transformations

INTRODUCTION THIN LENSES. Introduction. given by the paraxial refraction equation derived last lecture: Thin lenses (19.1) = 1. Double-lens systems

Chapter 25 Optical Instruments

CS559: Computer Graphics. Lecture 2: Image Formation in Eyes and Cameras Li Zhang Spring 2008

Lecture 8 Camera Models

Modeling and Synthesis of Aperture Effects in Cameras

Astronomical Cameras

Acquisition Basics. How can we measure material properties? Goal of this Section. Special Purpose Tools. General Purpose Tools

Lecture 2: Geometrical Optics. Geometrical Approximation. Lenses. Mirrors. Optical Systems. Images and Pupils. Aberrations.

DIGITAL IMAGE PROCESSING

CPSC 4040/6040 Computer Graphics Images. Joshua Levine

Capturing Light in man and machine

1 Image Formation. 1.1 Optics 1.1

Prof. Feng Liu. Spring /05/2017

CS6670: Computer Vision

Digital Image Processing COSC 6380/4393

R 1 R 2 R 3. t 1 t 2. n 1 n 2

Visual Perception. Readings and References. Forming an image. Pinhole camera. Readings. Other References. CSE 457, Autumn 2004 Computer Graphics

Transcription:

Unit 1: Image Formation 1. Geometry 2. Optics 3. Photometry 4. Sensor Readings Szeliski 2.1-2.3 & 6.3.5 1

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. Bayer color filter array 2

Image formation Let s design a camera Idea 1: put a piece of film in front of an object Do we get a reasonable image? 3

Pinhole camera Add a barrier to block off most of the rays This reduces blurring The opening known as the aperture How does this transform the image? 4

Camera Obscura The first camera Known to Aristotle How does the aperture size affect the image? 5

The eye The human eye is a camera Iris - colored annulus with radial muscles Pupil - the hole (aperture) whose size is controlled by the iris What s the film? photoreceptor cells (rods and cones) in the retina 6

Digital camera A digital camera replaces film with a sensor array Each cell in the array is a Charge Coupled Device light-sensitive diode that converts photons to electrons other variants exist: CMOS is becoming more popular http://electronics.howstuffworks.com/digital-camera.htm 7

Issues with digital cameras Noise big difference between consumer vs. SLR-style cameras low light is where you most notice noise Compression creates artifacts except in uncompressed formats (tiff, raw) Color color fringing artifacts from Bayer patterns Blooming charge overflowing into neighboring pixels In-camera processing oversharpening can produce halos Interlaced vs. progressive scan video even/odd rows from different exposures Are more megapixels better? requires higher quality lens noise issues Stabilization compensate for camera shake (mechanical vs. electronic) More info online, e.g., http://electronics.howstuffworks.com/digital-camera.htm http://www.dpreview.com/ 8

Geometric projection The coordinate system We will use the pin-hole model as an approximation Put the optical center (Center Of Projection) at the origin Put the image plane (Projection Plane) in front of the COP Why? The camera looks down the negative z axis we need this if we want right-handed-coordinates 9

Modeling projection Projection equations Compute intersection with PP of ray from (x,y,z) to COP Derived using similar triangles (on board) We get the projection by throwing out the last coordinate: 10

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 11

Perspective Projection Projection is a matrix multiply using homogeneous coordinates: This is known as perspective projection divide by third coordinate The matrix is the projection matrix Can also formulate as a 4x4 (today s reading does this) divide by fourth coordinate 12

Perspective Projection How does scaling the projection matrix change the transformation? 13

Orthographic projection Special case of perspective projection Distance from the COP to the PP is infinite Image World Good approximation for telephoto optics Also called parallel projection : (x, y, z) (x, y) What s the projection matrix? 14

Orthographic ( telecentric ) lenses Navitar telecentric zoom lens http://www.lhup.edu/~dsimanek/3d/telecent.htm 15

Variants of orthographic projection Scaled orthographic Also called weak perspective Affine projection Also called paraperspective 16

Projection equation The projection matrix models the cumulative effect of all parameters Useful to decompose into a series of operations x ΠX 1 * * * * * * * * * * * * Z Y X s sy sx 1 1 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0 3 1 1 3 3 3 3 1 1 3 3 3 x x x x x x y y x x c fs c fs 0 0 0 T I R Π projection intrinsics rotation translation identity matrix Camera parameters A camera is described by several parameters Translation T of the optical center from the origin of world coords Rotation R of the image plane focal length f, principle point (c x, c y ), pixel size (s x, s y ) blue parameters are called extrinsics, red are intrinsics The definitions of these parameters are not completely standardized especially intrinsics varies from one book to another 17

3D-to-2D Camera Projection Camera calibration matrix K is a 3X3 upper-triangular matrix The camera projection matrix P (3X4) which maps the 3D point coordinate (in world coordinate) to the corresponding 2D image coordinate is given by R & t: the camera extrinsic parameters 19

Lens Distortion No distortion Pin cushion Barrel Radial distortion of the image Caused by imperfect lenses Deviations are most noticeable for rays that pass through the edge of the lens The radial distortion model says that coordinates in the observed images are displaced away (barrel) or towards (pincushion) the image center by an amount proportional to their radial distance. 20

Correcting radial distortion from Helmut Dersch 21

Radial Distortion Model Let (x c, y c ) be the pixel coordinates obtained after perspective division but before scaling by focal length f and shifting by the optical center (c x, c y ), i.e., The simplest radial distortion models use low-order polynomials, e.g. The final pixel coordinates can be computed using 22

Modeling distortion Project to normalized image coordinates Apply radial distortion Apply focal length translate image center To model lens distortion Use above projection operation instead of standard projection matrix multiplication 23

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

Pinhole size / aperture How does the size of the aperture affect the image we d get? Larger Smaller 25 K. Grauman

Adding a lens focal point f A lens focuses light onto the film Rays passing through the center are not deviated All parallel rays converge to one point on a plane located at the focal length f 26 Slide by Steve Seitz

Pinhole vs. lens 27 K. Grauman

Cameras with lenses F optical center (Center Of Projection) focal point A lens focuses parallel rays onto a single focal point Gather more light, while keeping focus; make pinhole perspective projection practical 28 K. Grauman

Human eye Rough analogy with human visual system: Pupil/Iris control amount of light passing through lens Retina - contains sensor cells, where image is formed Fovea highest concentration of cones Fig from Shapiro and Stockman 29

Thin lens Left focus Thin lens Right focus Rays entering parallel on one side go through focus on other, and vice versa. In ideal case all rays from P imaged at P. Lens diameter d Focal length f 30 K. Grauman

Thin lens equation 1 f 1 u 1 v u v Any object point satisfying this equation is in focus 31 K. Grauman

Focus and depth of field Image credit: cambridgeincolour.com 32

Focus and depth of field Depth of field: distance between image planes where blur is tolerable Thin lens: scene points at distinct depths come in focus at different image planes. (Real camera lens systems have greater depth of field.) circles of confusion Shapiro and Stockman 33

Focus and depth of field How does the aperture affect the depth of field? A smaller aperture increases the range in which the object is approximately in focus Flower images from Wikipedia http://en.wikipedia.org/wiki/depth_of_field Slide from S. Seitz 34

Depth from focus Images from same point of view, different camera parameters 3d shape / depth estimates 35 [figs from H. Jin and P. Favaro, 2002]

Field of view Angular measure of portion of 3d space seen by the camera Images from http://en.wikipedia.org/wiki/angle_of_view 36 K. Grauman

Field of view depends on focal length As f gets smaller, image becomes more wide angle more world points project onto the finite image plane As f gets larger, image becomes more telescopic smaller part of the world projects onto the finite image plane from R. Duraiswami 37

Field of view depends on focal length Smaller FOV = larger Focal Length 38 Slide by A. Efros

Vignetting http://www.ptgui.com/examples/vigntutorial.html http://www.tlucretius.net/photo/eholga.html 39

Vignetting natural : Fundamental radiometric relation between the scene radiance L and the light (irradiance) E reaching the pixel sensor: 40

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. 41

Photometric Image Formation A simplified model of photometric image formation. Light is emitted by one or more light sources and is then reflected from an object s surface. A portion of this light is directed towards the camera. This simplified model ignores multiple reflections, which often occur in real-world scenes. 42

BRDF (Bidirectional Reflectance Distribution Function) 43

Diffuse / Lambertian Shading equation for diffuse reflection : 44

Foreshortening 45

Specular reflection 46

Phong Diffuse+specular+ambient: 47

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. 48

Digital cameras Film sensor array Often an array of charge coupled devices Each CCD is light sensitive diode that converts photons (light energy) to electrons CCD array camera optics frame grabber computer 49 K. Grauman

Image sensing pipeline 50

Digital Sensors 51

Resolution sensor: size of real world scene element a that images to a single pixel image: number of pixels Influences what analysis is feasible, affects best representation choice. [fig from Mori et al] 52

Digital images Think of images as matrices taken from CCD array. 53 K. Grauman

Color sensing in digital cameras Bayer grid Estimate missing components from neighboring values (demosaicing) 54 Source: Steve Seitz

Color images, RGB color space R G B Much more on color in next lecture 55 K. Grauman

Summary Geometric projection models Optical issues Photometric models Image sensing in digital camera 56