Part 1: 2D/3D Geometry, Colour, Illumination

Similar documents
Outline. Quantizing Intensities. Achromatic Light. Optical Illusion. Quantizing Intensities. CS 430/585 Computer Graphics I

THE NATURE OF LIGHT AND COLOR

Overview. Raster Graphics and Color. Overview. Display Hardware. Liquid Crystal Display (LCD) Cathode Ray Tube (CRT)

1. Introduction to image processing

CBIR: Colour Representation. COMPSCI.708.S1.C A/P Georgy Gimel farb

Light Waves and Matter

Computer Vision. Color image processing. 25 August 2014

Name Class Date. spectrum. White is not a color, but is a combination of all colors. Black is not a color; it is the absence of all light.

Color Management Terms

CS 325 Computer Graphics

Electromagnetic Radiation (EMR) and Remote Sensing

Science In Action 8 Unit C - Light and Optical Systems. 1.1 The Challenge of light

MAKING SENSE OF ENERGY Electromagnetic Waves

Filters for Black & White Photography

Waves Sound and Light

After a wave passes through a medium, how does the position of that medium compare to its original position?

ICC Recommendations for Color Measurement

Color and Light. DELTA SCIENCE READER Overview Before Reading Guide the Reading After Reading

How Landsat Images are Made

Digital Image Basics. Introduction. Pixels and Bitmaps. Written by Jonathan Sachs Copyright Digital Light & Color

From lowest energy to highest energy, which of the following correctly orders the different categories of electromagnetic radiation?

Computer Vision: Machine Vision Filters. Computer Vision. Optical Filters. 25 August 2014

Physical Science Study Guide Unit 7 Wave properties and behaviors, electromagnetic spectrum, Doppler Effect

Improved predictive modeling of white LEDs with accurate luminescence simulation and practical inputs

Color Part I. (The two items we can determine: a. How bright is the light is. b. What color the light is.)

Digital Color Workflows and the HP DreamColor LP2480zx Professional LCD Display

PHOTOELECTRIC EFFECT AND DUAL NATURE OF MATTER AND RADIATIONS

Experiment #5: Qualitative Absorption Spectroscopy

Overview. What is EMR? Electromagnetic Radiation (EMR) LA502 Special Studies Remote Sensing

Principle of Thermal Imaging

Green = 0,255,0 (Target Color for E.L. Gray Construction) CIELAB RGB Simulation Result for E.L. Gray Match (43,215,35) Equal Luminance Gray for Green

Chemistry 111 Lab: Intro to Spectrophotometry Page E-1

BASIC CONCEPTS OF HAIR PHYSIOLOGY AND COSMETIC HAIR DYES

AP Physics B Ch. 23 and Ch. 24 Geometric Optics and Wave Nature of Light

Today: Chapter 27 (Color) (Maybe begin Review if time)

Treasure Hunt. Lecture 2 How does Light Interact with the Environment? EMR Principles and Properties. EMR and Remote Sensing

Perception of Light and Color

STAAR Science Tutorial 30 TEK 8.8C: Electromagnetic Waves

D.S. Boyd School of Earth Sciences and Geography, Kingston University, U.K.

5. The Nature of Light. Does Light Travel Infinitely Fast? EMR Travels At Finite Speed. EMR: Electric & Magnetic Waves

Integrating the Solar Spectrum

Review Vocabulary spectrum: a range of values or properties

Colour spaces - perceptual, historical and applicational background

Spectrophotometry and the Beer-Lambert Law: An Important Analytical Technique in Chemistry

v = fλ PROGRESSIVE WAVES 1 Candidates should be able to :

Automatic and Objective Measurement of Residual Stress and Cord in Glass

Energy. Mechanical Energy

Color Balancing Techniques

Printers and graphic arts service

Preview of Period 3: Electromagnetic Waves Radiant Energy II

waves rays Consider rays of light from an object being reflected by a plane mirror (the rays are diverging): mirror object

Color quality guide. Quality menu. Color quality guide. Page 1 of 6

Theremino System Theremino Spectrometer Technology

