Computer Vision Cameras, lenses and sensors Cosimo Distante Introduction to Image Processing Image.

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

776 Computer Vision Jan-Michael Frahm, Enrique Dunn Spring 2013.
Digital Camera Essential Elements Part 1 Sept
Algorithms and Applications in Computer Vision Lihi Zelnik-Manor
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.
Cameras. Overview The pinhole projection model Qualitative properties Perspective projection matrix Cameras with lenses Depth of focus Field of view Lens.
Advanced Computer Vision Cameras, Lenses and Sensors.
Cameras (Reading: Chapter 1) Goal: understand how images are formed Camera obscura dates from 15 th century Basic abstraction is the pinhole camera Perspective.
Computer Vision Cameras, lenses and sensors Marc Pollefeys COMP 256.
Image Formation and Optics
Announcements. Projection Today’s Readings Nalwa 2.1.
Imaging Real worldOpicsSensor Acknowledgment: some figures by B. Curless, E. Hecht, W.J. Smith, B.K.P. Horn, and A. Theuwissen.
Announcements Mailing list (you should have received messages) Project 1 additional test sequences online Talk today on “Lightfield photography” by Ren.
Lecture 5: Cameras and Projection CS6670: Computer Vision Noah Snavely.
Computer Vision - A Modern Approach
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.
Sebastian Thrun & Jana Kosecka CS223B Computer Vision, Winter 2007 Stanford CS223B Computer Vision, Winter 2006 Lecture 2: Lenses and Vision Software.
Lecture 4a: Cameras CS6670: Computer Vision Noah Snavely Source: S. Lazebnik.
1 CS 223-B Lecture 1 Sebastian Thrun Gary Bradski CORNEA AQUEOUS HUMOR.
Today: The Camera. Overview The pinhole projection model Qualitative properties Perspective projection matrix Cameras with lenses Depth of focus Field.
Image Formation III Chapter 1 (Forsyth&Ponce) Cameras “Lenses”
The Camera : Computational Photography Alexei Efros, CMU, Fall 2008.
Ch 25 1 Chapter 25 Optical Instruments © 2006, B.J. Lieb Some figures electronically reproduced by permission of Pearson Education, Inc., Upper Saddle.
Image formation and cameras
Perspective projection
Cameras CSE 455, Winter 2010 January 25, 2010.
Basic Principles of Imaging and Photometry Lecture #2 Thanks to Shree Nayar, Ravi Ramamoorthi, Pat Hanrahan.
Building a Real Camera.
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?
Design of photographic lens Shinsaku Hiura Osaka University.
1 CS6825: Image Formation How are images created. How are images created.
776 Computer Vision Jan-Michael Frahm Fall Camera.
776 Computer Vision Jan-Michael Frahm Spring 2012.
COMPUTER VISION D10K-7C02 CV02: Camera Dr. Setiawan Hadi, M.Sc.CS. Program Studi S-1 Teknik Informatika FMIPA Universitas Padjadjaran.
Sebastian Thrun CS223B Computer Vision, Winter Stanford CS223B Computer Vision, Winter 2005 Lecture 2 Lenses and Camera Calibration Sebastian Thrun,
1 Computer Vision 一目 了然 一目 了然 一看 便知 一看 便知 眼睛 頭腦 眼睛 頭腦 Computer = Image + Artificial Vision Processing Intelligence Vision Processing Intelligence.
Image Formation Dr. Chang Shu COMP 4900C Winter 2008.
Geometrical Optics Chapter 24 + Other Tidbits 1. On and on and on …  This is a short week.  Schedule follows  So far, no room available for problem.
Computational Photography
776 Computer Vision Jan-Michael Frahm Fall Last class.
EECS 274 Computer Vision Cameras.
Miguel Tavares Coimbra
CSE 185 Introduction to Computer Vision Cameras. Camera models –Pinhole Perspective Projection –Affine Projection –Spherical Perspective Projection Camera.
Projection Readings Nalwa 2.1 Szeliski, Ch , 2.1
Cameras. Question: If you’re building a camera and want to make a larger image (a telephoto lens) you should: 1.increase the diameter of the lens 2.decrease.
DIGITAL CAMERAS Prof Oakes. Overview Camera history Digital Cameras/Digital Images Image Capture Image Display Frame Rate Progressive and Interlaced scans.
Human Vision and Cameras CS 691 E Spring Outline Human vision system Human vision for computer vision Cameras and image formation Projection geometry.
Instructor: Mircea Nicolescu Lecture 3 CS 485 / 685 Computer Vision.
Image Formation and Cameras CSE 455 Linda Shapiro 1.
Cameras, lenses, and sensors 6.801/6.866 Profs. Bill Freeman and Trevor Darrell Sept. 10, 2002 Reading: Chapter 1, Forsyth & Ponce Optional: Section 2.1,
Image Formation III Chapter 1 (Forsyth&Ponce) Cameras “Lenses” Guido Gerig CS-GY 6643, Spring 2016 (slides modified from Marc Pollefeys, UNC Chapel Hill/
Announcements Project 1 grading session this Thursday 2:30-5pm, Sieg 327 –signup ASAP:signup –10 minute slot to demo your project for a TA »have your program.
Lecture 18: Cameras CS4670 / 5670: Computer Vision KavitaBala Source: S. Lazebnik.
CSE 185 Introduction to Computer Vision
PNU Machine Vision Lecture 2a: Cameras Source: S. Lazebnik.
The Camera : Computational Photography
Announcements Project 1 Project 2
CSE 185 Introduction to Computer Vision
Jan-Michael Frahm Fall 2016
EECS 274 Computer Vision Cameras.
The Camera : Computational Photography
Announcements Midterm out today Project 1 demos.
Human Vision and Cameras
Projection Readings Nalwa 2.1.
Projection Readings Szeliski 2.1.
Announcements Midterm out today Project 1 demos.
The Camera.
Presentation transcript:

Computer Vision Cameras, lenses and sensors Cosimo Distante Introduction to Image Processing Image Processing

Image Processing Camera Models – Pinhole Perspective Projection Camera with Lenses Sensing The Human Eye Cameras, lenses and sensors

Image Processing Images are two-dimensional patterns of brightness values. They are formed by the projection of 3D objects. Figure from US Navy Manual of Basic Optics and Optical Instruments, prepared by Bureau of Naval Personnel. Reprinted by Dover Publications, Inc., 1969.

Image Processing Animal eye: a looonnng time ago. Pinhole perspective projection: Brunelleschi, XV th Century. Camera obscura: XVI th Century. Photographic camera: Niepce, 1816.

Image Processing Pinhole model

Image Processing Distant objects appear smaller

Image Processing Parallel lines meet vanishing point

Image Processing Vanishing points VPL VPR H VP 1 VP 2 VP 3 To different directions correspond different vanishing points

Image Processing Geometric properties of projection Points go to points Lines go to lines Planes go to whole image or half-plane Polygons go to polygons Degenerate cases: –line through focal point yields point –plane through focal point yields line

Image Processing Pinhole Camera Model Image plane Optical axis X Of P=(X,Z) P=(x,f)X xZ

Image Processing Pinhole Camera Model Image plane Optical axis Y Of P=(Y,Z) P=(y,f)Y yZ

Image Processing Pinhole Perspective Equation Focal length Camera frame Scene / world points Optical axis Image plane

Image Processing Affine projection models: Weak perspective projection is the magnification. When the scene relief is small compared its distance from the Camera, m can be taken constant: weak perspective projection.

Image Processing Affine projection models: Orthographic projection When the camera is at a (roughly constant) distance from the scene, take m=1.

Image Processing Planar pinhole perspective Orthographic projection Spherical pinhole perspective

Image Processing Limits for pinhole cameras

Image Processing Limits for pinhole cameras

Image Processing Camera obscura + lens 

Image Processing Lenses Snell ’ s law n 1 sin  1 = n 2 sin  2 Descartes ’ law

Image Processing Paraxial (or first-order) optics Snell ’ s law: n 1 sin  1 = n 2 sin  2 Small angles: n 1  1  n 2  2

Image Processing Thin Lenses spherical lens surfaces; incoming light  parallel to axis; thickness << radii; same refractive index on both sides

Image Processing Thin Lenses

Image Processing Field of view

Parameters of an optical system. Two parameters characterize an optical system focal lenght f focal lenght f Diameter D Diameter D that determines the amount of light hitting the image plane focal point F optical center (Center Of Projection)

Parameters of an optical system. Relative Aperture Relative Aperture is the ratio D/f Its inverse is named diaphragm aperture a, defined as: a = f/D f/# The diaphragm is a mechanism to limit the amount of light throug the optical system and reaching the imag plane where photosensors are deposited (i.e CCD sensor) The diaphragm is composed of many lamellae hinged on a ring which rotate in a synchronized manner by varying the size of the circular opening, thus limiting the passage of light Diaphragm F

Parameters of an optical system. Aperture scale varies with square of first value is 1 Other values are 1.4, 2, 2.8, 4, 5.6, 8, 11, 16, 32, 45, 60, … Normally an optical system is dinamically configured to project the right amount of light, by compensating with the exposure time

Parameters of an optical system. 35mm set at f/ 11, Aperture varies from f/ 2.0 to f/ 22

Parameters of an optical system.

Lens field of view computation Lens choise depend on the wanted acquired scene. Per le telecamere con CCD 1/4” Focal lenght (mm) = Target distance (m.) x 3,6 : width (m.) Per tutte le altre telecamere con CCD 1/3" Focal lenght (mm) = Target distance (m.) x 4,8 : width (m.)

Focus and depth of field. Changing the aperture size affects depth of field A smaller aperture increases the range in which the object is approximately in focus f / 5.6 f / 32 Flower images from Wikipedia

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

Field of view Angular measure of portion of 3d space seen by the camera Images from K. Grauman

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 Field of view depends on focal length from R. Duraiswami

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

Vignetting

Vignetting “natural”: “mechanical”: intrusion on optical path

Chromatic aberration

Image Processing Deviations from the lens model 3 assumptions : 1. all rays from a point are focused onto 1 image point 2. all image points in a single plane 3. magnification is constant deviations from this ideal are aberrations 

Image Processing Aberrations chromatic : refractive index function of wavelength 2 types : 1. geometrical 2. chromatic geometrical : small for paraxial rays  study through 3 rd order optics

Image Processing Geometrical aberrations q spherical aberration q astigmatism q distortion q coma aberrations are reduced by combining lenses 

Image Processing Spherical aberration rays parallel to the axis do not converge outer portions of the lens yield smaller focal lenghts 

Image Processing Astigmatism Different focal length for inclined rays

Image Processing Distortion magnification/focal length different for different angles of inclination Can be corrected! (if parameters are know) pincushion (tele-photo) barrel (wide-angle)

Image Processing Coma point off the axis depicted as comet shaped blob

Image Processing Chromatic aberration rays of different wavelengths focused in different planes cannot be removed completely sometimes achromatization is achieved for more than 2 wavelengths 

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 camera CCD array optics frame grabber computer K. Grauman

Historical context Pinhole model: Mozi ( BCE), Aristotle ( BCE) Principles of optics (including lenses): Alhacen ( CE) Camera obscura: Leonardo da Vinci ( ), Johann Zahn ( ) First photo: Joseph Nicephore Niepce (1822) Daguerréotypes (1839) Photographic film (Eastman, 1889) Cinema (Lumière Brothers, 1895) Color Photography (Lumière Brothers, 1908) Television (Baird, Farnsworth, Zworykin, 1920s) First consumer camera with CCD: Sony Mavica (1981) First fully digital camera: Kodak DCS100 (1990) Niepce, “La Table Servie,” 1822 CCD chip Alhacen’s notes Slide credit: L. Lazebnik K. Grauman

Digital Sensors

Image Processing CCD vs. CMOS Mature technology Specific technology High production cost High power consumption Higher fill rate Blooming Sequential readout Recent technology Standard IC technology Cheap Low power Less sensitive Per pixel amplification Random pixel access Smart pixels On chip integration with other components

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]

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

