Computer and Robot Vision II

Slides:



Advertisements
Similar presentations
Computer Vision Radiometry. Bahadir K. Gunturk2 Radiometry Radiometry is the part of image formation concerned with the relation among the amounts of.
Advertisements

Week 5 - Friday.  What did we talk about last time?  Quaternions  Vertex blending  Morphing  Projections.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm Lecture #12.
Capturing light Source: A. Efros. Image formation How bright is the image of a scene point?
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 21: Radiometry Many slides courtesy Pat Hanrahan.
Light Visible electromagnetic radiation Power spectrum Polarization Photon (quantum effects) Wave (interference, diffraction) From London and Upton.
CPSC 641 Computer Graphics: Radiometry and Illumination Jinxiang Chai Many slides from Pat Haranhan.
16421: Vision Sensors Lecture 6: Radiometry and Radiometric Calibration Instructor: S. Narasimhan Wean 5312, T-R 1:30pm – 2:50pm.
Basic Principles of Surface Reflectance
Radiometry. Outline What is Radiometry? Quantities Radiant energy, flux density Irradiance, Radiance Spherical coordinates, foreshortening Modeling surface.
Physically Based Illumination Models
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Material Representation K. H. Ko School of Mechatronics Gwangju Institute.
Computer Vision - A Modern Approach Set: Radiometry Slides by D.A. Forsyth Radiometry Questions: –how “bright” will surfaces be? –what is “brightness”?
Torrance Sparrow Model of Reflectance + Oren Nayar Model of Reflectance.
Capturing light Source: A. Efros. Review Pinhole projection models What are vanishing points and vanishing lines? What is orthographic projection? How.
3-D Computer Vision CSc83029 / Ioannis Stamos 3-D Computer Vision CSc Radiometry and Reflectance.
Stefano Soatto (c) UCLA Vision Lab 1 Homogeneous representation Points Vectors Transformation representation.
Image Formation1 Projection Geometry Radiometry (Image Brightness) - to be discussed later in SFS.
© 2002 by Davi GeigerComputer Vision January 2002 L1.1 Image Formation Light can change the image (and appearances). What is the relation between pixel.
Computer Graphics (Fall 2008) COMS 4160, Lecture 19: Illumination and Shading 2
Introduction to Computer Vision CS / ECE 181B Tues, May 18, 2004 Ack: Matthew Turk (slides)
Basic Principles of Surface Reflectance
© 2004 by Davi GeigerComputer Vision February 2004 L1.1 Image Formation Light can change the image and appearances (images from D. Jacobs) What is the.
Image formation 2. Blur circle A point at distance is imaged at point from the lens and so Points a t distance are brought into focus at distance Thus.
© 2003 by Davi GeigerComputer Vision September 2003 L1.1 Image Formation Light can change the image and appearances (images from D. Jacobs) What is the.
Basic Principles of Surface Reflectance Lecture #3 Thanks to Shree Nayar, Ravi Ramamoorthi, Pat Hanrahan.
Computer Graphics (Fall 2004) COMS 4160, Lecture 16: Illumination and Shading 2 Lecture includes number of slides from.
Statistical Color Models (SCM) Kyungnam Kim. Contents Introduction Trivariate Gaussian model Chromaticity models –Fixed planar chromaticity models –Zhu.
Basic Principles of Imaging and Photometry Lecture #2 Thanks to Shree Nayar, Ravi Ramamoorthi, Pat Hanrahan.
Light and shading Source: A. Efros.
Computer Vision Spring ,-685 Instructor: S. Narasimhan PH A18B T-R 10:30am – 11:50am Lecture #13.
CS 445 / 645: Introductory Computer Graphics
EECS 274 Computer Vision Light and Shading. Radiometry – measuring light Relationship between light source, surface geometry, surface properties, and.
Laws of Radiation Heat Transfer P M V Subbarao Associate Professor Mechanical Engineering Department IIT Delhi Macro Description of highly complex Wave.
Reflectance Map: Photometric Stereo and Shape from Shading
Capturing light Source: A. Efros.
Course 10 Shading. 1. Basic Concepts: Light Source: Radiance: the light energy radiated from a unit area of light source (or surface) in a unit solid.
111/17/ :21 Graphics II Global Rendering and Radiosity Session 9.
Announcements Office hours today 2:30-3:30 Graded midterms will be returned at the end of the class.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Material Representation K. H. Ko School of Mechatronics Gwangju Institute.
CSCE 641 Computer Graphics: Reflection Models Jinxiang Chai.
Chapter 38 Diffraction Patterns and Polarization.
November 4, THE REFLECTANCE MAP AND SHAPE-FROM-SHADING.
Image formation.
Shape from Shading Course web page: vision.cis.udel.edu/cv February 26, 2003  Lecture 6.
Computer and Robot Vision II Chapter 12 Illumination Presented by: 傅楸善 & 張庭瑄 指導教授 : 傅楸善 博士.
1Ellen L. Walker 3D Vision Why? The world is 3D Not all useful information is readily available in 2D Why so hard? “Inverse problem”: one image = many.
Computer and Robot Vision II Chapter 12 Illumination Presented by: 傅楸善 & 周奕宏 指導教授 : 傅楸善 博士.
CS552: Computer Graphics Lecture 33: Illumination and Shading.
EECS 274 Computer Vision Sources, Shadows, and Shading.
Light & Optics. Electromagnetic Waves Electromagnetic waves include: light, radio, microwaves, x-rays, gamma rays, ultra-violet, and infrared radiation.
1 Ch. 4: Radiometry–Measuring Light Preview 。 The intensity of an image reflects the brightness of a scene, which in turn is determined by (a) the amount.
Computer vision: geometric models Md. Atiqur Rahman Ahad Based on: Computer vision: models, learning and inference. ©2011 Simon J.D. Prince.
Announcements Project 3a due today Project 3b due next Friday.
CS580: Radiometry Sung-Eui Yoon ( 윤성의 ) Course URL:
Section 1 Characteristics of Light
MAN-522 Computer Vision Spring
Rendering Pipeline Fall, 2015.
CS262 – Computer Vision Lect 4 - Image Formation
Advanced Computer Graphics
Radiation Process and Properties
Radiometry (Chapter 4).
© 2002 University of Wisconsin
Capturing light Source: A. Efros.
Light and Reflection Holt Physics.
Part One: Acquisition of 3-D Data 2019/1/2 3DVIP-01.
Lecture 28: Photometric Stereo
CS 480/680 Computer Graphics Shading.
Shape from Shading and Texture
Light Waves, Mirrors and Reflection
Presentation transcript:

