Image Formation: Light and Shading. Introduction to Computer Vision CSE 152 Lecture 3

Similar documents
Announcements. Image Formation: Light and Shading. Photometric image formation. Geometric image formation

Announcements. Radiometry and Sources, Shadows, and Shading

Radiometry. Radiometry. Measuring Angle. Solid Angle. Radiance

And if that 120MP Camera was cool

Announcement. Lighting and Photometric Stereo. Computer Vision I. Surface Reflectance Models. Lambertian (Diffuse) Surface.

Radiometry. Reflectance & Lighting. Solid Angle. Radiance. Radiance Power is energy per unit time

A question from Piazza

Reflectance & Lighting

Announcements. Rotation. Camera Calibration

Announcements. Image Formation: Outline. Homogenous coordinates. Image Formation and Cameras (cont.)

Lecture 22: Basic Image Formation CAP 5415

Understanding Variability

Announcements. Lighting. Camera s sensor. HW1 has been posted See links on web page for readings on color. Intro Computer Vision.

Announcements. Camera Calibration. Thin Lens: Image of Point. Limits for pinhole cameras. f O Z

Mosaics, Plenoptic Function, and Light Field Rendering. Last Lecture

Capturing light. Source: A. Efros

Overview. Radiometry and Photometry. Foundations of Computer Graphics (Spring 2012)

Radiometry and reflectance

Photometric Stereo.

Paths, diffuse interreflections, caching and radiometry. D.A. Forsyth

Lighting affects appearance

Radiometry Measuring Light

Lighting affects appearance

Radiance. Radiance properties. Radiance properties. Computer Graphics (Fall 2008)

Sources, shadows and shading

INFOGR Computer Graphics. J. Bikker - April-July Lecture 10: Shading Models. Welcome!

Measuring Light: Radiometry and Cameras

Photometric Stereo. Lighting and Photometric Stereo. Computer Vision I. Last lecture in a nutshell BRDF. CSE252A Lecture 7

Global Illumination. CMPT 361 Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller

CS6670: Computer Vision

CMSC427 Shading Intro. Credit: slides from Dr. Zwicker

Global Illumination The Game of Light Transport. Jian Huang

Lights, Surfaces, and Cameras. Light sources emit photons Surfaces reflect & absorb photons Cameras measure photons

CENG 477 Introduction to Computer Graphics. Ray Tracing: Shading

Starting this chapter

Radiometry & BRDFs CS295, Spring 2017 Shuang Zhao

Measuring Light: Radiometry and Photometry

