EEL 5771-001 Introduction to Computer Graphics PPT12: Color models Yamini Bura – U66775501.

Slides:



Advertisements
Similar presentations
CS 445 / 645 Introduction to Computer Graphics Lecture 13 Color Color.
Advertisements

Introduction to Computer Graphics ColorColor. Specifying Color Color perception usually involves three quantities: Hue: Distinguishes between colors like.
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
CS 4731: Computer Graphics Lecture 24: Color Science
Multi-media Graphics JOUR 205 Color Models & Color Space 5 ways of specifying colors.
© 2002 by Yu Hen Hu 1 ECE533 Digital Image Processing Color Imaging.
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.
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.
Color & Color Management. Overview I. Color Perception Definition & characteristics of color II. Color Representation RGB, CMYK, XYZ, Lab III. Color Management.
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.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 6 This presentation © 2004, MacAvon Media Productions Colour.
Understanding Colour Colour Models Dr Jimmy Lam Tutorial from Adobe Photoshop CS.
Guilford County SciVis V104.02
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.
Color Models and Color Applications
Any questions about the current assignment? (I’ll do my best to help!)
Chapter 6: Color Image Processing Digital Image Processing.
Color Management. How does the color work?  Spectrum Spectrum is a contiguous band of wavelengths, which is emitted, reflected or transmitted by different.
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?
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Color Principles for Computer Graphics Donald House 9/17/09 Artist’s slides by Lynette House.
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.
CS 445 / 645 Introduction to Computer Graphics Lecture 13 Color Color.
Color 2011, Fall. Colorimetry : Definition (1/2) Colorimetry  Light is perceived in the visible band from 380 to 780 nm  distribution of wavelengths.
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.
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:
CS 376 Introduction to Computer Graphics 01 / 24 / 2007 Instructor: Michael Eckmann.
Graphics Lecture 4: Slide 1 Interactive Computer Graphics Lecture 4: Colour.
A color model is a specification of a 3D color co-ordinate system and a visible subset in the co-ordinate System within all colors in a particular color.
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 Principles for Computer Graphics Donald House 9/17/09 Artist’s slides by Lynette House.
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.
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
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.
Computer Graphics: Achromatic and Coloured Light.
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.
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
Chapter II Color Theory.
Color Image Processing
Slides taken from Scott Schaefer
Color Image Processing
Color Model By : Mustafa Salam.
Color Theory What is color? How do we perceive it?
Presentation transcript:

EEL Introduction to Computer Graphics PPT12: Color models Yamini Bura – U

N OTHING CAN BE OVERLOOKED THE WAY THAT COLOR CAN !!!

Color Color has three essential elements must be present: light an illuminated object and an observer

Visible Spectrum We perceive electromagnetic energy having wavelengths in the range nm as visible light.

W HITE LIGHT The color spectrum shows the range of wavelengths of energy that are visible to the human eye. Variation in wavelengths alters the colors we see.

Light and Color The frequency ( or mix of frequencies ) of the light determines the color. The amount of light(sheer quantity of photons ) is the intensity. Three independent quantities are used to describe any particular color. : hue, saturation, and lightness or brightness or intensity. The hue is determined by the dominant wavelength.(the apparent color of the light) When we call an object "red," we are referring to its hue. Hue is determined by the dominant wavelength. Physical mix of opaque paints Primary: RYB Secondary: OGV Neutral: R + Y + B Hue paint Mixing

The saturation is determined by the excitation purity, and depends on the amount of white light mixed with the hue. A pure hue is fully saturated, i.e. no white light mixed in. Hue and saturation together determine the chromaticity for a given color. Saturation is the purity of the color Lightness or brightness refers to the amount of light the color reflects or transmits. Finally, the intensity is determined by the actual amount of light, with more light corresponding to more intense colors ( the total light across all frequencies).

Physiology of Color Light waves that reach the eye stimulate a visual process so complex it's not yet fully understood. Within the retina, cones respond to color hues and brightness. Rods sense only brightness. Three types of cones respond to wavelengths in ways that produce all the colors we see.