Computer and Robot Vision II Chapter 12 Illumination Presented by: 傅楸善 & 顏慕帆 0933 373 485 r94922113@ntu.edu.tw 指導教授: 傅楸善 博士

12.1 Introduction two key questions in understanding 3D image formation What determines where some point on object will appear on image? Answer: geometric perspective projection model What determines how bright the image of some surface on object will be? Answer: radiometry, general illumination models, diffuse and specular Answer 動畫 radiometry: 輻射能測量 DC & CV Lab. CSIE NTU

Refraction: 折射 refraction of light bouncing off a surface patch: basic reflection phenomenon

12.1 Introduction image intensity : proportional to scene radiance scene radiance depends on the amount of light that falls on a surface the fraction of the incident light that is reflected the geometry of light reflection, i.e. viewing direction and illumination directions DC & CV Lab. CSIE NTU

12.1 Introduction image intensity : incident radiance : bidirectional reflectance function : lens collection : sensor responsivity : sensor gain : sensor offset DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU

Joke DC & CV Lab. CSIE NTU

12.2 Radiometry is the measurement of the flow and transfer of radiant energy in terms of both the power emitted from or incident upon an area and the power radiated within a small solid angle about a given direction. is the measurement of optical radiation. 輻射計量學. (Radiometry). DC & CV Lab. CSIE NTU

12.2 Radiometry irradiance: radiance: radiant intensity: the amount of light falling on a surface power per unit area of radiant energy falling on a surface measured in units of watts per square meter. radiance: the amount of light emitted from a surface power per unit foreshortened area emitted into a unit solid angle measured in units of watts per square meter per steradian radiant intensity: of a point illumination source power per steradian measured in units of watts per steradian may be a function of polar and azimuth angles Irradiance: 照光 DC & CV Lab. CSIE NTU

12.2 Radiometry z-axis: along the normal to the surface element at 0 polar angle: measured from the z-axis (pointing north) azimuth angle: measured from x-axis (pointing east) DC & CV Lab. CSIE NTU

12.2 Radiometry The solid angle subtended by a surface patch is defined by the cone whose vertex is at the point of radiation and whose axis is the line segment going from the point of radiation to the center of the surface patch. DC & CV Lab. CSIE NTU

