TIEA311 Tietokonegrafiikan perusteet kevät 2017

Similar documents
Color. Fredo Durand Many slides by Victor Ostromoukhov. Color Vision 1

CS6640 Computational Photography. 6. Color science for digital photography Steve Marschner

Color and color constancy

Color , , Computational Photography Fall 2017, Lecture 11

Color , , Computational Photography Fall 2018, Lecture 7

Color Science. CS 4620 Lecture 15

Color and color constancy

Color Computer Vision Spring 2018, Lecture 15

Color Science. What light is. Measuring light. CS 4620 Lecture 15. Salient property is the spectral power distribution (SPD)

Comparing Sound and Light. Light and Color. More complicated light. Seeing colors. Rods and cones

COLOR. and the human response to light

Understand brightness, intensity, eye characteristics, and gamma correction, halftone technology, Understand general usage of color

Victor Ostromoukhov Université de Montréal. Victor Ostromoukhov - Université de Montréal

A World of Color. Session 4 Color Spaces. OLLI at Illinois Spring D. H. Tracy

Announcements. Electromagnetic Spectrum. The appearance of colors. Homework 4 is due Tue, Dec 6, 11:59 PM Reading:

Introduction to Computer Vision CSE 152 Lecture 18

Introduction to Color Science (Cont)

Computer Graphics Si Lu Fall /27/2016

Light. intensity wavelength. Light is electromagnetic waves Laser is light that contains only a narrow spectrum of frequencies

Lecture: Color. Juan Carlos Niebles and Ranjay Krishna Stanford AI Lab. Lecture 1 - Stanford University

SEEING. Seeing lecture 2 The retina and colour vision. Dr John S. Reid Department of Physics University of Aberdeen

Spectral colors. What is colour? 11/23/17. Colour Vision 1 - receptoral. Colour Vision I: The receptoral basis of colour vision

Images. CS 4620 Lecture Kavita Bala w/ prior instructor Steve Marschner. Cornell CS4620 Fall 2015 Lecture 38

Color II: applications in photography

Visual Imaging and the Electronic Age Color Science

PERCEIVING COLOR. Functions of Color Vision

Announcements. The appearance of colors

Color Perception. Color, What is It Good For? G Perception October 5, 2009 Maloney. perceptual organization. perceptual organization

Color II: applications in photography

12/02/2017. From light to colour spaces. Electromagnetic spectrum. Colour. Correlated colour temperature. Black body radiation.

What is Color. Color is a fundamental attribute of human visual perception.

Achim J. Lilienthal Mobile Robotics and Olfaction Lab, AASS, Örebro University

COLOR and the human response to light

Prof. Feng Liu. Winter /09/2017

Color Cameras: Three kinds of pixels

Color and Perception. CS535 Fall Daniel G. Aliaga Department of Computer Science Purdue University

University of British Columbia CPSC 314 Computer Graphics Jan-Apr Tamara Munzner. Color.

Color Image Processing. Gonzales & Woods: Chapter 6

Today. Color. Color and light. Color and light. Electromagnetic spectrum 2/7/2011. CS376 Lecture 6: Color 1. What is color?

Announcements. Color. Last time. Today: Color. Color and light. Review questions

