Computer Vision. The Pinhole Camera Model

Similar documents
Lecture 7: Camera Models

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

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

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

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

Cameras. CSE 455, Winter 2010 January 25, 2010

Unit 1: Image Formation

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

Lecture 2 Camera Models

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

Lecture 2 Camera Models

Building a Real Camera. Slides Credit: Svetlana Lazebnik

CSE 527: Introduction to Computer Vision

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

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

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

Building a Real Camera

CS6670: Computer Vision

Lecture 7: Camera Models

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

How do we see the world?

Lecture 02 Image Formation 1

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

Dr F. Cuzzolin 1. September 29, 2015

Image Processing & Projective geometry

TSBB09 Image Sensors 2018-HT2. Image Formation Part 1

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

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

LENSES. INEL 6088 Computer Vision

Lecture 8 Camera Models

Lenses. Overview. Terminology. The pinhole camera. Pinhole camera Lenses Principles of operation Limitations

Basic principles of photography. David Capel 346B IST

CS6670: Computer Vision

CS 443: Imaging and Multimedia Cameras and Lenses

Virtual and Digital Cameras

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

Overview. Image formation - 1

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

Converging Lenses. Parallel rays are brought to a focus by a converging lens (one that is thicker in the center than it is at the edge).

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

Chapter 25 Optical Instruments

Adding Realistic Camera Effects to the Computer Graphics Camera Model

Converging and Diverging Surfaces. Lenses. Converging Surface

VC 11/12 T2 Image Formation

VC 16/17 TP2 Image Formation

Chapter 36. Image Formation

VC 14/15 TP2 Image Formation

Image Formation: Camera Model

Single-view Metrology and Cameras

Assignment X Light. Reflection and refraction of light. (a) Angle of incidence (b) Angle of reflection (c) principle axis

Image Formation and Capture

Sensors and Sensing Cameras and Camera Calibration

Applications of Optics

Lecture 7: homogeneous coordinates

Lenses. A lens is any glass, plastic or transparent refractive medium with two opposite faces, and at least one of the faces must be curved.

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

Lenses, exposure, and (de)focus

There is a range of distances over which objects will be in focus; this is called the depth of field of the lens. Objects closer or farther are

LENSES. A lens is any glass, plastic or transparent refractive medium with two opposite faces, and at least one of the faces must be curved.

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

ME 6406 MACHINE VISION. Georgia Institute of Technology

ECEN 4606, UNDERGRADUATE OPTICS LAB

The eye & corrective lenses

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

Chapters 1 & 2. Definitions and applications Conceptual basis of photogrammetric processing

Image Formation. Light from distant things. Geometrical optics. Pinhole camera. Chapter 36

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

Lenses. Images. Difference between Real and Virtual Images

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

a) How big will that physical image of the cells be your camera sensor?

Lecture PowerPoint. Chapter 25 Physics: Principles with Applications, 6 th edition Giancoli

CPSC 425: Computer Vision

Optics Practice. Version #: 0. Name: Date: 07/01/2010

Cameras, lenses and sensors

Chapter 24 Geometrical Optics. Copyright 2010 Pearson Education, Inc.

Geometric Optics Practice Problems. Ray Tracing - Draw at least two principle rays and show the image created by the lens or mirror.

Introduction. Related Work

Chapter 18 Optical Elements

SNC2D PHYSICS 5/25/2013. LIGHT & GEOMETRIC OPTICS L Converging & Diverging Lenses (P ) Curved Lenses. Curved Lenses

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.

Camera Simulation. References. Photography, B. London and J. Upton Optics in Photography, R. Kingslake The Camera, The Negative, The Print, A.

Opto Engineering S.r.l.

Waves & Oscillations

Vision 1. Physical Properties of Light. Overview of Topics. Light, Optics, & The Eye Chaudhuri, Chapter 8

PHYS 160 Astronomy. When analyzing light s behavior in a mirror or lens, it is helpful to use a technique called ray tracing.

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

Fiber Optic Communications

Big League Cryogenics and Vacuum The LHC at CERN

Computational Photography and Video. Prof. Marc Pollefeys

Digital Image Processing COSC 6380/4393