The photoionization detector (PID) utilizes ultraviolet

Thea Omni Light. Thea Spot Light. Light setup & Optimization

Study Guide for Exam on Light

Experiment C-31 Color Absorption

1. Three-Color Light. Introduction to Three-Color Light. Chapter 1. Adding Color Pigments. Difference Between Pigments and Light. Adding Color Light

13 PRINTING MAPS. Legend (continued) Bengt Rystedt, Sweden

Light Transmission and Reflectance

Color Accurate Digital Photography of Artworks

A Proposal for OpenEXR Color Management

CALIBRATION AND OPERATION OF PANASONIC PLASMA MONITORS JULY 2009

Hello and Welcome to this presentation on LED Basics. In this presentation we will look at a few topics in semiconductor lighting such as light

UV/VIS/IR SPECTROSCOPY ANALYSIS OF NANOPARTICLES

UNIVERSITY OF LONDON GOLDSMITHS COLLEGE. B. Sc. Examination Sample CREATIVE COMPUTING. IS52020A (CC227) Creative Computing 2.

Reflection Lesson Plan

Session 15 Lighting Fundamentals

Using the Spectrophotometer

RGB Workflow Key Communication Points. Journals today are published in two primary forms: the traditional printed journal and the

A concise guide to Safety Glasses, the different standards and the effects of light on the eye. Contents. Links. Year of publication: 2010

2 Absorbing Solar Energy

Better Vision with LED lights

Blackbody radiation derivation of Planck s radiation low

THERMAL RADIATION (THERM)

Implementing ISO12646 standards for soft proofing in a standardized printing workflow

Energy Pathways in Earth s Atmosphere

Chapter 17: Light and Image Formation

Conceptual Physics Review (Chapters 25, 26, 27 & 28) Chapter 25 Describe the period of a pendulum. Describe the characteristics and properties of

A comparison between a CRT and a LCD monitors colors rendering

Introduction to Light, Color, and Shadows

Radiation Transfer in Environmental Science

The Electromagnetic Spectrum

Light Control and Efficacy using Light Guides and Diffusers

ADVANCED THEORIES FOR CG LIGHTING

GRID AND PRISM SPECTROMETERS

Fundamentals of modern UV-visible spectroscopy. Presentation Materials

Photosynthesis and Light in the Ocean Adapted from The Fluid Earth / Living Ocean Heather Spalding, UH GK-12 program

Learning about light and optics in on-line general education classes using at-home experimentation.

Optical Design Tools for Backlight Displays

Choosing a digital camera for your microscope John C. Russ, Materials Science and Engineering Dept., North Carolina State Univ.

Light and its effects

ARTIFICIAL LIGHTING lecture notes

How many PIXELS do you need? by ron gibbs

EXPERIMENT 11 UV/VIS Spectroscopy and Spectrophotometry: Spectrophotometric Analysis of Potassium Permanganate Solutions.

Three Key Paper Properties

2 Spectrophotometry and the Analysis of Riboflavin

Crystal Optics of Visible Light

Imaging Systems Laboratory II. Laboratory 4: Basic Lens Design in OSLO April 2 & 4, 2002

CONSERVATION AND LIGHTING

Transcription:

Part 1: 2D/3D Geometry, Colour, Illumination Colours Patrice Delmas and Georgy Gimel farb COMPSCI 373 Computer Graphics and Image Processing http://socks-studio.com/2013/... http://www.mutluduvar.com/... 1 / 46

1 Colours: Real and Graphical World 2 Spectral density function (SDF) 3 Interaction of Light with Materials 4 Spectral response function (SRF) 5 Human perception of light 6 Colour Spaces 7 RGB and CMYK colour spaces 8 HSL and HSV colour spaces 2 / 46

Colours in Real and Graphical World 3 / 46

Colours in Real and Graphical World 4 / 46

Electromagnetic Radiation: Waves Theories of light: 1 Waves (classical physics) 2 Particles (quantum physics) frequency ω = cycles c = 3 10 8 m sec sec ; λ ω = c; speed of light. 5 / 46

Neighbours of Visible Light 6 / 46