Colour. Why/How do we perceive colours? Electromagnetic Spectrum (1: visible is very small part 2: not all colours are present in the rainbow!

Color II: applications in photography

19. Vision and color

Color vision and representation

Color II: applications in photography

Bettina Selig. Centre for Image Analysis. Swedish University of Agricultural Sciences Uppsala University

Color. Homework 1 is out. Overview of today. color. Why is color useful 2/11/2008. Due on Mon 25 th Feb. Also start looking at ideas for projects

Colour. Electromagnetic Spectrum (1: visible is very small part 2: not all colours are present in the rainbow!) Colour Lecture!

Reading for Color. Vision/Color. RGB Color. Vision/Color. University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2013.

Colour. Cunliffe & Elliott, Chapter 8 Chapman & Chapman, Digital Multimedia, Chapter 5. Autumn 2016 University of Stirling

Continued. Introduction to Computer Vision CSE 252a Lecture 11

Color. April 16 th, Yong Jae Lee UC Davis

Effective Color: Materials. Color in Information Display. What does RGB Mean? The Craft of Digital Color. RGB from Cameras.

Reading. Foley, Computer graphics, Chapter 13. Optional. Color. Brian Wandell. Foundations of Vision. Sinauer Associates, Sunderland, MA 1995.

COLOR. Elements of color. Visible spectrum. The Fovea. Lecture 3 October 30, Ingela Nyström 1. There are three types of cones, S, M and L

Colors in Images & Video

Vision and color. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell

Color April 16 th, 2015

Capturing Light in man and machine

Lecture 8. Color Image Processing

Image and video processing (EBU723U) Colour Images. Dr. Yi-Zhe Song

Digital Image Processing

To discuss. Color Science Color Models in image. Computer Graphics 2

Question From Last Class

Additive. Subtractive

Capturing Light in man and machine

Capturing Light in man and machine

CMPSCI 670: Computer Vision! Color. University of Massachusetts, Amherst September 15, 2014 Instructor: Subhransu Maji

Color. Color. Colorfull world IFT3350. Victor Ostromoukhov Université de Montréal. Victor Ostromoukhov - Université de Montréal

Capturing Light in man and machine

Colors in images. Color spaces, perception, mixing, printing, manipulating...

Colour Management Workflow

Color and Color Model. Chap. 12 Intro. to Computer Graphics, Spring 2009, Y. G. Shin

PERCEPTUALLY-ADAPTIVE COLOR ENHANCEMENT OF STILL IMAGES FOR INDIVIDUALS WITH DICHROMACY. Alexander Wong and William Bishop

Digital Image Processing COSC 6380/4393. Lecture 20 Oct 25 th, 2018 Pranav Mantini

Digital Image Processing

Digital Image Processing Color Models &Processing

SilverFast. Colour Management Tutorial. LaserSoft Imaging

Color. Bilkent University. CS554 Computer Vision Pinar Duygulu

technology meets pathology Institute of Pathology, Charité Universitätsmedizin Berlin, Berlin, Germany 3 Overview

LECTURE 07 COLORS IN IMAGES & VIDEO

Colour + Perception. CMPT 467/767 Visualization Torsten Möller. Pfister/Möller

University of British Columbia CPSC 414 Computer Graphics

Capturing Light in man and machine

What is Color? Color is a human perception (a percept). Color is not a physical property... But, it is related the the light spectrum of a stimulus.

Image Processing for Mechatronics Engineering For senior undergraduate students Academic Year 2017/2018, Winter Semester

Color. Maneesh Agrawala Jessica Hullman. CS : Visualization Fall Assignment 3: Visualization Software

Wavelengths and Colors. Ankit Mohan MAS.131/531 Fall 2009

excite the cones in the same way.

USE OF COLOR IN REMOTE SENSING

Color. Some slides are adopted from William T. Freeman

Raster Graphics. Overview קורס גרפיקה ממוחשבת 2008 סמסטר ב' What is an image? What is an image? Image Acquisition. Image display 5/19/2008.

קורס גרפיקה ממוחשבת 2008 סמסטר ב' Raster Graphics 1 חלק מהשקפים מעובדים משקפים של פרדו דוראנד, טומס פנקהאוסר ודניאל כהן-אור

Figure 1: Energy Distributions for light

CSE512 :: 6 Feb Color. Jeffrey Heer University of Washington

Human Vision, Color and Basic Image Processing

COLOR. Elements of color. Visible spectrum. The Human Visual System. The Fovea. There are three types of cones, S, M and L. r( λ)

Color. Computer Graphics CMU /15-662

S. Rinzivillo DATA VISUALIZATION AND VISUAL ANALYTICS

Color Measurement with the LSS-100P

Transcription:

TIEA311 Tietokonegrafiikan perusteet kevät 2017 ( Principles of Computer Graphics Spring 2017) Copyright and Fair Use Notice: The lecture videos of this course are made available for registered students only. Please, do not redistribute them for other purposes. Use of auxiliary copyrighted material (academic papers, industrial standards, web pages, videos, and other materials) as a part of this lecture is intended to happen under academic fair use to illustrate key points of the subject matter. The lecturer may be contacted for take-down requests or other copyright concerns (email: paavo.j.nieminen@jyu.fi).

TIEA311 Tietokonegrafiikan perusteet kevät 2017 ( Principles of Computer Graphics Spring 2017) Adapted from: Wojciech Matusik, and Frédo Durand: 6.837 Computer Graphics. Fall 2012. Massachusetts Institute of Technology: MIT OpenCourseWare, https://ocw.mit.edu/. License: Creative Commons BY-NC-SA Original license terms apply. Re-arrangement and new content copyright 2017 by Paavo Nieminen and Jarno Kansanaho Frontpage of the local course version, held during Spring 2017 at the Faculty of Information technology, University of Jyväskylä: http://users.jyu.fi/ nieminen/tgp17/

TIEA311 - Today in jyväskylä Super fast-forward! Today we rush through the MIT OCW slides about color. Notice that we ll end up with our old friend : intensities of red, green, and blue (and alpha for transparency). But the following things are worth noticing: Color and the human visual processing system is a colorful research topic on its own Even as we use RGBA in real-time graphics, we need to know at least something of why we do that True hardcore photorealistic rendering needs more than just RGBA! Some of the things touched on the slides have quite interesting connections to our top research in Jyväskylä!!

Color Wojciech Matusik MIT EECS Many slides courtesy of Victor Ostromoukhov, Leonard McMillan, Bill Freeman, Fredo Durand Image courtesy of Chevre on Wikimedia Commons. License: CC-BY-SA. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/. 1

Does color puzzle you? 2

Answer 3 It s all linear algebra

Plan 4 Spectra Cones and spectral response Color blindness and metamers Color matching Color spaces

Color Image courtesy of Zátonyi Sándor, (ifj.) Fizped on Wikimedia Commons. License: CC-BY-SA. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/. 5

Spectrum 6 Light is a wave Visible: between 450 and 700nm

Spectrum 7 Light is characterized by its spectrum: the amount of energy at each wavelength This is a full distribution: one value per wavelength (infinite number of values)

Light-Matter Interaction Where spectra come from: - light source spectrum - object reflectance (aka spectral albedo) get multiplied wavelength by wavelength There are different physical processes that explain this multiplication e.g. absorption, interferences.* = Sinauer Associates, Inc. All rights reserved. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/. Foundations of Vision, by Brian Wandell, Sinauer Assoc., 1995 8

Spectrum demo Diffraction grating: shifts light as a function of wavelength Allows you to see spectra In particular, using a slit light source, we get a nice band showing the spectrum See the effect of filters See different light source spectra Image courtesy of Cmglee on Wikimedia Commons. License: CC-BY-SA. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/. This image is in the public domain. Source: Wikimedia Commons. 9

Questions? So far, physical side of colors: spectra an infinite number of values (one per wavelength) Sinauer Associates, Inc. All rights reserved. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/. 10

Plan 11 Spectra Cones and spectral response Color blindness and metamers Color matching Color spaces

What is Color? 12 Light Object Observer

What is Color? 13 Illumination Stimulus Reflectance Cone responses

What is Color? Light Illumination Object Reflectance Final stimulus Then the cones in the eye interpret the stimulus M S L Spectral Sensibility of the L, M and S Cones 14

Cones We focus on low-level aspects of color Cones and early processing in the retina We won t talk about rods (night vision) S M L Spectral Sensibility of the L, M and S Cones This image is in the public domain. Source: Wikimedia Commons. Image courtesy of Ivo Kruusamägi on Wikimedia Commons. License: CC-BY-SA. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/ faq-fair-use/. 15

Summary (and time for questions) 16 Spectrum: infinite number of values can be multiplied can be added Light spectrum multiplied by reflectance spectrum spectrum depends on illuminant Human visual system is complicated

Cone spectral sensitivity Short, Medium and Long wavelength Response for a cone = λ stimulus(λ) * response(λ) dλ 17

Cone response Start from infinite number of values (one per wavelength) Stimulus Cone responses Multiply wavelength by wavelength End up with 3 values (one per cone type) Integrate 1 number 1 number 1 number source unknown. All rights reserved. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/. 18

For matrix lovers 19 Spectrum: big long vector size N where N= Cone response: 3xN matrix of individual responses observed spectrum cone spectral response S M L kind of RGB

Big picture It s all linear! Light multiply reflectance Stimulus Cone responses Multiply wavelength by wavelength 20 Integrate source unknown. All rights reserved. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/. 20

Big picture Light reflectance 21 It s all linear! multiply add But non-orthogonal basis infinite dimension light must be positive Depends on light source Cone responses multiply Multiply wavelength by wavelength Stimulus Integrate source unknown. All rights reserved. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.

Questions? reflectance multiply Stimulus Cone responses Multiply wavelength by wavelength Integrate 22 22

A cone does not see colors 23 Different wavelength, different intensity Same response

Response comparison 24 Different wavelength, different intensity But different response for different cones

von Helmholtz 1859: Trichromatic theory Colors as relative responses (ratios) Violet Blue Green Yellow Orange Violet Blue Green Yellow Orange Red Red Short wavelength receptors Medium wavelength receptors Receptor Responses Long wavelength receptors 400 500 600 700 Wavelengths (nm) 25

Questions? 26

Plan 27 Spectra Cones and spectral response Color blindness and metamers Color matching Color spaces

Color blindness Classical case: 1 type of cone is missing (e.g. red) Makes it impossible to distinguish some spectra differentiated Same responses 28

Color blindness more general 29 Dalton 8% male, 0.6% female Genetic Dichromate (2% male) One type of cone missing L (protanope), M (deuteranope), S (tritanope) Anomalous trichromat Shifted sensitivity

Color blindness test 30 source unknown. All rights reserved. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/. Image courtesy of Eddau processed File: Ishihara 2.svg by User:Sakurambo, with http://www.vischeck.com/vischeck/vischeckurl.php on Wikimedia Commons. License: CC-BY-SA. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.

Color blindness test Maze in subtle intensity contrast Visible only to color blinds Color contrast overrides intensity otherwise source unknown. All rights reserved. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/. 31

Questions? 32 Links: Vischeck shows you what an image looks like to someone who is colorblind. http://www.vischeck.com/vischeck/ Daltonize, changes the red/green variation to brightness and blue/yellow variations. http://www.vischeck.com/dalton http://www.vischeck.com/daltonize/rundaltonize.php

Metamers We are all color blind! These two different spectra elicit the same cone responses Called metamers source unknown. All rights reserved. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/. 33 33

Good news: color reproduction 34 3 primaries are (to a first order) enough to reproduce all colors Image courtesy of Martin Apolin on Wikimedia Commons. License: CC-BY-SA. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.

Recap 35 Spectrum: infinite number of values projected according to cone spectral response => 3 values metamers: spectra that induce the same response (physically different but look the same) Questions?

Metamerism & light source 36 Metamers under a given light source May not be metamers under a different lamp

Illuminant metamerism example Two grey patches in Billmeyer & Saltzman s book look the same under daylight but different under neon or halogen (& my camera agrees ;-) Daylight Scan (neon) source unknown. All rights reserved. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/. Hallogen 37

Bad consequence: cloth matching 38 Clothes appear to match in store (e.g. under neon) Don t match outdoor

Recap 39 Spectrum is an infinity of numbers Projected to 3D cone-response space for each cone, multiply per wavelength and integrate a.k.a. dot product Metamerism: infinite-d points projected to the same 3D point (different spectrum, same perceived color) affected by illuminant enables color reproduction with only 3 primaries

Questions? 40

Analysis & Synthesis 41 Now let s switch to technology We want to measure & reproduce color as seen by humans No need for full spectrum Only need to match up to metamerism

Analysis & Synthesis Focus on additive color synthesis We ll use 3 primaries (e.g. red green and blue) to match all colors Image courtesy of Pengo on Wikimedia Commons. License: CC-BY-SA. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/. What should those primaries be? How do we tell the amount of each primary needed to reproduce a given target color? 42

Warning Tricky thing with spectra & color: Spectrum for the stimulus / synthesis Light, monitor, reflectance Response curve for receptor /analysis Cones, camera, scanner They are usually not the same There are good reasons for this This image is in the public domain. Source: http://openclipart.org/detail/34051/digicamby-thesaurus. Image courtesy of Pengo on Wikimedia Commons. License: CC-BY-SA. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/. 43

Additive Synthesis - wrong way 44 Take a given stimulus and the corresponding responses s, m, l (here 0.5, 0, 0)

Additive Synthesis - wrong way 45 Use it to scale the cone spectra (here 0.5 * S) You don t get the same cone response! (here 0.5, 0.1, 0.1)

What s going on? 46 The three cone responses are not orthogonal i.e. they overlap and pollute each other

Fundamental problems 47 Spectra are infinite-dimensional Only positive values are allowed Cones are non-orthogonal/overlap

48 Summary Physical color Spectrum multiplication of light & reflectance spectrum Perceptual color Cone spectral response: 3 numbers Metamers: different spectrum, same responses Color matching, enables color reproduction with 3 primaries Fundamental difficulty Spectra are infinite-dimensional (full function) Projected to only 3 types of cones Cone responses overlap / they are non-orthogonal Means different primaries for analysis and synthesis Negative numbers are not physical

Questions? 49

Standard color spaces We need a principled color space Many possible definition Including cone response (LMS) Unfortunately not really used, (because not known at the time) The good news is that color vision is linear and 3-dimensional, so any new color space based on color matching can be obtained using 3x3 matrix But there are also non-linear color spaces (e.g. Hue Saturation Value, Lab) 50

Overview 51 Most standard color space: CIE XYZ LMS and the various flavor of RGB are just linear transformations of the XYZ basis 3x3 matrices

Why not measure cone sensitivity? 52 Less directly measurable electrode in photoreceptor? not available when color spaces were defined Most directly available measurement: notion of metamers & color matching directly in terms of color reproduction: given an input color, how to reproduce it with 3 primary colors? Commission Internationale de l Eclairage (International Lighting Commission) Circa 1920 M S L Spectral Sensibility of the L, M and S Cones

CIE color matching Choose 3 synthesis primaries Seek to match any monochromatic light (400 to 700nm) Record the 3 values for each wavelength By linearity, this tells us how to match any light 53

CIE color matching Primaries (synthesis) at 435.8, 546.1 and 700nm Chosen for robust reproduction, good separation in red-green Don t worry, we ll be able to convert it to any other set of primaries (Linear algebra to the rescue!) Resulting 3 numbers for each input wavelength are called tristimulus values 54

55 Now, our interactive feature! You are... THE LAB RAT

56

Color Matching Problem 57 Some colors cannot be produced using only positively weighted primaries Solution: add light on the other side! source unknown. All rights reserved. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.

CIE color matching 58 Meaning of these curves: a monochromatic wavelength λ can be reproduced with b(λ) amount of the 435.8nm primary, +g(λ) amount of the 546.1 primary, +r(λ) amount of the 700 nm primary This fully specifies the color perceived by a human Careful: this is not your usual rgb

CIE color matching Meaning of these curves: a monochromatic wavelength λ can be reproduced with b(λ) amount of the 435.8nm primary, +g(λ) amount of the 546.1 primary, +r(λ) amount of the 700 nm primary This fully specifies the color perceived by a human However, note that one of the responses can be negative Those colors cannot be reproduced by those 3 primaries. 59

CIE color matching: what does it mean? If I have a given spectrum X I compute its response to the 3 matching curves (multiply and integrate) I use these 3 responses to scale my 3 primaries (435.8, 546.1 and 700nm) I get a metamer of X (perfect color reproduction) 60

Relation to cone curves 61 Project to the same subspace b, g, and r are linear combinations of S, M and L Related by 3x3 matrix. Unfortunately unknown at that time. This would have made life a lot easier!

Recap 62 Spectra : infinite dimensional Cones: 3 spectral responses Metamers: spectra that look the same (same projection onto cone responses) CIE measured color response: chose 3 primaries tristimulus curves to reproduce any wavelength Questions?

How to build a measurement device? 63 Idea: Start with light sensor sensitive to all wavelength Use three filters with spectra b, r, g measure 3 numbers This is pretty much what the eyes do!

CIE s problem 64 Idea: Start with light sensor sensitive to all wavelength Use three filters with spectra b, r, g measure 3 numbers But for those primaries, we need negative spectra

CIE s problem 65 Obvious solution: use cone response! but unknown at the time =>new set of tristimulus curves linear combinations of b, g, r pretty much add enough b and g until r is positive

Chromaticity diagrams 3D space are tough to visualize Usually project to 2D for clarity Chromaticity diagram: normalize against X + Y + Z: source unknown. All rights reserved. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/. Perspective projection to plane X+Y+Z=1 66

CIE XYZ -recap 67 THE standard for color specification Lots of legacy decision - I wish it were LMS Based on color matching 3 monochromatic primaries Subjects matched every wavelength Tricks to avoid negative numbers These 3 values measure or describe a perceived color.

Questions? 68

Other primaries We want to use a new set of primaries e.g. the spectra of R, G & B in a projector or monitor By linearity of color matching, can be obtained from XYZ by a 3x3 matrix one example RGB space 69

Other primaries We want to use a new set of primaries e.g. the spectra of R, G & B in a projector or monitor By linearity of color matching, can be obtained from XYZ by a 3x3 matrix This matrix tells us how to match the 3 primary spectra from XYZ using the new 3 primaries one example RGB space 70

XYZ to RGB & back e.g. http://www.brucelindbloom.com/index.html?eqn_rgb_xyz_matrix.html srgb to XYZ 0.412424 0.212656 0.0193324 0.357579 0.715158 0.119193 0.180464 0.0721856 0.950444 XYZ to srgb 3.24071-0.969258 0.0556352-1.53726 1.87599-0.203996 0.498571 0.0415557 1.05707 Adobe RGB to XYZ 0.576700 0.297361 0.0270328 0.185556 0.627355 0.0706879 0.188212 0.0752847 0.991248 NTSC RGB to XYZ 0.606734 0.298839 0.000000 0.173564 0.586811 0.0661196 0.200112 0.114350 1.11491 XYZ to Adobe RGB 2.04148-0.969258 0.0134455-0.564977 1.87599-0.118373-0.344713 0.0415557 1.01527 XYZ to NTSC RGB 1.91049-0.984310 0.0583744-0.532592 1.99845-0.118518-0.288284-0.0282980 0.898611 71

Color gamut Given 3 primaries The realizable chromaticities lay in the triangle in xy chromaticity diagram Because we can only add light, no negative light source unknown. All rights reserved. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/. C This image is in the public domain. Source: Wikimedia Commons. 72

73 Image courtesy of Cpesacreta on Wikimedia Commons. License: CC-BY. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/. Image courtesy of Spigget on Wikimedia Commons. License: CC-BY-SA. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/.

In summary It s all about linear algebra Projection from infinite-dimensional spectrum to a 3D response Then any space based on color matching and metamerism can be converted by 3x3 matrix Complicated because Projection from infinite-dimensional space Non-orthogonal basis (cone responses overlap) No negative light XYZ is the most standard color space RGB has many flavors 74

Questions? 75

Gamma encoding overview 76 Digital images are usually not encoded linearly Instead, the value X1/γ is stored Need to be decoded if we want linear values

Color quantization gamma The human visual system is more sensitive to ratios Is a grey twice as bright as another one? If we use linear encoding, we have tons of information between 128 and 255, but very little between 1 and 2! Ideal encoding? Log Problems with log? Gets crazy around zero Solution: gamma 77

Color quantization gamma The human visual system is more sensitive to ratios Is a grey twice as bright as another one? If we use linear encoding, we have tons of information between 128 and 255, but very little between 1 and 2! This is why a non-linear gamma remapping of about 2.0 is applied before encoding True also of analog imaging to optimize signal-noise ratio 78

Color quantization gamma The human visual system is more sensitive to ratios Is a grey twice as bright as another one? If we use linear encoding, we have tons of information between 128 and 255, but very little between 1 and 2! This is why a non-linear gamma remapping of about 2.0 is applied before encoding True also of analog imaging to optimize signal-noise ratio 79

Gamma encoding From Greg Ward Only 6 bits for emphasis 80

Important Message Digital images are usually gamma encoded Often γ = 2.2 (but 1.8 for Profoto RGB) To get linear values, you must decode apply x => xγ 81

Questions? 82

Selected Bibliography 83 Vision Science by Stephen E. Palmer MIT Press; ISBN: 0262161834 760 pages (May 7, 1999) Billmeyer and Saltzman's Principles of Color Technology, 3rd Edition by Roy S. Berns, Fred W. Billmeyer, Max Saltzman Wiley-Interscience; ISBN: 047119459X 304 pages 3 edition (March 31, 2000) Vision and Art : The Biology of Seeing by Margaret Livingstone, David H. Hubel Harry N Abrams; ISBN: 0810904063 208 pages (May 2002) The Reproduction of Color by R. W. G. Hunt Fountain Press, 1995 Color Appearance Models by Mark Fairchild Addison Wesley, 1998 Color for the Sciences, by Jan Koenderink MIT Press 2010.

Questions? Image courtesy of SharkD on Wikimedia Commons. License: CC-BY. This content is excluded from our Creative Commons license. For more information, see http://ocw.mit.edu/help/faq-fair-use/. 84

MIT OpenCourseWare http://ocw.mit.edu 6.837 Computer Graphics Fall 2012 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.