Introduction to Computer Graphics

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.
Informationsteknologi Monday, October 29, 2007Computer Graphics - Class 21 Today’s class Graphics programming Color.
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?.
COLOR and the human response to light
Display Issues Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
1 Perception. 2 “The consciousness or awareness of objects or other data through the medium of the senses.”
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.
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.
Color & Color Management. Overview I. Color Perception Definition & characteristics of color II. Color Representation RGB, CMYK, XYZ, Lab III. Color Management.
Digital Image Processing Colour Image Processing.
CS 376 Introduction to Computer Graphics 01 / 26 / 2007 Instructor: Michael Eckmann.
C O L O R S PRINT VS MULTIMEDIA. Main Difference Print –Primary Colors CMYK Cyan, Magenta, Yellow, Black - Subtractive Color system –Add together = black.
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.
Graphics Graphics Korea University cgvr.korea.ac.kr Raster Graphics 고려대학교 컴퓨터 그래픽스 연구실.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
CS 325 Introduction to Computer Graphics 01 / 29 / 2010 Instructor: Michael Eckmann.
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.
Week 6 Colour. 2 Overview By the end of this lecture you will be familiar with: –Human visual system –Foundations of light and colour –HSV and user-oriented.
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.
CS654: Digital Image Analysis Lecture 29: Color Image Processing.
Now let’s focus on… The visible spectrum The visible spectrum –Light and pigment.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
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.
COLOR THEORY Presented by : Md Ashequr Rahman COSC 5335 – Computer Graphics Date : Oct 29, 2002.
CS-321 Dr. Mark L. Hornick 1 Color Perception. CS-321 Dr. Mark L. Hornick 2 Color Perception.
Chapter 12 Color Models and Color Applications
Color Models (Review) (from CPSC 453). Color ModelsColor Models –Introduction –Describing Colors –Color Perception –Color Spaces Color ModelsColor Models.
Computer Graphics: Achromatic and Coloured Light.
The Visible Spectrum And how we see it. What is Visible Light? The cones in the eye are only sensitive to a narrow range of EM frequencies. Visible 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
Design Concepts: Module A: The Science of Color
Color Theory.
Color Image Processing
Color Image Processing
Color Image Processing
COLOR space Mohiuddin Ahmad.
Chapter 6: Color Image Processing
Color Image Processing
Colour Theory Fundamentals
Color Image Processing
Slides taken from Scott Schaefer
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?
Presentation transcript:

Introduction to Computer Graphics EEL 5771-001 Introduction to Computer Graphics PPT12: Color models

Properties of light What is color? In physical terms, color is electromagnetic radiation within a narrow frequency band Other frequency bands include Radio waves, microwaves, infrared waves, and x-rays Spectral Color Each frequency value within the visible region corresponds to a distinct spectral color At the low end is red and at the high end is violet For a spectral color, its wavelength and frequency are inversely proportional c = λf λ is the wavelength f is the frequency Color frequency band Defined in terms of wavelength 780 nm to 380nm

Properties of light Light Oscillating transverse electric and magnetic fields propagating through space Frequency The rate of the oscillation between the fields Period The time between any two consecutive positions on the wave that have the same amplitude T = 1/f Wavelength The distance the wave travels between the beginning of two consecutive oscillations c = λf Color of objects When light hits an object some of the frequencies are absorbed while others are reflected The color of the object is the combination of the reflected frequencies Color of light The red end of the spectrum is described as having a dominant frequency The dominant frequency of a light source is called its hue, a.k.a. the color of the light

Properties of light Energy distribution of white light Each frequency component within the visible range contributes approximately equally Energy distribution of dominant frequency If one frequency contributes much more than other frequencies The light will be the hue of that frequency

Color models Primary colors The hues that are chosen as the sources for all other color mixing in the color model Color gamut The set of all colors that can be produced from the primary colors Complementary colors Two primary colors that produce white Example: red and cyan Color mixing and matching functions Define the amount of each of the primary colors needed to produce any spectral color Example graph below

Color mixing Generating tints, shades, and tones Starting with a pure color Mixing with black will produce different shades Mixing with white will produce different tints Mixing with both black and white will produce different tones Artist’s color scheme The set of colors that the artist uses to create a piece of art

Color models  

Chromaticity diagram The image to the right is the chromaticity diagram for the normalized XYZ color space The x and y coordinates are the x and y values from the equations on the previous slide The output color is the color at that coordinate location Points along the curve are the spectral colors Except the line connecting red and violet This is known as the purple line and it is not part of the spectrum