Spectral Density Function (SDF): S(λ) S(λ) = power / unit wavelength = energy 7 / 46

SDFs for Different Light Sources Some other light spectra: sunlight, tungsten lamp, fluorescent lamp http://www.micro.magnet.fsu.edu/optics/lightandcolor/sources.html 8 / 46

The Sun (across the electromagnetic spectrum) Low frequency IR (infrared) Visible light UV 1 (ultraviolet) UV 2 UV 3 X-ray Gamma-ray 9 / 46

Describing Colors using the SDF 10 / 46

Interaction of Light with Materials 11 / 46

Interaction of Light with Materials Light surface of some body : 3 possible results: 1 Absorption energy of selected wavelengths retains in the body. 2 Transmission energy of selected wavelengths travels through and exits the body; refraction of light occurs at boundaries. 3 Reflection an energy of selected wavelengths bounces off the surface: angle of reflection = angle of incidence. + combinations of 1 3, such as internal reflection when light enters a semitranslucent body, scatters, and some light reflects back out: human or Shreks skin... 12 / 46

Interaction of Light with Materials Incident (incoming) light energy: = Absorbed energy + Transmitted energy + Reflected energy = retained + passed through + bounced off Chemical properties of the body determine the % of each. Computer graphics: reflected (and refracted), transmitted light. 13 / 46

Spectral Response Function (SRF) Molecular structure of a body determines which wavelengths of light and what amount are absorbed, transmitted, or reflected. Can be measured with a spectral response function (SRF), or filter function. 14 / 46

SDF light source SRF = SDF result SDF of result = product of the SRF and the light-source s SDF: Multiply at each wavelength λ the SRF % times the source energy. 15 / 46

SDF SRF = SDF result Why is this relevant for computer graphics? 1 All light sources can be defined by their SDF. Natural light source: sun, fire. Artificial light source: light bulb, laser, LED, computer display. 2 All light absorbers, transmitters, or reflectors can be defined by their SRF. Sensing devices: an absorbed light SRF. Camera (digital photocell, film). Human eye (retina). Definition of colour = integral of (SDF light source SRF sensor). Glass, still water, cellophane: a transmitted light SRF. Surface material of an object: a reflected light SRF. 16 / 46

Human Perception of Light pixshark.com www.colorcube.com 17 / 46

The Eye Four types of receptors (sensors): R/G/B cones + rods, each having the unique SRF. http://webvision.med.utah.edu/imageswv/fovmoswv.jpeg http://webvision.med.utah.edu/imageswv/sagschem.jpeg 18 / 46

Colour Blindness http://members.aol.com/protanope/card2.html If you didnt see both a yellow circle and a faint brown square, you are somewhat colour blind (in the USA 5.0% of males, 0.5% of females). To find out more, visit: http://www.kcl.ac.uk/teares/gktvc/vc/lt/colourblindness/cblind.htm 19 / 46

Colours and the SDF Many different SDFs are perceived by us as the same color! When describing a colour (as seen by the eye) exactly, we do not need to know the full SDF. Three parameters are enough. For example: just use hue, luminance and saturation. 20 / 46

SRFs for the Eye and a Camera http://www.ecs.csun.edu/~dsalomon/dc2advertis/appendh.pdf http://www.stanford.edu/class/ee392b/handouts/color.pdf 21 / 46

Seeing Red, Green and Blue A cone cell in the retina measures amount of red, green, or blue wavelength energy (3 SRF s). Responds only in bright light. The SRF of a rod cell covers all wavelengths (measures grey level, or intensity). Responds in low light, but not in bright light. Integral of R, G, or B cone response produces a single value. Note: SRFs are really L, M, S (long, medium, short) wave responses, not R, G, B. Note: Low short (blue) response is scaled up by vision system (after retina). 22 / 46

Seeing Red, Green and Blue Example L, M, S responses for various SDFs. Resulting L, M, and S SRF responses are independent values. The three SRF response values are interpreted as hues by our brain, e.g., red + green = yellow, red + green + blue = white 23 / 46

