09/10/02(c) University of Wisconsin, CS559 Fall 2002 Last Time Digital Images –Spatial and Color resolution Color –The physics of color.

Slides:



Advertisements
Similar presentations
What is Color? Color is related to the wavelength of light. If a color corresponds to one particular wavelength, this is called spectral color. =600 nm.
Advertisements

1 Color Kyongil Yoon VISA Color Chapter 6, “Computer Vision: A Modern Approach” The experience of colour Caused by the vision system responding.
Classroom Change This Friday’s class will be at Physics 1201.
Color & Light, Digitalization, Storage. Vision Rods work at low light levels and do not see color –That is, their response depends only on how many photons,
Color Image Processing
Fundamentals of Digital Imaging
The eyes have three different kinds of color receptors; One kind is most sensitive to short wavelengths, one to middle wavelengths, and one to long wavelengths.
Why is this hard to read. Unrelated vs. Related Color Unrelated color: color perceived to belong to an area in isolation (CIE 17.4) Related color: color.
School of Computing Science Simon Fraser University
Computational Photography Prof. Feng Liu Spring /13/2015.
CS 4731: Computer Graphics Lecture 24: Color Science
Why is this hard to read. Unrelated vs. Related Color Unrelated color: color perceived to belong to an area in isolation (CIE 17.4) Related color: color.
SWE 423: Multimedia Systems Chapter 4: Graphics and Images (2)
What is color for?.
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Color 2 Week 10, Fri 7 Nov 2003.
Display Issues Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
CS559-Computer Graphics Copyright Stephen Chenney Color Recap The physical description of color is as a spectrum: the intensity of light at each wavelength.
Why Care About Color? Accurate color reproduction is commercially valuable - e.g. Kodak yellow, painting a house Color reproduction problems increased.
Chapter 9: Color What is color? Color mixtures –Intensity-distribution curves –Additive Mixing –Partitive Mixing Specifying colors –RGB Color –Chromaticity.
Exam 2: November 8 th –If you will need accommodations, please make sure you have documentation from the University Office of Disability Services –It will.
Colour in Computer Graphics Mel Slater. Outline: This time Introduction Spectral distributions Simple Model for the Visual System Simple Model for an.
9/14/04© University of Wisconsin, CS559 Spring 2004 Last Time Intensity perception – the importance of ratios Dynamic Range – what it means and some of.
CS 376 Introduction to Computer Graphics 01 / 26 / 2007 Instructor: Michael Eckmann.
How do we perceive colour? How do colours add?. What is colour? Light comes in many “colours”. Light is an electromagnetic wave. Each “colour” is created.
CS559-Computer Graphics Copyright Stephen Chenney 2001 The Human Eye Graphics is concerned with the visual transmission of information How do we see? –Light.
Any questions about the current assignment? (I’ll do my best to help!)
Color Theory What is color? How do we describe and match colors? Color spaces.
1 Color vision and representation S M L.
COLLEGE OF ENGINEERING UNIVERSITY OF PORTO COMPUTER GRAPHICS AND INTERFACES / GRAPHICS SYSTEMS JGB / AAS Light and Color Graphics Systems / Computer.
Chapter 3: Colorimetry How to measure or specify color? Color dictionary?
Computer Science 631 Lecture 7: Colorspace, local operations
Topic 5 - Imaging Mapping - II DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Color. Contents Light and color The visible light spectrum Primary and secondary colors Color spaces –RGB, CMY, YIQ, HLS, CIE –CIE XYZ, CIE xyY and CIE.
9/9/04© University of Wisconsin, CS559 Spring 2004 Last Time Course introduction Digital Images –The difference between an image and a display –Ways to.
Color Theory ‣ What is color? ‣ How do we perceive it? ‣ How do we describe and match colors? ‣ Color spaces.
Importance of Color Painters first used charcoal Early artists used ochre to add red Colors are not always the same from culture to culture.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Digital Image Processing Part 1 Introduction. The eye.
CSC361/ Digital Media Burg/Wong
CS6825: Color 2 Light and Color Light is electromagnetic radiation Light is electromagnetic radiation Visible light: nm. range Visible light:
Graphics Lecture 4: Slide 1 Interactive Computer Graphics Lecture 4: Colour.
Mixing the broad distributions of green and red yields yellow. Although the resulting spectral distribution is very different from spectral yellow. If.
Three-Receptor Model Designing a system that can individually display thousands of colors is very difficult Instead, colors can be reproduced by mixing.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Introduction to Computer Graphics
Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
CS559: Computer Graphics Lecture 8: Dynamic Range and Trichromacy Li Zhang Spring 2008 Most Slides from Stephen Chenney.
CS-321 Dr. Mark L. Hornick 1 Color Perception. CS-321 Dr. Mark L. Hornick 2 Color Perception.
David Luebke 1 2/5/2016 Color CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
Chapter 9: Perceiving Color. Figure 9-1 p200 Figure 9-2 p201.
1 of 32 Computer Graphics Color. 2 of 32 Basics Of Color elements of color:
Digital Image Processing Lecture 12: Color Image Processing Naveed Ejaz.
COMPUTER GRAPHICS CS 482 – FALL 2016 CHAPTER 28 COLOR COLOR PERCEPTION CHROMATICITY COLOR MODELS COLOR INTERPOLATION.
Half Toning Dithering RGB CMYK Models
Capturing Light… in man and machine
Color Image Processing
Color Image Processing
(c) University of Wisconsin, CS559 Spring 2002
© University of Wisconsin, CS559 Spring 2002
Chapter 6: Color Image Processing
Color Image Processing
Colour Theory Fundamentals
© University of Wisconsin, CS559 Spring 2004
Color Representation Although we can differentiate a hundred different grey-levels, we can easily differentiate thousands of colors.
Outline Color perception Introduction Theories of color perception
Color Image Processing
Slides taken from Scott Schaefer
Color Theory What is color? How do we perceive it?
Presentation transcript:

09/10/02(c) University of Wisconsin, CS559 Fall 2002 Last Time Digital Images –Spatial and Color resolution Color –The physics of color

09/10/02(c) University of Wisconsin, CS559 Fall 2002 Today More on color –Color Response –Color physiology –Trichromacy –Color matching –Color Spaces

09/10/02(c) University of Wisconsin, CS559 Fall 2002 Normal Daylight # Photons Wavelength, λ (nm) Recall, color is defined by a spectrum, or frequency distribution We can describe it by a function: E(λ)

09/10/02(c) University of Wisconsin, CS559 Fall 2002 Frequency Response Any sensor is defined by its response to a spectrum Expressed as a graph of sensitivity vs. wavelength,  ( ) –For each unit of energy at the given wavelength, how much voltage/impulses/whatever the sensor provides To compute the response, take the integral –E( ) is the incoming energy at the particular wavelength –The integral multiplies the amount of energy at each wavelength by the sensitivity at that wavelength, and sums them all up

09/10/02(c) University of Wisconsin, CS559 Fall 2002 A “Red” Sensor This sensor will respond to red light, but not to blue light, and a little to green light Sensitivity Wavelength (nm)

09/10/02(c) University of Wisconsin, CS559 Fall 2002 The “Red” Sensor Response Sensitivity,  #photons, E High response Sensitivity,  #photons, E Low response Red Blue

09/10/02(c) University of Wisconsin, CS559 Fall 2002 Changing Response How can you take a “white” sensor and change it into a “red” sensor? –Hint: Think filters Can you change a “red” sensor into a “white” sensor? Assume for the moment that your eye is a “white” sensor. How is it that you can see a “black light” (UV) shining on a surface? –Such surfaces are fluorescent –Your eye isn’t really a white sensor - it just approximates one

09/10/02(c) University of Wisconsin, CS559 Fall 2002 Changing Response How can you take a “white” sensor and change it into a “red” sensor? Put a red filter in front of the sensor Can you change a “red” sensor into a “white” sensor? No Assume for the moment that your eye is a “white” sensor. How is it that you can see a “black light” (UV) shining on a surface? The surface changes the wavelength of the light as it reflects it –Such surfaces are fluorescent –Your eye isn’t really a white sensor - it just approximates one

09/10/02(c) University of Wisconsin, CS559 Fall 2002 Seeing in Color The eye contains rods and cones –Rods work at low light levels and do not see color That is, their response depends only on how many photons, not their wavelength –Cones come in three types (experimentally and genetically proven), each responds in a different way to frequency distributions

09/10/02(c) University of Wisconsin, CS559 Fall 2002 Color receptors Each cone type has a different sensitivity curve –Experimentally determined in a variety of ways For instance, the L-cone responds most strongly to red light “Response” in your eye means nerve cell firings How you interpret those firings is not so simple