12.2 Radiometry size of solid angle: area intercepted by the cone on a unit radius sphere centered at the point of radiation solid angle: measured in steradians total solid angle about a point in space: steradians DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU

12.2 Radiometry : surface area : distance from surface area to point of radiation : angle the surface normal makes w.r.t. the cone axis DC & CV Lab. CSIE NTU

12.2 Radiometry surface irradiance : : area of surface patch : constant radiant intensity of point illumination source DC & CV Lab. CSIE NTU

law of inverse squares: irradiance varies inversely as square of distance from the illuminated surface to source

infinitesimal slice on annulus on sphere of radius r , polar angle , azimuth angle slice subtends solid angle , since

Outline:外形;輪廓 Silhouette:輪廓

12.2.1 Bidirectional Reflectance Function The bidirectional reflectance distribution function is the fraction of incident light emitted in one direction when the surface is illuminated from another direction. ratio of the scene radiance to the scene irradiance DC & CV Lab. CSIE NTU

12.2.1 Bidirectional Reflectance Function differential reflectance model: : polar angle between surface normal and lens center : azimuth angle of the sensor : emitting from : incident to : irradiance of the incident light at the illuminated surface : radiance of the reflected light : ratio of the scene radiance to the scene irradiance DC & CV Lab. CSIE NTU

12.2.1 Bidirectional Reflectance Function The differential emitted radiance in the direction due to the incident differential irradiance in the direction is equal to the incident differential irradiance times the bidirectional reflectance distribution function . DC & CV Lab. CSIE NTU

12.2.1 Bidirectional Reflectance Function For many surfaces the dependence of on the azimuth angles and is only a dependence on their difference except surfaces with oriented microstructure e.g. mineral called tiger’s eye, iridescent feathers of some birds Mineral:礦物 Iridescent: 彩虹色的 DC & CV Lab. CSIE NTU

12.2.1 Bidirectional Reflectance Function An ideal Lambertian surface is one that appears equally bright from all viewing directions and reflects all incident light absorbing none Lambertian surface: perfectly diffusing surface with matte appearance DC & CV Lab. CSIE NTU

12.2.1 Bidirectional Reflectance Function reflectivity r: unitless fraction called reflectance factor white writing paper: r = 0.68 white ceilings or yellow paper: r = 0.6 dark brown paper: r = 0.13 Blotting paper: 吸墨紙 Velvet: 1. 天鵝絨,絲絨 2. 天鵝絨裙衫 3. 鹿角上之絨毛狀皮 4. 天鵝絨似的東西 5. 【舊】【俚】意外之財 DC & CV Lab. CSIE NTU

white blotting paper: r = 0.8 dark velvet: r = 0.004 DC & CV Lab. CSIE NTU

12.2.1 Bidirectional Reflectance Function bidirectional reflectance distribution function for Lambertian surface DC & CV Lab. CSIE NTU

: irradiance, : radiance : polar angel, : azimuth angle, : reflectivity DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU

12.2.1 Bidirectional Reflectance Function differential relationship for emitted radiance for Lambertian surface Lambertian surface: consistent brightness no matter what viewing direction power radiated into a fixed solid angle: same in any direction DC & CV Lab. CSIE NTU

Example 12.1 DC & CV Lab. CSIE NTU

Joke DC & CV Lab. CSIE NTU

12.2 Photometry photometry: study of radiant light energy resulting in physical sensation brightness: attribute of sensation by which observer aware of differences of observed radiant energy radiometry radiant energy photometry luminous energy radiometry power( radiant flux ) photometry luminous flux Luminous: a. 1. 發光的;夜光的;光輝的 2. 照亮了的 3. 清楚的,明白易懂的 4. 有見識的 Flux n. 1. 流出 2. 漲潮 3. 變遷 4. 【物】通量 5. 【化】助熔劑 vt. 1. 使成流體;使熔化 2. 使出血 vi. 1. 變成流體;熔化 DC & CV Lab. CSIE NTU

On Internet Photometry: is the science of measuring visible light in units that are weighted according to the sensitivity of the human eye. DC & CV Lab. CSIE NTU

12.2 Photometry lumen: unit of luminous flux luminous intensity: ( w.r.t. radiance intensity ) luminous flux leaving point source per unit solid angle has units of lumens per steradian candela: one lumen per steradian illuminance: ( w.r.t. irradiance ) luminous flux per unit area incident upon a surface in units of lumens per square meter one lux: one lumen per square meter foot-candle: one lumen per square foot DC & CV Lab. CSIE NTU