Summary 1 1 Spectral Density Function (SDF): describes the wave composition of light with power for each wave length segment. 2 Spectral Response Function (SRF): can be used to specify how much % of each wave length are absorbed or reflected or transmitted. 3 Light with the different SDFs can have the same colour for our eye. References: Light and colours: Hill, Chapter 11.1 Dominant wave length: Hill, Chapter 11.2.1 24 / 46

Quiz 1 What is a spectral density function (SDF)? 2 In what ways can light interact with a material? 3 How can we describe this interaction? 4 What are hue, luminance and saturation? How many different colors? 25 / 46

Colour Spaces CIE XYZ RGB HLS http://www.hf.faa.gov/webtraining/visualdisplays/humanvissys2c5.htm 26 / 46

Colour Coordinate Space Defines 3 SRFs (colour matching functions) for some sensor. One dimension for each SRF ( tristimulus colour space). Each dimension represents a primary color P. Coordinate value = resulting SDF integral normalised to (0, 1). Colour triple: a 3D point defined by chromaticity values (c 0, c 1, c 2 ) Example: the RGB colour space (Red, Green, Blue primaries). Basis vectors: R = [1, 0, 0] T G = [0, 1, 0] T B = [0, 0, 1] T Chromaticity values: [r, g, b] T = rr + gg + bb 27 / 46

Finding Color Matching Functions Given 3 primaries A, B, C, find 3 SRFs, one for each primary. An idea: 1 Show light L with pure color of wavelength λ and brightness 1 to test persons. 2 Let them adjust another light P using chromaticity values a, b, c until L and P match. 3 Do this with the whole range of wavelengths λ and note down the a, b, c values for each λ. Problem: when using normal, visible colours as primaries, some wavelengths λ need negative chromaticity values because adding colours decreases saturation. 28 / 46

CIE XYZ Colour Space (1931) International Commission on Illumination (Commission internationale de l éclairage) Normalised standard space designed according to requirements: Standard primaries R, G, B. Only positive chromaticities. Equal chromaticities are greys. Easy conversion to brightness. Three primaries: X, Y, Z All are imaginary (not real colours). The SRFs were designed by engineers to meet above requirements. Y corresponds to brightness Conversion to RGB by matrix multiplication (linear combination of X,Y,Z = R,G,B and vice versa). 29 / 46

CIE 1931-2 Standard Observer Colour Matching Functions Tristimulus values of the spectral colours: http://en.wikipedia.org/wiki/cie_1931_color_space 30 / 46

CIE XYZ Colour Matching Functions (X, Y, Z)-coordinates of any input SDF are found by multiplying and integrating, thus defining the (X, Y, Z) colour of the SDF. 31 / 46

CIE Chromaticity Diagram: 2D Chromaticity Space Projection of the 3D XY Z space onto the 2D plane x + y + Z = 1: Looking only at colours with brightness 1. 2D coordinates (x, y): x = y = X X+Y +Z Y X+Y +Z (x, y) is the chromaticity of the colour. Increasing λ Pure spectral colours ( spike SDFs at a single λ) lie on the curve. 32 / 46

CIE Chromaticity Diagram 33 / 46

Using the CIE Chromaticity Diagram w white. e w h g f e and f complementary colours ( xe+x f 2 = x w ; ye+y f 2 = y w ). Can be combined to white. h the dominant wavelength of chromaticity g. (wg) (wh) the saturation of g. How close (in %) the chromaticity g is to its pure colour h. 34 / 46

Colour Gamut: A Subset of Colours A Device Can Represent The CIE colour space can be used to describe the colour gamut. 1 Measure maximum intensity of each device primary in CIE (use filters with SRFs =CIE SRFs). 2 Convert to the (x, y) chromaticity. 3 The 2D triangle defines possible device colours (i.e., the colour gamut). Different devices have different gamuts (colour conversion problems). 35 / 46

Additive Colour Systems Colours are mixed by adding up appropriate amounts of primaries (adding SDF spikes to black). Widely used in screens with subpixels emitting R,G,B. Cones in retina respond to light emitted by each subpixel. Brain adds the individual cone responses to produce perception of hue, luminance, and saturation. http://www.csfieldguide.org.nz/datarepresentation.html Demo program: ColorMix.exe http://www.efg2.com/lab/graphics/colors/colormix.htm 36 / 46