09/10/02(c) University of Wisconsin, CS559 Fall 2002 Color Deficiency Some people are missing one type of receptor –Most common is red-green color blindness in men –Red and green receptor genes are carried on the X chromosome - most red-green color blind men have two red genes or two green genes Other color deficiencies –Anomalous trichromacy, Achromatopsia, Macular degeneration –Deficiency can be caused by the central nervous system, by optical problems in the eye, injury, or by absent receptors

09/10/02(c) University of Wisconsin, CS559 Fall 2002 Trichromacy Experiment: –Show a target color spectrum beside a user controlled color –User has knobs that add primary sources to their color –Ask the user to match the colors – make their light look the same as the target By experience, it is possible to match almost all colors using only three primary sources - the principle of trichromacy Sometimes, have to add light to the target In practical terms, this means that if you show someone the right amount of each primary, they will perceive the right color This was how experimentalists knew there were 3 types of cones

09/10/02(c) University of Wisconsin, CS559 Fall 2002 Trichromacy means… Spectrum 3 Primaries Color Matching: People think these two spectra look the same (metamers or monomers) Representing color: If you want people to “see” the continuous spectrum, you can just show the three primaries

09/10/02(c) University of Wisconsin, CS559 Fall 2002 The Math of Trichromacy Write primaries as R, G and B –We won’t precisely define them yet Many colors can be represented as a mixture of R, G, B: M=rR + gG + bB (Additive matching) Gives a color description system - two people who agree on R, G, B need only supply (r, g, b) to describe a color Some colors can’t be matched like this, instead, write: M+rR=gG+bB (Subtractive matching) –Interpret this as (-r, g, b) –Problem for reproducing colors – you can’t suck light into a display device

09/10/02(c) University of Wisconsin, CS559 Fall 2002 Color Matching Given a spectrum, how do we determine how much each of R, G and B to use to match it? First step: –For a light of unit intensity at each wavelength, ask people to match it with R, G and B primaries –Result is three functions, r( ), g( ) and b( ), the RGB color matching functions

09/10/02(c) University of Wisconsin, CS559 Fall 2002 The RGB Color Matching Functions

09/10/02(c) University of Wisconsin, CS559 Fall 2002 Computing the Matching The spectrum function that we are trying to match, E( ), gives the amount of energy at each wavelength The RGB matching functions describe how much of each primary is needed to match one unit of energy at each wavelength Hence, if the “color” due to E( ) is E, then the match is:

09/10/02(c) University of Wisconsin, CS559 Fall 2002 Color Spaces The principle of trichromacy means that the colors displayable are all the linear combination of primaries Taking linear combinations of R, G and B defines the RGB color space –the range of perceptible colors generated by adding some part each of R, G and B If R, G and B correspond to a monitor’s phosphors (monitor RGB), then the space is the range of colors displayable on the monitor

09/10/02(c) University of Wisconsin, CS559 Fall 2002 RGB Color Space Color Cube Program

09/10/02(c) University of Wisconsin, CS559 Fall 2002 Problems with RGB Can only a small range of all the colors humans are capable of perceiving (particularly for monitor RGB) –Have you ever seen magenta on a monitor? It isn’t easy for humans to say how much of RGB to use to make a given color –How much R, G and B is there in “brown”? (Answer:.64,.16,.16) Perceptually non-linear –Two points a certain distance apart in one part of the space may be perceptually different –Two other points, the same distance apart in another part of the space, may be perceptually the same

09/10/02(c) University of Wisconsin, CS559 Fall 2002 CIE XYZ Color Space Defined in 1931 to describe the full space of perceptible colors –Revisions now used by color professionals Color matching functions are everywhere positive –Cannot produce the primaries – need negative light! –But, can still describe a color by its matching weights –Y component intended to correspond to intensity Most frequently set x=X/(X+Y+Z) and y=Y/(X+Y+Z) –x,y are coordinates on a constant brightness slice

09/10/02(c) University of Wisconsin, CS559 Fall 2002 CIE x, y Note: This is a representation on a projector with limited range, so the right colors are not being displayed

09/10/02(c) University of Wisconsin, CS559 Fall 2002 CIE Matching Functions

09/10/02(c) University of Wisconsin, CS559 Fall 2002 Qualitative features of CIE x, y Linearity implies that colors obtainable by mixing lights with colors A, B lie on line segment with endpoints at A and B Monochromatic colors (spectral colors) run along the “Spectral Locus” Dominant wavelength = Spectral color that can be mixed with white to match Purity = (distance from C to spectral locus)/(distance from white to spectral locus) Wavelength and purity can be used to specify color. Complementary colors=colors that can be mixed with C to get white