Lighting. Camera s sensor. Lambertian Surface BRDF

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

Color to Binary Vision. The assignment Irfanview: A good utility Two parts: More challenging (Extra Credit) Lighting.

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

Announcements. The principle of trichromacy. Color Matching Functions. The appearance of colors

Analysis of Binary Images

Announcements. Analysis of Binary Images. Color Reflectance

Color Matching Functions. The principle of trichromacy. CIE xyy (Chromaticity Space) Color spaces. Intro Computer Vision. CSE 152 Lecture 7`

Announcements. Rotation. Camera Calibration

Color. Reading: Optional reading: Chapter 6, Forsyth & Ponce. Chapter 4 of Wandell, Foundations of Vision, Sinauer, 1995 has a good treatment of this.

CSE 152 Lecture 7` Intro Computer Vision

CSE 152 Lecture 7. Intro Computer Vision

Why does a visual system need color? Color. Why does a visual system need color? (an incomplete list ) Lecture outline. Reading: Optional reading:

ECE-161C Color. Nuno Vasconcelos ECE Department, UCSD (with thanks to David Forsyth)

Lecture 1 Image Formation.

Announcements. Binary Image Processing. Binary System Summary. Histogram-based Segmentation. How do we select a Threshold?

Colour Reading: Chapter 6. Black body radiators

Reading. 2. Color. Emission spectra. The radiant energy spectrum. Watt, Chapter 15.

Spectral Color and Radiometry

Announcements. Photometric Stereo. Shading reveals 3-D surface geometry. Photometric Stereo Rigs: One viewpoint, changing lighting

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

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

Color. Computational Photography MIT Feb. 14, 2006 Bill Freeman and Fredo Durand

Image Formation. Camera trial #1. Pinhole camera. What is an Image? Light and the EM spectrum The H.V.S. and Color Perception

Color and Shading. Color. Shapiro and Stockman, Chapter 6. Color and Machine Vision. Color and Perception

Photometric Stereo. Photometric Stereo. Shading reveals 3-D surface geometry BRDF. HW3 is assigned. An example of photometric stereo

Introduction to color science

Reflectance & Lighting

And if that 120MP Camera was cool

What is color? What do we mean by: Color of an object Color of a light Subjective color impression. Are all these notions the same?

Radiometry. Radiometry. Measuring Angle. Solid Angle. Radiance

Announcements. Radiometry and Sources, Shadows, and Shading

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

Illumination and Shading

(0, 1, 1) (0, 1, 1) (0, 1, 0) What is light? What is color? Terminology

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

Lecture 11. Color. UW CSE vision faculty

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

Fall 2015 Dr. Michael J. Reale

The Elements of Colour

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

A question from Piazza

Lecture 22: Basic Image Formation CAP 5415

Color. Phillip Otto Runge ( )

CS6670: Computer Vision

Digital Image Processing COSC 6380/4393. Lecture 19 Mar 26 th, 2019 Pranav Mantini

Causes of color. Radiometry for color

Color Vision. Spectral Distributions Various Light Sources

CS635 Spring Department of Computer Science Purdue University

1. Final Projects 2. Radiometry 3. Color. Outline

CENG 477 Introduction to Computer Graphics. Ray Tracing: Shading

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

Chapter 5 Extraction of color and texture Comunicação Visual Interactiva. image labeled by cluster index

Reading. 4. Color. Outline. The radiant energy spectrum. Suggested: w Watt (2 nd ed.), Chapter 14. Further reading:

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

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

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

Color. making some recognition problems easy. is 400nm (blue) to 700 nm (red) more; ex. X-rays, infrared, radio waves. n Used heavily in human vision

Mech 296: Vision for Robotic Applications

Binary Image Processing. Introduction to Computer Vision CSE 152 Lecture 5

2003 Steve Marschner 7 Light detection discrete approx. Cone Responses S,M,L cones have broadband spectral sensitivity This sum is very clearly a dot

The Display pipeline. The fast forward version. The Display Pipeline The order may vary somewhat. The Graphics Pipeline. To draw images.

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

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

CS5670: Computer Vision

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

Digital Image Processing. Introduction

Capturing light. Source: A. Efros

Understanding Variability

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

E (sensor) is given by; Object Size

Physics-based Methods in Vision

CG T8 Colour and Light

CS6670: Computer Vision

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

Lecture 7 - Path Tracing

Lecture 12 Color model and color image processing

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

Lecture #2: Color and Linear Algebra pt.1

Announcements. Light. Properties of light. Light. Project status reports on Wednesday. Readings. Today. Readings Szeliski, 2.2, 2.3.

CS4670: Computer Vision

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

Lecture 16 Color. October 20, 2016

Light. Properties of light. What is light? Today What is light? How do we measure it? How does light propagate? How does light interact with matter?

Computer Vision. The image formation process

Measuring Light: Radiometry and Photometry

Electromagnetic waves and power spectrum. Rays. Rays. CS348B Lecture 4 Pat Hanrahan, Spring 2002

Computer Graphics. Bing-Yu Chen National Taiwan University The University of Tokyo

Light Transport Baoquan Chen 2017

Visualisatie BMT. Rendering. Arjan Kok

CMSC 828D: Fundamentals of Computer Vision Homework 2

CSE 167: Lecture #6: Color. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2012

Image Formation. Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico

4. A bulb has a luminous flux of 2400 lm. What is the luminous intensity of the bulb?

Color, Edge and Texture

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

Radiometry and reflectance

x ~ Hemispheric Lighting

Measuring Light: Radiometry and Cameras

Measuring Light: Radiometry and Photometry

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