Subtractive Colour Systems Colours are mixed by subtracting appropriate amounts of colours from white (like using notch SRFs on white). White light is reflected or transmitted, and some wavelengths are absorbed (subtracted), e.g., coloured glass, printed images. The colours to subtract are the complements of the primaries, e.g., cyan, magenta, yellow (CMY). Cyan absorbs red. Magenta absorbs green. Yellow absorbs blue. r g b = 1 1 1 CMYK (K = black) is often used for four-colour printers. c m y 37 / 46

Troubles with RGB Difficult to use for colour design as selecting a hue is sometimes nonintuitive. E.g., what RGB combination would you use to make brown? [128, 80, 50] is a good choice. Could you figure that out? Not a good colour space for interpolating between colours. For example: 1 2 blue + 1 2 white = 1 2 magenta + 1 2 cyan = Linear interpolation between (r, g, b) chromaticities does not linearly interpolate the saturation or the luminance. 38 / 46

HSL Colour Space Hue, Saturation, Lightness. Based on transforming the RGB cube double hexcone double cone. 39 / 46

HSL Color Space 40 / 46

HSV Color Space Hue, Saturation, Value (similar to Lightness). Only a single cone: at the top all colours are the brightest. 41 / 46

Colour interpolation: RGB vs. HSL Linear interpolation between two RGB colours C 0 = [r 0, g 0, b 0 ] and C 1 = [r 1, g 1, b 1 ] in the RGB space: r(t) = r 0 + t (r 1 r 0 ) g(t) = g 0 + t (g 1 g 0 ); b(t) = b 0 + t (b 1 b 0 ); 0 t 1 Problem: Saturation and luminance are not linearly interpolated. Interpolation may correctly vary from one hue (H) to another, but the saturation (S) and luminance (L) may vary in strange ways! C 0 = [1.0, 0.8, 0.2] t = 0 t = 0.2 t = 0.4 t = 0.6 t = 0.8 t = 1.0 C 1 = [0.2, 0.0, 1.0] 42 / 46

Colour interpolation: RGB vs. HSL Linear interpolation between two HSL colours C 0 = [h 0, s 0, l 0 ] and C 1 = [h 1, s 1, l 1 ] in the HLS space: h(t) = h 0 + t(h 1 h 0 ) s(t) = s 0 + t(s 1 s 0 ); l(t) = l 0 + t(l 1 l 0 ); 0 t 1 C 0 = [1.0, 0.8, 0.2] t = 0 t = 0.2 t = 0.4 All three components (HSL) are linearly interpolated. Solution: Convert C 0 and C 1 to HLS; interpolate in HSL, convert results back to RGB. t = 0.6 t = 0.8 t = 1.0 C 1 = [0.2, 0.0, 1.0] 43 / 46

Colour interpolation: RGB vs. HSL RGB [1.0, 0.8, 0.2] HSL [1.0, 0.8, 0.2] t RGB [1.0, 0.0, 0.0] HSL [1.0, 0.0, 0.0] t = 0 t = 0.2 t = 0.4 t = 0.6 t = 0.8 t = 1.0 [0.2, 0.0, 1.0] [0.2, 0.0, 1.0] [1.0, 0.0, 0.0] [0.0, 0.0, 1.0] 44 / 46

Summary 1 Colors can be represented using a 3D colour space. 2 RGB: is easy to use for additive colour mixing, but has limited gamut. 3 CIE XYZ: can represent all visible colours. 4 HSL: makes proper linear interpolation between hue, saturation and lightness. References: Colour description: Hill, Chapter 11.2 CIE colour Model: Hill, Chapter 11.3 Other colour spaces: Hill, Chapter 11.4 45 / 46

Quiz 1 What is a colour coordinate space? 2 Name an advantage of the CIE XYZ colour model. 3 What is the disadvantage of the RGB colour model? Say the colour of the word (not the word itself) 46 / 46