Physiology of Color 3 cone response curves Luminance efficiency The response of each type of cone as a function of the wavelength of the incident light is shown in figure. The peaks for each curve are at 440nm (blue), 545nm (green) and 580nm (red). Note that the last two actually peak in the yellow part of the spectrum.

L IGHT AND THE EYES The color signal to the brain comes from the response of the 3 cones to the spectra being observed. That is, the signal consists of 3 numbers: R, G, and B A color can be specified as the sum of three colors. So colors form a 3 dimensional vector space. These three hues: red, green, and blue are called primary colors

Color Matching In order to define the perceptual 3D space in a "standard" way, a set of experiments can (and have been) carried by having observers try and match color of a given wavelength, lambda, by mixing three other pure wavelengths, such as R=700nm, G=546nm, and B=436nm in the following example. Note that the phosphorus of color TVs and other CRTs do not emit pure red, green, or blue light of a single wavelength, as is the case for this experiment.

C OLOR M ODELS Color models provide a standard way to specify a particular color, by defining a 3D coordinate system, and a subspace that contains all constructible colors within a particular model. Any color that can be specified using a model will correspond to a single point within the subspace it defines. Each color model is oriented towards either specific hardware (RGB,CMY,YIQ), or image processing applications (HSI).

CIE Chromaticity diagram In 1931, the CIE defined three standard primaries (X, Y, Z). The Y primary was intentionally chosen to be identical to the luminous- efficiency function of human eyes. The above figure shows the amounts of X, Y, Z needed to exactly reproduce any visible color.

CIE Color Space In order to achieve a representation which uses only positive mixing coefficients, the CIE ("Commission Internationale d'Eclairage") defined three new hypothetical light sources, x, y, and z, which yield positive matching curves: If we are given a spectrum and wish to find the corresponding X, Y, and Z quantities, we can do so by integrating the product of the spectral power and each of the three matching curves over all wavelengths. The weights X,Y,Z form the three- dimensional CIE XYZ space, as shown below.

CIE C HROMATICITY COORDINATES The red chromaticity coordinate is given by x and the green chromaticity coordinate by y. The tristimulus values are linear in I () and thus the absolute intensity information has been lost in the calculation of the chromaticity coordinates { x, y }. All color distributions, I (), that appear to an observer as having the same color will have the same chromaticity coordinates.

Figure : The CIE Chromaticity Diagram showing all visible colors. x and y are the normalized amounts of the X and Y primaries present, and hence z = 1 - x - y gives the amount of the Z primary required.

CIE Color Cone

CIE Typical Display Gamut Measuring color allows us to compare the color gamut, or range of colors produced by different methods. We find that color transparency film produces a wide range of colors including some a monitor cannot display. Digital color printers and printing presses have different color gamuts

CIE Lu * v * and Lab Perceptually Uniform Spaces Lu * v * rescales xyY Lab color opponents

CIE Color Matching Functions CIE RGB Matching Functions CIE XYZ Matching Functions

RGB Color Wheel Warm/Cool Complements Split Complement Analogous Show RGB Cube

T HE RGB C OLOR C UBE The additive color model used for computer graphics is represented by the RGB color cube, where R, G, and B represent the colors produced by red, green and blue phosphorus, respectively.