12.2 Photometry one foot =0.3048 meter 1 lux = foot - candles = 10.76 foot - candles luminance: ( w.r.t. radiance ) luminous flux per unit solid angle per unit of projected area in units of lumens per square meter per steradian DC & CV Lab. CSIE NTU

12.2.3 Torrance-Sparrow Model : diffuse reflection from Lambertian surface facets : specular reflection from mirrorlike surface facets dependent on the view point whereas is not : reflected light from roughened surface consider surfaces: DC & CV Lab. CSIE NTU

Torrance-Sparrow model: : proportion of specular reflection depending on surface : wavelength of light DC & CV Lab. CSIE NTU

: unit positional vector of the light source : unit surface normal : unit positional vector of the light source : unit positional vector of the sensor DC & CV Lab. CSIE NTU

12.2.4 Lens Collection lens collection: portion of reflected light coming through lens to film : distance between the image plane and the lens : distance between the object and the lens : distance between the lens and the image of the object : diameter of the lens : angle between the ray from the object patch to the lens center DC & CV Lab. CSIE NTU

12.2.4 Lens Collection irradiance incident on differential area coming from differential area , having radiance , and passing through a lens having aperture area : foreshortened area of aperture stop seen by : distance from to the aperture DC & CV Lab. CSIE NTU

12.2.4 Lens Collection solid angle subtended by aperture stop as seen from : differential radiant power passing through aperture due to DC & CV Lab. CSIE NTU

12.2.4 Lens Collection radiant power passing through aperture from irradiance incident to : (radiant power reaching is ) DC & CV Lab. CSIE NTU

12.2.4 Lens Collection assume , then , thus lens magnification is hence , therefore DC & CV Lab. CSIE NTU

12.2.4 Lens Collection since then the lens collection C is given by DC & CV Lab. CSIE NTU

12.2.5 Image Intensity The image intensity gray level I associated with some small area of the image plane can then be represented as the integral of all light collected at the given pixel position coming from the observed surface patch, modified by sensor gain g and bias b DC & CV Lab. CSIE NTU

12.2.5 Image Intensity : light wavelength : sensor responsivity to light at wavelength : radiance of observed surface patch : solid angle subtended by the viewing cone of camera for the pixel : distance to the observed patch : power received for the pixel position DC & CV Lab. CSIE NTU

12.3 Photometric Stereo In photometric stereo there is one camera but K light sources having known intensities and incident vectors to a given surface patch. In photometric stereo the camera sees the surface patch K times, one time when each light source is activated and the remaining ones are deactivated. DC & CV Lab. CSIE NTU

12.3 Photometric Stereo : observed gray levels produced by the model of Lambertian reflectance n: surface normal vector of the surface patch having Lambertian reflectance r: reflectivity of the Lambertian surface reflectance g: sensor gain b: sensor offset DC & CV Lab. CSIE NTU

12.3 Photometric Stereo if camera has been photometrically calibrated, g, b known let and in matrix form DC & CV Lab. CSIE NTU

12.3 Photometric Stereo if surface normal n known then least-squares solution for reflectivity r: if K = 3 a solution for unit surface normal n: DC & CV Lab. CSIE NTU

12.3 Photometric Stereo if K > 3, a least-squares solution: DC & CV Lab. CSIE NTU

12.3 Photometric Stereo if g, b unknown camera must be calibrated as follows: geometric setup with known incident angle of light source to surface normal surfaces of known reflectivities illuminated by known intensity light source DC & CV Lab. CSIE NTU

12.3 Photometric Stereo : known intensity of light source for kth trial : known incident direction of light source for kth trial : known unit length surface normal vector : known reflectivity of surface illuminated for kth trial : observed value from the camera DC & CV Lab. CSIE NTU

12.3 Photometric Stereo let then unknown gain g and offset b satisfy DC & CV Lab. CSIE NTU

12.3 Photometric Stereo this leads to the least-squares solution for DC & CV Lab. CSIE NTU

Joke DC & CV Lab. CSIE NTU

12.4 Shape from Shading nonplanar Lambertian surfaces of constant reflectance factor: appear shaded this shading: secondary clue to shape of the observed surface shape from shading: recovers shape of Lambertian surface from image shading DC & CV Lab. CSIE NTU