Chromaticity diagram Color gamut All of the possible colors that can be mixed from some given colors In the chromaticity diagram a color gamut Between two colors is identified as the straight line between them Between three or more colors is the polygon formed by the points Complementary colors C is the point of white light in the diagram Complementary colors can be seen on the diagram The line between the colors must pass through C The respective distance each color is from C on the line Represents the amount of each color that will be needed to mix white Color gamut of 3 colors AA and D are complementary

Chromaticity diagram The dominant wavelength of a color can be determined by drawing the straight line through the sample point and C The spectral color that the line hits is the dominant wavelength of the sample color The purity is defined as the relative distance the sample point is from C compared to the distance from C to the dominant wavelength

RGB color model Tri-stimulus theory of vision Our eyes perceive color through the stimulation of three visual pigments in the cones of the retina One of the pigments is most sensitive to red light Another is most sensitive to green light And the last pigment is most sensitive to blue light By comparing the intensities in a light source, we perceive the color of the light This theory is the basis for the RGB color model This is the model used to output color from computer monitors This model can be represented by the unit cube on the right

RGB color model Color cube Used to represent the RGB color model Examples below The origin is black White is opposite of black at coordinate (1,1,1) Each axis represents one of the primary colors RGB color gamut It is clear from the diagram below that the RGB gamut cannot display all colors

YIQ color model The YIQ color model NTSC color encoding for forming a composite video signal Y component the same as for XYZ color model (luminance) I and Q give the chromaticity information I contains orange-cyan color information Y contains green-magenta color information Y is stored with higher precision than I and Q because we can detect slight changes in brightness more easily than slight changes in hue Conversion between RGB and YIQ Y = 0.299 R + 0.587 G + 0.114 B I = R – Y Q = B – Y From YIQ to RGB

CMY color model CMY color model Very similar to GRB RGB is additive CMY is subtractive C is cyan M is magenta Y is Yellow Looking at the CMY color cube to the right It is clear that it is similar to RGB Except the origin is now white (1, 1, 1) is now black Because it is the subtraction of all three colors conversions

CMYK color model From CMYK to RGB The CMY printing process uses four ink dots Three are the CMY components The last is a black component K is the black parameter The conversions between CMYK and RGB are very similar to those between CMY and RGB From RGB to CMYK Use RGB to CMY conversion Set k = max(R, G, B) and then subtract k from each of C, M, and Y From CMYK to RGB Use CMY to RGB conversion Set k = min(R, G, B) Subtract k from R, G, and B

HSV color model Sometimes easier to understand concept by using the concepts rather than a set of primary colors HSV is centered on idea of taking a spectral color and then mixing it with black and white H parameter represents the hue S parameter represents the saturation V parameter represents the value The interaction between the three parameters can be seen in the image below H is the rotation about the vertical axis S is horizontal distance V is the vertical distance

HSV color model Generating tones with hue, value and saturation Start with a hue This is the base color The value of S is the purity of the color A value of 1 is pure A value of 0 is grayscale The value of V is the amount of black added to the color A value of 1 means no black added A value of 0 means the color will be black

HLS color model Similar to the HSV color model, HLS is based on intuitive color parameters Used by the Tektronix Corporation The color space of the model can be seen in the image below Has a double-cone shape H parameter is the hue L parameter is the lightness S parameter is the saturation To get a color in the HLS color model First, choose a hue Then increasing L brightens the color Decrease L to darken the color Decrease S to move toward grayscale

References https://color.adobe.com/ http://imagine.gsfc.nasa.gov/Images/science/EM_spectrum_compare_level1_lg.jpg http://www.mathpages.com/home/kmath578/kmath578.htm http://escience.anu.edu.au/lecture/cg/Color/hue.en.html https://en.wikipedia.org/wiki/CIE_1931_color_space http://power.arc.losrios.edu/~worsfob/Web/colors.html http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/OWENS/LECT14/lecture12.html http://escience.anu.edu.au/lecture/cg/Color/printCG.en.html https://drnsg.files.wordpress.com/2013/01/dominantwavelengthpurity.png http://www.willamette.edu/~gorr/classes/GeneralGraphics/Color/tristimulus.htm http://www.eizoglobal.com/library/basics/lcd_monitor_color_gamut/ http://i.stack.imgur.com/foGIn.png http://dystopiancode.blogspot.com/2012/06/yiq-rgb-conversion-algorithms.html http://www.cs.princeton.edu/courses/archive/fall99/cs426/lectures/raster/sld024.htm https://www.cs.cf.ac.uk/Dave/Multimedia/node190.html https://www.optimalprint.com/en/color-guide https://en.wikipedia.org/wiki/HSL_and_HSV http://infohost.nmt.edu/tcc/help/pubs/colortheory/web/hsv.html http://www.autodesk.com/techpubs/aliasstudio/2010/index.html?url=WS1a9193826455f5ff-54f556ca1166ac9ee9e-7837.htm,topicNumber=d0e195248