T HE RGB M ODEL This is an additive model, i.e. the colors present in the light add to form new colors, and is appropriate for the mixing of colored light for example The RGB model is used for color monitors and most video cameras. The figure on the left shows the additive mixing of red, green and blue primaries to form the three secondary colors yellow (red + green), cyan (blue + green) and magenta (red + blue), and white ((red + green + blue). The figure on the right shows the three subtractive primaries, and their pair wise combinations to form red, green and blue, and finally black by subtracting all three primaries from white.

T HE RGB C OLOR C UBE The color cube sits within the CIE XYZ color space as follows.

RGB from Spectrum RGB = x d

XYZ from Spectrum XYZ = x d

RGB C OLOR M ODEL FOR CRT D ISPLAYS CRT displays have three phosphors (RGB) which produce a combination of wavelengths when excited with electrons.

CMY C OLOR M ODEL Cyan, Magenta, and Yellow (CMY) are complementary colors of RGB. They can be used as Subtractive Primaries. CMY model is mostly used in printing devices where the color pigments on the paper absorb certain colors (e.g., no red light reflected from cyan ink).

C ONVERSION BETWEEN RGB AND CMY Convert White from (1, 1, 1) in RGB to (0, 0, 0) in CMY: Sometimes, an alternative CMYK model (K stands for Black ) is used in color printing (e.g., to produce darker black than simply mixing CMY). K := min (C, M, Y), C := C - K, M := M - K, Y := Y - K.

C OLOR G AMUTS The chromaticity diagram can be used to compare the "gamuts" of various possible output devices (i.e., monitors and printers). Note that a color printer cannot reproduce all the colors visible on a color monitor

C OLOR P RINTING Green paper is green because it reflects green and absorbs other wavelengths. The following table summarizes the properties of the four primary types of printing ink. dye color absorb s reflects cyanredblue and green magent a greenblue and red yellowbluered and green blackallnone To produce blue, one would mix cyan and magenta inks, as they both reflect blue while each absorbing one of green and red. Unfortunately, inks also interact in non-linear ways. This makes the process of converting a given monitor color to an equivalent printer color a challenging problem. Black ink is used to ensure that a high quality black can always be printed, and is often referred to as to K. Printers thus use a CMYK color model.

C OLOR C ONVERSION To convert from one color gamut to another is a simple procedure. Each phosphor color can be represented by a combination of the CIE XYZ primaries, yielding the following transformation from RGB to CIE XYZ: The transformation yields the color on monitor 2 which is equivalent to a given color on monitor 1. Conversion to-and-from printer gamuts is difficult. A first approximation is as follows: C = 1 - R M = 1 - G Y = 1 – B The fourth color, K, can be used to replace equal amounts of CMY: K = min(C,M,Y) C' = C - K M' = M - K Y' = Y - K

The YIQ (luminance-inphase-quadrature) model is a recoding of RGB for color television, and is a very important model for color image processing. The importance of luminance was discussed. The conversion from RGB to YIQ is given by: The luminance (Y) component contains all the information required for black and white television, and captures our perception of the relative brightness of particular colors. That we perceive green as much lighter than red, and red lighter than blue, is indicated by their respective weights of 0.587, and in the first row of the conversion matrix above. These weights should be used when converting a color image to greyscale if you want the perception of brightness to remain the same.

T HE YIQ M ODEL Figure: Image (a) shows a color test pattern, consisting of horizontal stripes of black, blue, green, cyan, red, magenta and yellow, a color ramp with constant intensity, maximal saturation, and hue changing linearly from red through green to blue, and a greyscale ramp from black to white. Image (b) shows the intensity for image (a). Note how much detail is lost. Image (c) shows the luminance. This third image accurately reflects the brightness variations perceived in the original image

HSV Color Model HSV is a projection of the RGB space RGB cubeHSV top viewHSV cone

HSV Color Model Hue, an angular measure (0 … 360)

HSV Color Model Saturation, a fractional measure (0.0 … 1.0)

HSV Color Model Value, a fractional measure (0.0 … 1.0)

HSV C OLOR M ODEL This color model is based on polar coordinates, not Cartesian coordinates. HSV is a non-linearly transformed (skewed) version of RGB cube Hue: quantity that distinguishes color family, say red from yellow, green from blue Saturation (Chroma): color intensity (strong to weak). Intensity of distinctive hue, or degree of color sensation from that of white or grey Value (luminance): light color or dark color

T HE HSI M ODEL As mentioned above, color may be specified by the three quantities hue, saturation and intensity. This is the HSI model, and the entire space of colors that may be specified in this way is shown in figure.

T HE HSI M ODEL Figure : The HSI model, showing the HSI solid on the left, and the HSI triangle on the right, formed by taking a horizontal slice through the HSI solid at a particular intensity. Hue is measured from red, and saturation is given by distance from the axis. Colors on the surface of the solid are fully saturated, i.e. pure colors, and the greyscale spectrum is on the axis of the solid. For these colors, hue is undefined.

color is a perceptual phenomenon