Global Illumination. CSCI 420 Computer Graphics Lecture 18. BRDFs Raytracing and Radiosity Subsurface Scattering Photon Mapping [Ch

Assignment #2. (Due date: 11/6/2012)

dq dt I = Irradiance or Light Intensity is Flux Φ per area A (W/m 2 ) Φ =

Global Illumination. Global Illumination. Direct Illumination vs. Global Illumination. Indirect Illumination. Soft Shadows.

Module 5: Video Modeling Lecture 28: Illumination model. The Lecture Contains: Diffuse and Specular Reflection. Objectives_template

CS 5625 Lec 2: Shading Models

Global Illumination. Global Illumination. Direct Illumination vs. Global Illumination. Indirect Illumination. Soft Shadows.

BRDF Computer Graphics (Spring 2008)

dq dt I = Irradiance or Light Intensity is Flux Φ per area A (W/m 2 ) Φ =

CS6670: Computer Vision

CS-184: Computer Graphics. Today. Lecture 22: Radiometry! James O Brien University of California, Berkeley! V2014-S

Global Illumination CS334. Daniel G. Aliaga Department of Computer Science Purdue University

Lecture 7 - Path Tracing

Shading / Light. Thanks to Srinivas Narasimhan, Langer-Zucker, Henrik Wann Jensen, Ravi Ramamoorthi, Hanrahan, Preetham

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

Ligh%ng and Reflectance

Radiometry. Computer Graphics CMU /15-662, Fall 2015

Measuring Light: Radiometry and Photometry

The Rendering Equation. Computer Graphics CMU /15-662

Shading & Material Appearance

Illumination and Shading - II

Reflection models and radiometry Advanced Graphics

3D Computer Vision. Photometric stereo. Prof. Didier Stricker

Lighting. Camera s sensor. Lambertian Surface BRDF

Cameras and Radiometry. Last lecture in a nutshell. Conversion Euclidean -> Homogenous -> Euclidean. Affine Camera Model. Simplified Camera Models

Radiometry (From Intro to Optics, Pedrotti 1-4) Radiometry is measurement of Emag radiation (light) Consider a small spherical source Assume a black

Introduction to Computer Vision. Week 8, Fall 2010 Instructor: Prof. Ko Nishino

CS201 Computer Vision Lect 4 - Image Formation

Introduction to Computer Vision. Introduction CMPSCI 591A/691A CMPSCI 570/670. Image Formation

CSE 681 Illumination and Phong Shading

CS5670: Computer Vision

Rendering Light Reflection Models

CS667 Lecture Notes: Radiometry

Shading. Brian Curless CSE 557 Autumn 2017

CS4670/5760: Computer Vision Kavita Bala Scott Wehrwein. Lecture 23: Photometric Stereo

Light Reflection Models

Global Illumination. Frank Dellaert Some slides by Jim Rehg, Philip Dutre

Illumination. Illumination CMSC 435/634

Sung-Eui Yoon ( 윤성의 )

2/1/10. Outline. The Radiance Equation. Light: Flux Equilibrium. Light: Radiant Power. Light: Equation. Radiance. Jan Kautz

Local vs. Global Illumination & Radiosity

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

EE Light & Image Formation

Lighting and Reflectance COS 426

Other approaches to obtaining 3D structure

Lecture 4: Reflection Models

Local Reflection Models

surface: reflectance transparency, opacity, translucency orientation illumination: location intensity wavelength point-source, diffuse source

Philpot & Philipson: Remote Sensing Fundamentals Interactions 3.1 W.D. Philpot, Cornell University, Fall 12

A Brief Overview of. Global Illumination. Thomas Larsson, Afshin Ameri Mälardalen University

rendering equation computer graphics rendering equation 2009 fabio pellacini 1

Schedule. MIT Monte-Carlo Ray Tracing. Radiosity. Review of last week? Limitations of radiosity. Radiosity

CSE 167: Lecture #7: Color and Shading. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

LIGHTING AND SHADING

MIT Monte-Carlo Ray Tracing. MIT EECS 6.837, Cutler and Durand 1

Rendering Light Reflection Models

Epipolar geometry contd.

CS770/870 Spring 2017 Radiosity

THE goal of rendering algorithms is to synthesize images of virtual scenes. Global illumination

CSE 167: Introduction to Computer Graphics Lecture #6: Lights. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2016

CS184 LECTURE RADIOMETRY. Kevin Wu November 10, Material HEAVILY adapted from James O'Brien, Brandon Wang, Fu-Chung Huang, and Aayush Dawra

The Rendering Equation. Computer Graphics CMU /15-662, Fall 2016

Shading. Reading. Pinhole camera. Basic 3D graphics. Brian Curless CSE 557 Fall Required: Shirley, Chapter 10

Transcription:

Image Formation: Light and Shading CSE 152 Lecture 3

Announcements Homework 1 is due Apr 11, 11:59 PM Homework 2 will be assigned on Apr 11 Reading: Chapter 2: Light and Shading

Geometric image formation

Photometric image formation

Radiometry Solid Angle Irradiance Radiance Bidirectional Reflectance Distribution Function (BRDF)

Appearance: lighting, surface reflectance, and shading

Foreshortening The surface is foreshortened by the cosine of the angle between the normal and direction to the light.

A local coordinate system on a surface Consider a point P on the surface Light arrives at P from a hemisphere of directions defined by the surface normal N We can define a local coordinate system whose origin is P and with one axis aligned with N Convenient to represent in spherical angles. N P

Measuring Angle The solid angle subtended by an object from a point P is the area of the projection of the object onto the unit sphere centered at P. Definition is analogous to projected angle in 2D Measured in steradians, sr If I m at P, and I look out, solid angle tells me how much of my view is filled with an object

Solid Angle By analogy with angle (in radians), the solid angle subtended by a region at a point is the area projected on a unit sphere centered at that point The solid angle subtended by a patch area da is given by d dacos 2 r

Radiance Power is energy per unit time (watts) Radiance: Power traveling at some point in a specified direction, per unit area perpendicular to the direction of travel, per unit solid angle d x da Symbol: L(x Units: watts per square meter per steradian : W/m 2 /sr = W m -2 sr -1 L P (dacos )d Power emitted from patch, but radiance in direction different from surface normal

Irradiance How much light is arriving at a surface? Units of irradiance: W/m 2 = W m -2 This is a function of incoming angle. A surface experiencing radiance L(x ) coming in from solid angle d experiences irradiance: E( x) L x,, cos d Crucial property: Total Irradiance arriving at the surface is given by adding irradiance over all incoming angles Total irradiance is 2 /2 0 L 0 hemisphere L x,, cos d x,, cos sin d d L(x, x N x

Camera s sensor Measured pixel intensity is a function of irradiance integrated over pixel s area over a range of wavelengths for some period of time I E( x, y,, t) s( x, y) q( ) dydxd t x y dt

Light at surfaces Many effects when light strikes a surface -- could be: transmitted Skin, glass reflected mirror scattered milk travel along the surface and leave at some other point absorbed sweaty skin Assume that surfaces don t fluoresce e.g., scorpions, detergents surfaces don t emit light (i.e., are cool) all the light leaving a point is due to that arriving at that point

Surface Reflectance Models Lambertian Phong Physics-based Specular [Blinn 1977], [Cook-Torrance 1982], [Ward 1992] Diffuse [Hanrahan, Kreuger 1993] Generalized Lambertian [Oren, Nayar 1995] Thoroughly Pitted Surfaces [Koenderink et al 1999] Phenomenological [Koenderink, Van Doorn 1996] Common Models Arbitrary Reflectance Non-parametric model Anisotropic Non-uniform over surface BRDF Measurement [Dana et al, 1999], [Marschner ] Specialized Hair, skin, threads, paper [Jensen et al]

Lambertian (Diffuse) Surface BRDF is a constant called the albedo. x; in, in ; out, out K Emitted radiance is NOT a function of outgoing direction i.e., constant in all directions. For lighting coming in single direction, emitted radiance is proportional to cosine of the angle between normal and light direction L r = KN.

Specular Reflection: Smooth Surface N

Non-Lambertian reflectance

General BRDF: e.g. Velvet Portrait of Sir Thomas Morre, Hans Holbein the Younger, 1527 [ After Koenderink et al, 1998 ]

With assumptions in previous slide Bi-directional Reflectance Distribution Function ( in, in ; out, out ) BRDF Ratio of emitted radiance to incident irradiance (units: sr -1 ) ( in, in ) ^n Function of Incoming light direction: in, in Outgoing light direction: out, out x;, ;, in in out out L i L o x; out, out x;, cos d Where ρ is sometimes denoted f r. in in in ( out, out )

Ways to measure BRDF s

Gonioreflectometers Three degrees of freedom spread among light source, detector, and/or sample

Gonioreflectometers Three degrees of freedom spread among light source, detector, and/or sample

Isotropic BRDF From Hertzmann & Seitz, CVPR 03 Isotropic BRDF s are symmetric about the surface normal. If the surface is rotated about the normal for the same incident and emitting directions, the value of the BRDF is the same.

Anisotropic BRDF From Hertzmann & Seitz, CVPR 03

Gonioreflectometers Can add fourth degree of freedom to measure anisotropic BRDFs

Marschner s Image-Based BRDF Measurement For uniform BRDF, capture 2-D slice corresponding to variations in normals

Ward s BRDF Measurement Setup Collect reflected light with hemispherical (should be ellipsoidal) mirror [SIGGRAPH 92]

Ward s BRDF Measurement Setup Result: each image captures light at all exitant angles

Light sources and shading How bright (or what color) are objects? One more definition: Exitance of a source is the internally generated power radiated per unit area on the radiating surface Also referred to as radiant emittance Similar to irradiance Same units, W/m 2 = W m -2

Radiosity due to a point source small, distant sphere radius and exitance E, which is far away subtends solid angle of about d 2

Standard nearby point source model d x N N T x r x S 2 S x N is the surface normal is diffuse (Lambertian) albedo S is source vector - a vector from x to the source, whose length is the intensity term works because a dotproduct is basically a cosine

Standard distant point source model Issue: nearby point source gets bigger if one gets closer the sun doesn t for any reasonable meaning of closer Assume that all points in the model are close to each other with respect to the distance to the source. Then the source vector doesn t vary much, and the distance doesn t vary much either, and we can roll the constants together to get: N S d x N x S x T

Lighting at infinity Direction is a three vector s, with s = 1. Described as function on a sphere: radiance as a function of direction r(s) Single point source is a delta function at some direction Multiple point sources: sum of delta functions

Shadows cast by a point source A scene point that can t see the source is in shadow For point sources, the geometry is simple Cast Shadow Attached Shadow

Shading models Local shading model Surface has incident radiance due only to sources visible at each point Advantages: often easy to manipulate, expressions easy supports quite simple theories of how shape information can be extracted from shading Used in vision & real time graphics Global shading model surface radiosity is due to radiance reflected from other surfaces as well as from surfaces Advantages: usually very accurate Disadvantage: extremely difficult to infer anything from shading values Rarely used in vision, often in photorealistic graphics

Image sensors Two types : 1. CCD 2. CMOS

CCD Separate photo sensor at regular positions no scanning Charge-coupled devices (CCDs) interline transfer and frame transfer photosensitive storage

CMOS Each photo sensor has its own amplifier More noise (reduced by subtracting black image) Lower sensitivity (lower fill rate) Uses standard CMOS technology Allows other components to be put on chip Smart pixels

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

Color Cameras We consider 3 concepts: 1. Prism (with 3 sensors) 2. Filter mosaic 3. Filter wheel and X3

Prism color camera Separate light in 3 beams using dichroic prism Requires 3 sensors & precise alignment Good color separation

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

Filter wheel Rotate multiple filters in front of lens Allows more than 3 color bands Only suitable for static scenes

Prism vs. mosaic vs. wheel approach Prism Mosaic Wheel # sensors 3 1 1 Separation High Average Good Cost High Low Average Framerate High High Low Artifacts Low Aliasing Motion Bands 3 3 3 or more High-end cameras Low-end cameras Scientific applications

newer color CMOS sensor Foveon s X3 Sigma, Fujifilm better image quality smarter pixels

Digital Camera

Photometric Stereo Reading: Next Lecture Section 2.2.4: Photometric Stereo Shape from Multiple Shaded Images