Transcription:

Lighting Introduction to Computer Vision CSE 152 Lecture 6 Special light sources Point sources Distant point sources Strip sources Area sources Common to think of lighting at infinity (a function on the sphere, a 2-D space) Completely arbitrary lighting can be represented as a function on the 4-D ray space (radiances) Radiance Irradiance Power traveling at some point How much light is arriving at a in a specified direction, per unit surface? area perpendicular to the Irradiance -- power per unit area: direction of travel, per unit solid angle Units: watts per square meter per steradian : w/(m 2 sr 1 ) θ (θ, φ) dω W/cm 2 Total power arriving at the surface is given by adding irradiance over all incoming angles Camera s sensor Measured pixel intensity is a function of irradiance integrated over pixel s area over a range of wavelengths For some time x da x Bi-directional Reflectance Distribution Function ρ(θ in, φ in ; θ out, φ out ) Function of Incoming light direction: θ in, φ in Outgoing light direction: θ out, φ out Ratio of incident irradiance to emitted radiance BRDF (θ in,φ in ) ^ n (θ out,φ out ) Without shadows Lambertian Surface E(u,v) [ Important: We ll use this a lot ] ^ n At image location (u,v), the intensity of a pixel x(u,v) is: E(u,v) = [a(u,v) ^ n(u,v)] [s 0 ^ s ] where a(u,v) is the albedo of the surface projecting to (u,v). n(u,v) is the direction of the surface normal. s 0 is the light source intensity. ^ s is the direction to the light source. ^ s. a 1

Color Cameras Eye: Three types of Cones Cameras: 1. Prism (with 3 sensors) 2. Filter mosaic 3. Filter wheel The appearance of colors Color appearance is strongly affected by (at least): Spectrum of lighting striking the retina other nearby colors (space) adaptation to previous views (time) state of mind and X3 From Foundations of Vision, Brian Wandell, 1995, via B. Freeman slides 2

Color Afterimage: South African Flag opponent colors Blue -> yellow Red -> green Light Spectrum Color Reflectance Illumination Spectra Measured color spectrum is a function of the spectrum of the illumination and reflectance Blue skylight From Foundations of Vision, Brian Wandell, 1995, via B. Freeman slides Tungsten bulb From Foundations of Vision, Brian Wandell, 1995, via B. Freeman slides 3

Color Matching Not on a computer Screen slide Intro from Computer T. Darrel Vision slide Intro from Computer T. Darrel Vision slide Intro from Computer T. Darrel Vision slide Intro from Computer T. Darrel Vision slide Intro from Computer T. Darrel Vision 4

slideintro from T. Darrel Computer Vision slideintro from T. Darrel Computer Vision slideintro from T. Darrel Computer Vision slideintro from T. Darrel Computer Vision The principle of trichromacy Color receptors Experimental facts: Three primaries will work for most people if we allow subtractive matching Exceptional people can match with two or only one primary. This could be caused by a variety of deficiencies. Most people make the same matches. There are some anomalous trichromats, who use three primaries but make different combinations to match. Red cone Green cone Blue cone Response of k th cone = 5

Color Matching Functions Color spaces Linear color spaces describe colors as linear combinations of primaries Choice of primaries=choice of color matching functions=choice of color space Color matching functions, hence color descriptions, are all within linear transformations RGB: primaries are monochromatic, energies are 645.2nm, 526.3nm, 444.4nm. Color matching functions have negative parts -> some colors can be matched only subtractively. CIE XYZ: Color matching functions are positive everywhere, but primaries are imaginary. Usually draw x, y, where x=x/(x+y+z) y=y/(x+y+z) RGB Color Cube YIQ Model Block of colours for (r, g, b) in the range (0-1). Convenient to have an upper bound on coefficient of each primary. In practice: primaries given by monitor phosphors, lcd filters,etc. (phosphors are the materials on the face of the monitor screen that glow when struck by electrons) CIE xyy (Chromaticity Space) CIE -XYZ and x-y Used by NTSC TV standard Separates Hue & Saturation (I,Q) from Luminance (Y) 6

HSV Hexcone Hue, Saturation, Value AKA: Hue, Saturatation, Intensity (HIS) Metameric Lights (Metamers) Hexagon arises from projection of cube onto plane orthogonal to (R,G,B) = (1,1,1) Blob Tracking for Robot Control Analysis of Binary Images Basic Steps 1. Labeling pixels as foreground/background (0,1). 2. Morphological operators (sometimes) 3. Find pixels corresponding to a region 4. Compute properties of each region Histogram-based Segmentation Select threshold Create binary image: I(x,y) < T O(x,y) = 0 I(x,y) T O(x,y) = 1 [ From Octavia Camps] 7

How do we select a Threshold? Manually determine threshold experimentally. Good when lighting is stable and high contrast. Automatic thresholding P-tile method Mode method Peakiness detection Iterative algorithm P-Tile Method If the size of the object is approx. known, pick T s.t. the area under the histogram corresponds to the size of the object: [ From Octavia Camps] Mode Method Model intensity in each region R i as constant + N(0,σ i ): Example: Image with 3 regions [ From Octavia Camps] [ From Octavia Camps] Finding the peaks and valleys It is a not trivial problem: Peakiness Detection Algorithm Find the two HIGHEST LOCAL MAXIMA at a MINIMUM DISTANCE APART: g i and g j Find lowest point between them: g k Measure peakiness : min(h(g i ),H(g j ))/H(g k ) Find (g i,g j,g k ) with highest peakiness [ From Octavia Camps] [ From Octavia Camps] 8