Color. Acknowledgement Most of this lecture note has been taken from the lecture note on Multimedia and HCI course of University of Stirling, UK. I’d.

Slides:



Advertisements
Similar presentations
Introduction to Colour Management
Advertisements

Introduction to Computer Graphics ColorColor. Specifying Color Color perception usually involves three quantities: Hue: Distinguishes between colors like.
ECE 472/572 - Digital Image Processing Lecture 10 - Color Image Processing 10/25/11.
Color Image Processing
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
Colour Theory and Application B.Sc. (Hons) Multimedia ComputingMedia Technologies.
Multi-media Graphics JOUR 205 Color Models & Color Space 5 ways of specifying colors.
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.
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.
Color Model AbdelRahman Abu_absah Teacher: Dr. Sana'a Alsayegh.
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.
Color Systems. Subtractive Color The removal of light waves to perceive color: –Local or physical attributes of pigments, dyes, or inks reflect certain.
Kleur Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 6 This presentation © 2004, MacAvon Media Productions.
Colour Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman
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
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.
CGMB 324: Multimedia System design
Any questions about the current assignment? (I’ll do my best to help!)
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.
Colours and Computer Jimmy Lam The Hong Kong Polytechnic University.
Color. There are established models of color, each discipline uses it own method for describing and discussing color intelligently.
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 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.
1 Chapter 2: Color Basics. 2 What is light?  EM wave, radiation  Visible light has a spectrum wavelength from 400 – 780 nm.  Light can be composed.
CSC361/ Digital Media Burg/Wong
COLORCOLOR Angel 1.4 and 2.4 J. Lindblad
CS6825: Color 2 Light and Color Light is electromagnetic radiation Light is electromagnetic radiation Visible light: nm. range Visible light:
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 Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.
Color Web Design Professor Frank. Color Displays Based on cathode ray tubes (CRTs) or back- lighted flat-screen Monitors transmit light - displays use.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
BASIC COLOUR COURSE Algemeen
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
ECE 638: Principles of Digital Color Imaging Systems Lecture 12: Characterization of Illuminants and Nonlinear Response of Human Visual System.
Computer Graphics: Achromatic and Coloured Light.
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.
Color Image Processing
Color Image Processing
COLOR space Mohiuddin Ahmad.
Chapter 6: Color Image Processing
Color Image Processing
Colour Theory Fundamentals
ECE 638: Principles of Digital Color Imaging Systems
Color Image Processing
Slides taken from Scott Schaefer
Color Image Processing
Color Model By : Mustafa Salam.
Presentation transcript:

Color

Acknowledgement Most of this lecture note has been taken from the lecture note on Multimedia and HCI course of University of Stirling, UK. I’d like to thank Prof. Leslie Smith and Dr. Bruce Graham who create such a good work on those lecture notes.

Outline What is colour? Computer-centric view of colour Colour models Monitor production of colour Accurate colour reproduction

Electromagnetic Spectrum

What is colour? There are two possible reasons why an object may be coloured: – It may reflect light unevenly over the visible spectrum – It may emit light unevenly over the visible spectrum. If an object reflects light evenly, it will be white or grey or black If it emits light whose energy is spread evenly over the spectrum, the light will be white.

Why are things coloured? Most things reflect, rather than emit, light Materials have different absorption and scattering amounts for the different wavelengths of light Examples: A yellow object absorbs a lot of blue light, but scatters in the longer (red and green) wavelengths Black clothing gets very hot in sunlight, because it doesn’t scatter much light (obviously not, as it’s black!) so it absorbs a lot (as heat)

Additive Colour Matching This is the mixing of different coloured lights – Red+green produces yellow – Green+blue produces cyan – Red+blue produces magenta If you carefully choose the wavelength distributions of the primaries (red,green,blue), you can get white light. The additive colour model RGB corresponds to that used by human vision (approximately!)

Maxwell’s Trichromatic Color Theory

Colour Models Different ways of constructing colours –some ways are from primaries –some are more numerical ways Some of the more common systems: –RGB (red green blue) –CMY (cyan magenta yellow) –CMYK (cyan magenta yellow black) –HSV (hue saturation value) –CIE (Commission Internationale d’Eclairange) primaries

RGB Additive colour scheme Adds red, green and blue amounts starting from black. Typical colour scheme used in graphics programming, image files, HTML etc. R, G, B values typically all from (so stored in 1 byte) Examples: Orange R=255 G=135 B=75 Turquoise R=23 G=173 B=178

CMY and CMYK CMY = Cyan Magenta Yellow CMYK has added black and is used for printing (more in later lectures) Amount of Cyan in a colour is the same as how much red is “missing” in the colour compared to white (with the red fully on) Similarly, – Amount of Magenta = amount of green missing – Amount of Yellow = amount of blue missing Subtractive system

