(c) University of Wisconsin, CS559 Spring 2002

Slides:



Advertisements
Similar presentations
13- 1 Chapter 13: Color Processing 。 Color: An important descriptor of the world 。 The world is itself colorless 。 Color is caused by the vision system.
Advertisements

1/29/04© University of Wisconsin, CS559 Spring 2004 Last Time Color –Sensor response is computed from the sensor’s response curve and the incoming spectrum.
1 Color Kyongil Yoon VISA Color Chapter 6, “Computer Vision: A Modern Approach” The experience of colour Caused by the vision system responding.
Introduction to Computer Graphics ColorColor. Specifying Color Color perception usually involves three quantities: Hue: Distinguishes between colors like.
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
Achromatic and Colored Light CS 288 9/17/1998 Vic.
Light Light is fundamental for color vision Unless there is a source of light, there is nothing to see! What do we see? We do not see objects, but the.
Fundamentals of Digital Imaging
School of Computing Science Simon Fraser University
SWE 423: Multimedia Systems Chapter 4: Graphics and Images (2)
© 2002 by Yu Hen Hu 1 ECE533 Digital Image Processing Color Imaging.
What is color for?.
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.
Color Models AM Radio FM Radio + TV Microwave Infrared Ultraviolet Visible.
09/12/02 (C) 2002, University of Wisconsin, CS 559 Last Time Color and Color Spaces –Recall RGB and XYZ Programming assignment 2.
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.
Understanding Colour Colour Models Dr Jimmy Lam Tutorial from Adobe Photoshop CS.
CS 376 Introduction to Computer Graphics 01 / 26 / 2007 Instructor: Michael Eckmann.
2001 by Jim X. Chen: 1 The purpose of a color model is to allow convenient specification of colors within some color gamut.
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.
Chapter 3: Colorimetry How to measure or specify color? Color dictionary?
CS 325 Introduction to Computer Graphics 01 / 29 / 2010 Instructor: Michael Eckmann.
Computer Science 631 Lecture 7: Colorspace, local operations
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.
Color Theory ‣ What is color? ‣ How do we perceive it? ‣ How do we describe and match colors? ‣ Color spaces.
CSC361/ Digital Media Burg/Wong
CS 376 Introduction to Computer Graphics 01 / 24 / 2007 Instructor: Michael Eckmann.
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
EEL Introduction to Computer Graphics PPT12: Color models Yamini Bura – U
Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.
Greg Humphreys CS445: Intro Graphics University of Virginia, Fall 2003 Raster Graphics and Color Greg Humphreys University of Virginia CS 445, Fall 2003.
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.
09/10/02(c) University of Wisconsin, CS559 Fall 2002 Last Time Digital Images –Spatial and Color resolution Color –The physics of color.
Color Measurement and Reproduction Eric Dubois. How Can We Specify a Color Numerically? What measurements do we need to take of a colored light to uniquely.
1 of 32 Computer Graphics Color. 2 of 32 Basics Of Color elements of color:
COMPUTER GRAPHICS CS 482 – FALL 2016 CHAPTER 28 COLOR COLOR PERCEPTION CHROMATICITY COLOR MODELS COLOR INTERPOLATION.
Color Models Light property Color models.
ITEC2110, Digital Media Chapter 2 Fundamentals of Digital Imaging
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Half Toning Dithering RGB CMYK Models
Display Issues Ed Angel
Color Image Processing
Color Image Processing
Color Image Processing
COLOR space Mohiuddin Ahmad.
Chapter 6: Color Image Processing
Color Image Processing
© 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
Last Time Image – basic definition
Color Image Processing
Color Model By : Mustafa Salam.
Color Models l Ultraviolet Infrared 10 Microwave 10
Color Theory What is color? How do we perceive it?
Color! Main Goals: Understand this thing: “Chromaticity diagram”
Presentation transcript:

(c) University of Wisconsin, CS559 Spring 2002 Color Recap The physical description of color is as a spectrum: the intensity of light at each wavelength Humans have three types of cone – each responds differently to an incoming spectrum Experiments show that humans can match all colors by combining three primary colors The most common computer graphics primaries are Red (645.16nm), Green (526.32nm) and Blue (444.44nm) 01/29/02 (c) University of Wisconsin, CS559 Spring 2002

(c) University of Wisconsin, CS559 Spring 2002 Last Time Digital Images Spatial and Color resolution Color The physics and perception of color Particularly: 3 types of cone, sensor response 01/29/02 (c) University of Wisconsin, CS559 Spring 2002

(c) University of Wisconsin, CS559 Spring 2002 Today More on color Trichromacy Color matching Color Spaces 01/29/02 (c) University of Wisconsin, CS559 Spring 2002

(c) University of Wisconsin, CS559 Spring 2002 Trichromacy Experiment: Show a target color beside a user controlled color User has knobs that add primary sources to their color Ask the user to match the colors 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 01/29/02 (c) University of Wisconsin, CS559 Spring 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 01/29/02 (c) University of Wisconsin, CS559 Spring 2002