Astronomical Cameras

This experiment is under development and thus we appreciate any and all comments as we design an interesting and achievable set of goals.

Light: Lenses and. Mirrors. Test Date: Name 1ÿ-ÿ. Physics. Light: Lenses and Mirrors

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

Why learn about photography in this course?

PHYS:1200 LECTURE 31 LIGHT AND OPTICS (3)

lecture 24 image capture - photography: model of image formation - image blur - camera settings (f-number, shutter speed) - exposure - camera response

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

The Optics of Mirrors

Understanding Focal Length

Transcription:

Computer Vision The Pinhole Camera Model Filippo Bergamasco (filippo.bergamasco@unive.it) http://www.dais.unive.it/~bergamasco DAIS, Ca Foscari University of Venice Academic year 2017/2018

Imaging device Let s try to build a simple imaging device Object Film/Sensor We are unable to get a reasonable image. Can you guess why?

Camera obscura Key idea: Put a barrier with a small hole (aperture) between the object and the sensor Blurring is reduced! but the aperture should be as small as possible. This is also known as pinhole camera

Camera obscura Leonardo da Vinci (1452 1519), after an extensive study of optics and human vision, wrote the oldest known clear description of the camera obscura in mirror writing in a notebook in 1502

Pinhole camera How small must the pinhole be?

Pinhole camera How small must the pinhole be? Large pinhole: Rays are mixed up -> Blurring! Small pinhole: We gain focus, but Less light passes through (long exposure time) Diffraction effect (we lost focus again!)

Pinhole camera

Cameras and Lenses Solution: Use lenses! A lens focuses light onto the film/sensor

Cameras and Lenses All parallel rays converge to one point on a plane located at the focal length f

Cameras and Lenses Unlike the ideal pinhole camera, there is a specific distance at which the objects are in focus

Cameras and Lenses Rays are deflected when passing through the lens according to the Snell s law Index of refraction

Cameras and Lenses Problem: Lens has different refractive indices for different wavelengths. Color fringing

Cameras and Lenses Problem: Imperfect lenses may cause radial distortion (deviations are most noticeable for rays passing through the edge of the lens)

Cameras and Lenses Problem: Imperfect lenses may cause radial distortion (deviations are most noticeable for rays passing through the edge of the lens)

Pinhole camera model

Pinhole camera model With the image plane behind the optical center (like in the real camera obscura) the image appears upside-down. It is common to consider a virtual image plane in front of the center of projection.

Pinhole camera model Considering similar triangles, we can derive the following:

Projection When we capture a scene with a pinhole camera, we are mapping 3D points to 2D points (onto the image plane) according to the following function: The function is not linear due to the division by z. How we can make it linear?

Projection By using homogeneous coordinates, we can express the projection with a linear mapping Projection matrix The division by z occurs only when we transform P from homogeneous coordinates to Eucliean

Projection In most cameras, pixels are arranged in a grid in which the pixel (0,0) is at the top left and not at the center. To project a 3D point in 2D pixel coordinates we need: The focal length be expressed in pixels (conversion from metric to pixels) To translate the projected point wrt. the pixel coordinates of the principal point (cx,cy)

Projection matrix

Intrinsic parameters Projection matrix Matrix of the intrinsic parameters

Camera pose What we have seen so far was under the assumption that object points were expressed in the camera reference system When dealing with multiple cameras it is common to represent points in a common world reference system

Camera pose A rotation matrix R and a translation vector T express the rigid motion from a world reference system to the camera reference system (Camera pose) 6 degrees of freedom: R and T define the extrinsic parameters

World to Camera To be projected, a point pw in the world reference system must first be transformed into the camera coordinate system In 4D homogeneous coordinates we got p = [RT ]pw

Complete projection

Lens Distortion The pinhole camera model describes the image projection as a linear operator when working in projective spaces. Lens distortion produces a non-linear displacement of points after their projection > Lines does not project to lines anymore!

Radial Distortion Usually it is a good approximation to model the lens distortion with the polynomial radial distortion model: point location in retina plane (unitary f) if the pinhole camera were perfect Distorted location in retinal plane

Radial Distortion