4.1 Si23_03 SI23 Introduction to Computer Graphics Lecture 4 – Colour Models.

Slides:



Advertisements
Similar presentations
Prof. Muhammad Saeed. FUUASTDept. Comp. Sc. & IT2 Wavelength Note that the rainbow does not contain any magenta. It is nonspectral. Color Models:
Advertisements

Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
3.1 Si23_03 SI23 Introduction to Computer Graphics Lecture 3 – Colour Vision.
SI23 Introduction to Computer Graphics
16.1 Si23_03 SI23 Introduction to Computer Graphics Lecture 16 – Some Special Rendering Effects.
5.1 si31_2001 SI31 Advanced Computer Graphics AGR Lecture 5 A Simple Reflection Model.
ZMQS ZMQS
25 seconds left…...
We will resume in: 25 Minutes.
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.
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.
Introduction to Computer Graphics ColorColor. Specifying Color Color perception usually involves three quantities: Hue: Distinguishes between colors like.
Fundamentals of Digital Imaging
School of Computing Science Simon Fraser University
HCI 530 – Seminar in Advanced Topics 10/8/2004Damian Schofield1 Assignment 1 Answer the following questions – I am looking for proof that you have understood.
CS 4731: Computer Graphics Lecture 24: Color Science
SWE 423: Multimedia Systems Chapter 4: Graphics and Images (2)
© 2002 by Yu Hen Hu 1 ECE533 Digital Image Processing Color Imaging.
Color.
Color Representation Lecture 3 CIEXYZ Color Space CIE Chromaticity Space HSL,HSV,LUV,CIELab X Z Y.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
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.
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.
Course Website: Digital Image Processing Colour Image Processing.
Digital Image Processing Colour Image Processing.
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.
Color Management. How does the color work?  Spectrum Spectrum is a contiguous band of wavelengths, which is emitted, reflected or transmitted by different.
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?
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
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.
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.
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.
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.
Mixing the broad distributions of green and red yields yellow. Although the resulting spectral distribution is very different from spectral yellow. If.
CS5600 Computer Graphics by Rich Riesenfeld Spring 2006 Lecture Set 11.
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.
Greg Humphreys CS445: Intro Graphics University of Virginia, Fall 2003 Raster Graphics and Color Greg Humphreys University of Virginia CS 445, Fall 2003.
CS-321 Dr. Mark L. Hornick 1 Color Perception. CS-321 Dr. Mark L. Hornick 2 Color Perception.
Chapter 4: Color in Image and Video
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
Color Image Processing
Color Image Processing
COLOR space Mohiuddin Ahmad.
Color Image Processing
CITA 342 Section 7 Working with Color.
Color Image Processing
Slides taken from Scott Schaefer
Color Image Processing
Color Models l Ultraviolet Infrared 10 Microwave 10
Color Theory What is color? How do we perceive it?
Presentation transcript:

4.1 Si23_03 SI23 Introduction to Computer Graphics Lecture 4 – Colour Models

4.2 Si23_03 Colour Models n In order to help us specify colour, a number of attempts have been made to define colour spaces – A formal method of representing the visual sensations of colour n A colour will be defined by its position in this space

4.3 Si23_03 RGB Colour Model 0,0,0 Black 1,0,0 Red 0,1,0 Green 0,0,1 Blue 1,1,1 White 1,0,1 Magenta 0,1,1 Cyan 1,1,0 Yellow 3D cube with RGB device signals aligned with axes of cube Black at origin; red, green, blue at end of axes; grey values along long diagonal

4.4 Si23_03 RGB Cube