(c) University of Wisconsin, CS559 Spring 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 01/29/02 (c) University of Wisconsin, CS559 Spring 2002

The RGB Color Matching Functions 01/29/02 (c) University of Wisconsin, CS559 Spring 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: 01/29/02 (c) University of Wisconsin, CS559 Spring 2002

(c) University of Wisconsin, CS559 Spring 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 01/29/02 (c) University of Wisconsin, CS559 Spring 2002

(c) University of Wisconsin, CS559 Spring 2002 RGB Color Space Color Cube Program 01/29/02 (c) University of Wisconsin, CS559 Spring 2002

(c) University of Wisconsin, CS559 Spring 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) If you ever need to answer such questions, file rgb.txt under X11 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 01/29/02 (c) University of Wisconsin, CS559 Spring 2002

(c) University of Wisconsin, CS559 Spring 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 01/29/02 (c) University of Wisconsin, CS559 Spring 2002

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

CIE Matching Functions 01/29/02 (c) University of Wisconsin, CS559 Spring 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 01/29/02 (c) University of Wisconsin, CS559 Spring 2002

(c) University of Wisconsin, CS559 Spring 2002 Going from RGB to XYZ These are linear color spaces, related by a linear transformation Match each primary, for example: Substitute and equate terms: 01/29/02 (c) University of Wisconsin, CS559 Spring 2002

(c) University of Wisconsin, CS559 Spring 2002 Determining Gamuts XYZ Gamut Gamut: The range of colors that can be produced Plot the matching coordinates for each primary Region contained in triangle (3 primaries) is gamut Really, it’s a 3D thing, with the color cube distorted and embedded in the XYZ gamut y RGB Gamut G R B x 01/29/02 (c) University of Wisconsin, CS559 Spring 2002

More linear color spaces Monitor RGB: primaries are monitor phosphor colors, primaries and color matching functions vary from monitor to monitor: Almost all applications assume that RGB is the same as monitor RGB YIQ: mainly used in television Y is (approximately) intensity, I, Q are chromatic properties Linear color space; hence there is a matrix that transforms XYZ coords to YIQ coords, and another to take RGB to YIQ I and Q can be transmitted with low bandwidth 01/29/02 (c) University of Wisconsin, CS559 Spring 2002

(c) University of Wisconsin, CS559 Spring 2002 Munsell Color Space Problems with linear spaces remain: Hard to specify colors without resorting to matching functions Perceptually non-uniform Munsell: describes surfaces, rather than lights - less relevant for graphics Surfaces must be viewed under fixed comparison light 01/29/02 (c) University of Wisconsin, CS559 Spring 2002

(c) University of Wisconsin, CS559 Spring 2002 Munsell color space 01/29/02 (c) University of Wisconsin, CS559 Spring 2002

HSV Color Space (Alvy Ray Smith, 1978) Hue: the color family: red, yellow, blue… Saturation: The purity of a color: white is totally unsaturated Value: The intensity of a color: white is intense, black isn’t Space looks like a cone Parts of the cone can be mapped to RGB space Not a linear space, so no linear transform to take RGB to HSV But there is an algorithmic transform 01/29/02 (c) University of Wisconsin, CS559 Spring 2002

(c) University of Wisconsin, CS559 Spring 2002 HSV Color Space HSV Color Cone Program 01/29/02 (c) University of Wisconsin, CS559 Spring 2002

(c) University of Wisconsin, CS559 Spring 2002 Uniform Color Spaces Color spaces in which distance in the space corresponds to perceptual “distance” Only works for local distances How far is red from green? Is it further than red from blue? Use MacAdams ellipses to define perceptual distance 01/29/02 (c) University of Wisconsin, CS559 Spring 2002

(c) University of Wisconsin, CS559 Spring 2002 MacAdam Ellipses Scaled by a factor of 10 and shown on CIE xy color space If you are shown two colors inside the same ellipse, you cannot tell them apart Only a few ellipses are shown, but one can be defined for every point 01/29/02 (c) University of Wisconsin, CS559 Spring 2002

(c) University of Wisconsin, CS559 Spring 2002 CIE u’v’ Space CIE u’v’ is a non-linear color space where color differences are more uniform Note that now ellipses look more like circles The third coordinate is the original Z from XYZ Violet 01/29/02 (c) University of Wisconsin, CS559 Spring 2002

(c) University of Wisconsin, CS559 Spring 2002 Subtractive mixing Inks subtract light from white, whereas phosphors glow Common inks: Cyan=White−Red, Magenta=White−Green, Yellow=White−Blue For example, to make a red mark, put down magenta and yellow, which removes the green and blue leaving red For a good choice of inks, matching is linear: C+M+Y=White-White=Black C+M=White-Red-Green=Blue Usually require CMY and Black, because colored inks are more expensive, and registration is hard For good choice of inks, there is a linear transform between XYZ and CMY 01/29/02 (c) University of Wisconsin, CS559 Spring 2002