© University of Wisconsin, CS559 Spring 2004

Slides:



Advertisements
Similar presentations
1 Color Kyongil Yoon VISA Color Chapter 6, “Computer Vision: A Modern Approach” The experience of colour Caused by the vision system responding.
Advertisements

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
W14D1. Multimedia Representation of colour (photos, videos) Representation of sound. Comp.Sci. questions: what is colour? how can computers capture &
School of Computing Science Simon Fraser University
Lecture 6 Color and Texture
Computational Photography Prof. Feng Liu Spring /13/2015.
CS 4731: Computer Graphics Lecture 24: Color Science
SWE 423: Multimedia Systems Chapter 4: Graphics and Images (2)
What is color for?.
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.
1/22/04© University of Wisconsin, CS559 Spring 2004 Last Time Course introduction Image basics.
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.
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.
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.
09/05/02© University of Wisconsin, CS559 Spring 2002 Last Time Course introduction Assignment 1 (not graded, but necessary) –View is part of Project 1.
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!)
1 Color vision and representation S M L.
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.
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
Graphics Lecture 4: Slide 1 Interactive Computer Graphics Lecture 4: Colour.
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 4: Color in Image and Video
CS559: Computer Graphics Lecture 5: Color and Edge Li Zhang Spring 2008 Most Slides from Stephen Chenney.
09/10/02(c) University of Wisconsin, CS559 Fall 2002 Last Time Digital Images –Spatial and Color resolution Color –The physics of color.
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.
Color Models Light property Color models.
Half Toning Dithering RGB CMYK Models
Capturing Light… in man and machine
Display Issues Ed Angel
Color Image Processing
Color Image Processing
(c) University of Wisconsin, CS559 Spring 2002
Additive Colour Theory
Colour theory.
Pengenalan Warna Teori Warna.
© University of Wisconsin, CS559 Spring 2002
Chapter 6: Color Image Processing
Color Image Processing
Colour Theory Fundamentals
Perception and Measurement of Light, Color, and Appearance
Introduction to Computer Graphics with WebGL
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 Image Processing
Color Theory What is color? How do we perceive it?
Color! Main Goals: Understand this thing: “Chromaticity diagram”
Presentation transcript:

© University of Wisconsin, CS559 Spring 2004 Last Time Digital images Images are discrete Dynamic range Gamma Introduction to color Spectra as the physical representation for color 1/27/04 © University of Wisconsin, CS559 Spring 2004

© University of Wisconsin, CS559 Spring 2004 Today More color Programming pre-project 1 1/27/04 © University of Wisconsin, CS559 Spring 2004

© University of Wisconsin, CS559 Spring 2004 Frequency Response Any sensor is defined by its response to a frequency distribution 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 1/27/04 © University of Wisconsin, CS559 Spring 2004

© University of Wisconsin, CS559 Spring 2004 A “Red” Sensor Sensitivity Wavelength (nm) 400 500 600 700 This sensor will respond to red light, but not to blue light, and a little to green light 1/27/04 © University of Wisconsin, CS559 Spring 2004

© University of Wisconsin, CS559 Spring 2004 Qualitative Response Sensitivity,  E Multiply 400 500 600 700 400 500 600 700 Area under curve? #photons, E Red Big response! 400 500 600 700 1/27/04 © University of Wisconsin, CS559 Spring 2004

© University of Wisconsin, CS559 Spring 2004 Qualitative Response Sensitivity,  E Multiply 400 500 600 700 400 500 600 700 Area under curve? #photons, E Blue Tiny response! 400 500 600 700 1/27/04 © University of Wisconsin, CS559 Spring 2004

© University of Wisconsin, CS559 Spring 2004 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 1/27/04 © University of Wisconsin, CS559 Spring 2004

© University of Wisconsin, CS559 Spring 2004 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 1/27/04 © University of Wisconsin, CS559 Spring 2004

© University of Wisconsin, CS559 Spring 2004 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 … 1/27/04 © University of Wisconsin, CS559 Spring 2004

© University of Wisconsin, CS559 Spring 2004 Color Perception How your brain interprets nerve impulses from your cones is an open area of study, and deeply mysterious Colors may be perceived differently: Affected by other nearby colors Affected by adaptation to previous views Affected by “state of mind” Experiment: Subject views a colored surface through a hole in a sheet, so that the color looks like a film in space Investigator controls for nearby colors, and state of mind 1/27/04 © University of Wisconsin, CS559 Spring 2004

© University of Wisconsin, CS559 Spring 2004 The Same Color? 1/27/04 © University of Wisconsin, CS559 Spring 2004

© University of Wisconsin, CS559 Spring 2004 The Same Color? 1/27/04 © University of Wisconsin, CS559 Spring 2004

© University of Wisconsin, CS559 Spring 2004 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 1/27/04 © University of Wisconsin, CS559 Spring 2004

© University of Wisconsin, CS559 Spring 2004 Trichromacy Experiment: Show a target color spectrum beside a user controlled color User has knobs that add primary sources to their color Primary sources contain only one wavelength 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 1/27/04 © University of Wisconsin, CS559 Spring 2004

Trichromacy means… Spectrum Color Matching: Representing color: People think these two spectra look the same (monomers) Representing color: If you want people to “see” the continuous spectrum, you can just show the three primaries 400 500 600 700 3 Primaries 400 500 600 700 1/27/04 © University of Wisconsin, CS559 Spring 2004

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 subtract light from a display device 1/27/04 © University of Wisconsin, CS559 Spring 2004

© University of Wisconsin, CS559 Spring 2004 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 For each wavelength, how much R, G and B do I need to match that wavelength 1/27/04 © University of Wisconsin, CS559 Spring 2004

The RGB Color Matching Functions 1/27/04 © University of Wisconsin, CS559 Spring 2004

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: 1/27/04 © University of Wisconsin, CS559 Spring 2004

© University of Wisconsin, CS559 Spring 2004 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 1/27/04 © University of Wisconsin, CS559 Spring 2004

© University of Wisconsin, CS559 Spring 2004 RGB Color Space Color Cube Program 1/27/04 © University of Wisconsin, CS559 Spring 2004

© University of Wisconsin, CS559 Spring 2004 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 1/27/04 © University of Wisconsin, CS559 Spring 2004

© University of Wisconsin, CS559 Spring 2004 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 1/27/04 © University of Wisconsin, CS559 Spring 2004

© University of Wisconsin, CS559 Spring 2004 CIE x, y Note: This is a representation on a projector with limited range, so the correct colors are not being displayed 1/27/04 © University of Wisconsin, CS559 Spring 2004

CIE Matching Functions 1/27/04 © University of Wisconsin, CS559 Spring 2004

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 1/27/04 © University of Wisconsin, CS559 Spring 2004