Subtractive Color Model : CMYK

HSV/HSB/HSL Closer to how we think about colour Hue – which colour along spectrum of red-yellow-green- blue-violet Lightness or Brightness or Value – how much or little light is produced from an area Saturation or Colourfulness – how much colour it exhibits (greys are very unsaturated)

Hue

HSV and RGB

Device-Dependent Colour Models Colour models so far: RGB, HSV,CMY,CMYK They are all device-dependent – specific to particular hardware – e.g. a colour with RGB values (140,60,203) will show up as slightly different colours on different monitors There is a need to achieve colour fidelity – imagine an image being created, displayed on the screen, then printed. It can be important to keep the colours the same at each stage of the process. What we need: a device-independent colour model.

CIE and the Standard Observer Based on experiments, the CIE (Committee Internationale de l’Éclairage) in 1931 defined a – Standard Observer – A standard set of three primaries (X,Y,Z) These primaries are “imaginary” primaries in that they do not actually correspond to real visible colours They are “not real” in the sense that they are more saturated (intensely colourful) than real colours Y is chosen to match a standard measure of brightness - also known as Gamma

Wavelength in nanometers

XYZ and Device Independence XYZ is one industry standard for a device independent colour space Some printers and monitors are capable of using this standard to produce colour output that is faithful to the input colours What happens (in brief) is that the device is calibrated, so that it knows how to convert to and from XYZ and its own (device-dependent) colour model (RGB or CMYK)

L*a*b* color space one of the most widely used and useful of the color models. developed by CIE in 1976 as a refinement of the XYZ color space. device independent and represents every color through three components. - The L value represents luminance and ranges from 0 for black to 100 for white in uniform steps. - The a and b values are represented as +a/-a for red/green and +b/-b for blue/yellow. One of the main application area of the L*a*b color space is in color faxing and JPEG compression.

Generating Colour Issues to consider in colour production: Physical limits of hardware Range of colours available Ways to circumvent limits – e.g. by trying to increase number of colours Non-linearity (a.k.a. gamma correction) Portability – i.e. how to keep the colours of an image true to life

Monitors Electron guns at the back fire a stream of electrons towards the front The electrons are accelerated towards the front of the tube by a grid which has a large positive voltage applied to it The front is covered with phosphors (RGB in colour monitors) which emit light when hit by electrons The higher the voltage applied to the guns, the more the current, and the greater the brightness of the phosphors

Monitors (2) The beams of electrons sweep from left to right and top to bottom (using the deflection coils) to cover the whole screen Voltages applied to the guns is varied, to adjust the intensity of the electron beams, and hence the brightness of individual pixels The shadow mask ensures the right guns hit the right coloured phosphors The data for the pixels is stored in Video RAM

CRT (Cathode Ray Tube)

Monitor Gamut The gamut is the range of displayable colour Choice of exactly which primaries (phosphor colours) is a trade-off between – obtaining a large gamut – making the display sufficiently bright to see easily Note that the gamut shrinks as ambient (surrounding) light increases – as you will know from trying to use a monitor when the sun is shining The darkest colours are lost first

Gamma Correction Important issue to be aware of concerning monitors Brightness is an easily understandable concept but a subjective one – the same level of light is perceived to be dim in a bright environment, and very bright in a dark environment Luminance (Y, gamma) is an objective measure designed to correspond to our idea of brightness – measure of power, weighted by a particular spectral sensitivity function characteristic of human vision

Gamma Correction Roughly speaking... – Luminance (Y) proportional to Voltage gamma – Gamma approximately 2.2 In other words, a linear increase in the voltage does not mean a linear increase in brightness! Gamma correctionmay be needed to produce linearity.

This nonlinear relationship is roughly a power function, i.e. displayed_intensity = pixel_value^gamma. Most monitors have a gamma between 1.7 and 2.7. Gamma correction consists of applying the inverse of this relationship to the image before display, i.e. by computing new_pixel_value = old_pixel_value^(1.0/gamma).

Gamma corrected   No gamma corrected

Accurate Colour Matching Monitor calibration alone doesn’t ensure colour matching Colour matching technology requires software to perform calculations matching colours between screen and printer (or other devices) The calculations are between the colour models used by the devices (e.g. the RGB of a monitor or the CMYK of a printer) and an objective deviceindependent colour model, such as a CIE colour model – XYZ, or Lab (as used in Photoshop)

Colour Matching Systems Examples: PANTONE has about 1000 unique colours identified by swatches COLORCURVE identifies colours by a lightness value, a red/green value, and a blue/yellow value TRUMATCH and FOCOLTONE use “swatch books” that allow the user to select CMYK colours according to what is printed on the printer How to use: Install software on computer, print out samples, then choose your colour according to the printout