im[176][201] has value 164 im[194][203] has value 37 width 520 j=1 500 height i=1 Intensity : [0,255] Digital images K. Grauman

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

Filter mosaic Coat filter directly on sensor Demosaicing (obtain full colour & full resolution image)

new color CMOS sensor Foveon ’ s X3 better image quality smarter pixels

RG B Color images, RGB color space K. Grauman Much more on color in next lecture…

Issues with digital cameras Noise –big difference between consumer vs. SLR-style cameras –low light is where you most notice noisenoise Compression –creates artifacts except in uncompressed formats (tiff, raw)artifacts Color –color fringing artifacts from Bayer patternscolor fringing Bayer patterns Blooming –charge overflowing into neighboring pixelsoverflowing In-camera processing –oversharpening can produce haloshalos Interlaced vs. progressive scan video –even/odd rows from different exposureseven/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.,

Image Processing Other Cameras: Line Scan Cameras Line scanner The active element is 1-dimensional Usually employed for inspection They require to have very intense light due to small integration time (from100msec to 1msec)

Image Processing The Human Eye Helmoltz ’ s Schematic Eye Reproduced by permission, the American Society of Photogrammetry and Remote Sensing. A.L. Nowicki, “ Stereoscopy. ” Manual of Photogrammetry, Thompson, Radlinski, and Speert (eds.), third edition, 1966.

Image Processing The distribution of rods and cones across the retina Reprinted from Foundations of Vision, by B. Wandell, Sinauer Associates, Inc., (1995).  1995 Sinauer Associates, Inc. Cones in the fovea Rods and cones in the periphery Reprinted from Foundations of Vision, by B. Wandell, Sinauer Associates, Inc., (1995).  1995 Sinauer Associates, Inc.