4.5 Si23_03 RGB Colour Model n Advantages – relates easily to CRT operation – easy to implement n Disadvantages – RGB values generally not transferable between devices (no standard `red phosphor) – not perceptually uniform (colours close together near white are distinguishable, but not true near black) – not intuitive - eg where is skin colour?

4.6 Si23_03 Hue, Lightness, Saturation Model n The Hue, Lightness, Saturation (HLS) colour model is more intuitive RedCyan Yellow Green Magenta Blue Hues are placed on a hexagon, with red at 0, green at 120, and blue at 240 degrees

4.7 Si23_03 Hue, Lightness, Saturation Model RedCyan Yellow Green Magenta Blue Lightness 1.0 White Black0.0 Lightness axis goes from 0.0 to 1.0

4.8 Si23_03 Hue, Lightness, Saturation Model RedCyan Yellow Green Magenta Blue Lightness 1.0 White Black0.0 Saturation is given by the distance from the central axis

4.9 Si23_03 Hue, Lightness, Saturation Model RedCyan Yellow Green Magenta Blue Lightness 1.0 White Black0.0 L S H The final model is a double hexagonal cone

4.10 Si23_03 Hue, Lightness, Saturation Model n This model is commonly used in computer graphics n Advantages – intuitive: choose hue, vary lightness, vary saturation n Disadvantages – directly related to RGB (cube stood on end) so different on different monitors – not perceptually uniform

4.11 Si23_03 Hue, Saturation and Value (HSV) n Alternative method is known as HSV n Both HLS and HSV widely used in computer graphics RedCyan Yellow Green Magenta Blue Black White V S H

4.12 Si23_03 CIE Colour System n Commission Internationale de LEclairage (CIE) have developed the most accurate colour specification system n Recall (lecture 3, slide 11/12) the colour matching experiments where observers matched test lights of each wavelength against combinations of R (700nm), G (546nm), B (436nm) - and averaged to give the `CIE standard observer

4.13 Si23_03 Colour Matching This gives set of three curves showing relative amounts of each primary required at each wavelength BG R relative intensity Note curves (esp red) go negative! This means that the primary light had to be repositioned so as to add to the test light. Cyan at 500nm for example cannot be matched by blue and green, but must be diluted with red.

4.14 Si23_03 n Tristimulus functions F x, F y, F z produced as a combination of the R,G,B matching functions Colour of any wavelength is now matched by positive amounts of F x, F y, F z F y matches the combined response of cones - ie the luminance efficiency of the eye CIE t-fun F x ( ) = 0.49R( ) G( ) B( ) F y ( ) = 0.18R( ) G( ) B( ) F z ( ) = 0.00R( ) G( ) B( ) FzFz CIE Tristimulus Functions FyFy FxFx

4.15 Si23_03 Tristimulus Values n Colour of light in CIE is measured by tristimulus values X,Y,Z FxFx FyFy FzFz CIE t-fun Light source X = 25.3 Y =19.6 Z =13.3 For each, take light source power, multiply by CIE F x -value and add over all wavelengths to get X; similarly for Y and Z. Tristimulus values

4.16 Si23_03 CIE Colour Space n Thus any colour can be uniquely defined in terms of co-ordinates (X,Y,Z) n The set of all visible colours forms a cone shape n For convenience, it is common to take a slice through the cone to get a 2D colour diagram - slicing so that X+Y+Z=1 x = X / ( X+Y+Z ) y = Y / ( X+Y+Z)

4.17 Si23_03

4.18 Si23_03 CIE Colour Diagram red green cyan purple y 1.0 x 0 pure colours lie on perimeter white at centre dot colours become more saturated on moving from white to boundary axes are outside the horseshoe

4.19 Si23_03 CIE Colour Diagram red green cyan purple y 1.0 x 0 Combinations of two colours, A and B, represented as straight line between A and B in diagram. A B

4.20 Si23_03 Colour Gamuts red green cyan purple y 1.0 x 0 indicates colour of RGB phosphors indicates the colour gamut - set of colours that can be produced by that monitor G R B

4.21 Si23_03 CIE Colour Diagram red green cyan purple y 1.0 x 0 W pure colour Line from pure colour to white gives effect of desaturating the colour

4.22 Si23_03 CIELUV Space n The CIE 1931 space is not wholly satisfactory – X, Y, Z primaries are imaginary sources – Space is non-uniform n Led to publication in 1976 of the CIELUV uniform colour spacee Cross section through CIELUV model

4.23 Si23_03 Colour Naming System

4.24 Si23_03 Web Colours n For Web pages, colour specified as R,G,B values in range – Specified in the form #RRGGBB where RR GG BB are hexadecimal values – Thus (255,0,0) = #ff0000 – Also with names n Netscape defined set of 216 (6x6x6) web safe colours