12.4 Shape from Shading : unit vector of distant point light source direction assume surface viewed by distant camera so perspective projection approximated by orthographic projection surface point position : projected to image position : surface expression DC & CV Lab. CSIE NTU

12.4 Shape from Shading unit vector normal to the surface at : DC & CV Lab. CSIE NTU

12.4 Shape from Shading gray level at , within multiplicative constant Where and Reflectance:反射比 反射係數 如果是 planar 代表 p,q=constant : reflectance map DC & CV Lab. CSIE NTU

12.4 Shape from Shading : penalty constant relaxation method: minimizing original error and a smoothness term criterion function to be minimized by choice of p, q DC & CV Lab. CSIE NTU

Horn Robot Vision Fig 10.19 two orthographic shaded view of the same surface caption DC & CV Lab. CSIE NTU

Horn Robot Vision Fig 10.18 a block diagram of Dent de Morcles region in southwestern Switzerland DC & CV Lab. CSIE NTU

12.4 Shape from Shading uniform brightness if planar surfaces since , constant surfaces with curvature: surfaces with , provide information about surface height first-order Taylor expression for g: DC & CV Lab. CSIE NTU

12.4 Shape from Shading with boundary conditions on , we can solve unknown surface height and partial derivatives , DC & CV Lab. CSIE NTU

12.4.1 Shape from Focus possible to recover shape from the shading profile of object edges basic idea: cameras do not have infinite depth of field The degree to which edges may be defocused is related to how far the 3D edge is away from the depths at which the edges are sharply in focus. DC & CV Lab. CSIE NTU

Joke DC & CV Lab. CSIE NTU

12.5 Polarization illumination source characterized by four factors directionality: relative to surface normal in bidirectional reflectance intensity: energy coming out from source spectral distribution: function of wavelength polarization: time-varying vibration of light energy in certain direction DC & CV Lab. CSIE NTU

Examples DC & CV Lab. CSIE NTU

12.5 Polarization polarization: time-varying vibration of the light energy in certain direction linearly polarized: changes direction by every period circularly polarized: phase angle difference of ,thus elliptically polarized phase angle difference of and different amplitude DC & CV Lab. CSIE NTU

Mathematical Meaning of Polarization polarization of light mathematically described by using wave theory DC & CV Lab. CSIE NTU

linearly polarized DC & CV Lab. CSIE NTU

circularly polarized DC & CV Lab. CSIE NTU

Usefulness of Polarization in Machine Vision At Brewster’s angle, the parallel polarized light is totally transmitted and the perpendicularly polarized light is partially transmitted and partially reflected. DC & CV Lab. CSIE NTU

Usefulness of Polarization in Machine Vision This effect can be used to remove the specular reflections from the window or metal surfaces by looking through them at Brewster’s angle. DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU

http://www.tiffen.com/polarizer_pics.htm No Filter With Polarizer With Warm Polarizer DC & CV Lab. CSIE NTU

12.5.1 Representation of Light Using the Coherency Matrix natural light: completely unpolarized Coherency Matrix: Representation method of polarization DC & CV Lab. CSIE NTU

12.5.2 Representation of Light Intensity The intensity of any light can be represented as a sum of two intensities of two orthogonal polarization components. S-pol: component polarized perpendicularly to the incidence plane P-pol: component polarized parallel to the incidence plane DC & CV Lab. CSIE NTU

12.6 Fresnel Equation DC & CV Lab. CSIE NTU

12.7 Reflection of Polarized Light ergodic light: time average of the light equivalent to its ensemble average Ensemble n.【法】[C] 1. 整體;總效果 2. 整套服裝 3. 【音】合奏,合唱 4. 小型合奏(或合唱)團;劇團[G DC & CV Lab. CSIE NTU

12.8 A New Bidirectional Reflectance Function 用 s-pol and p-pol重新定義 BRDF DC & CV Lab. CSIE NTU

12.9 Image Intensity image intensity can be written in terms of illumination parameters sensor parameters bidirectional reflectance function DC & CV Lab. CSIE NTU

12.10 Related Work reflectance models: have been used in computer graphics and image analysis DC & CV Lab. CSIE NTU

Joke DC & CV Lab. CSIE NTU

Project due Mar. 15 use correlation to do image matching find to minimize DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU

DC & CV Lab. CSIE NTU

P.S. 1 DC & CV Lab. CSIE NTU

P.S. 2 DC & CV Lab. CSIE NTU