Color Color is a psychophysical concept depending both upon the spectral distribution of the radiant energy of the illumination source and the visual sensations.

Slides:



Advertisements
Similar presentations
ECE 472/572 - Digital Image Processing Lecture 10 - Color Image Processing 10/25/11.
Advertisements

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.
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.
Lecture 02 Colour Models in Images and Video. Light and Spectra Light is an electromagnetic wave. Its colour is characterized by the wavelength content.
COLOR and the human response to light
ECE160 Spring 2009 Lecture 4 Color in Image and Video 1 ECE160 / CMPS182 Multimedia Lecture 4: Spring 2009 Color in Image and Video.
Display Issues Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
Fundamentals of Multimedia Chapter 4 Color in Image and Video Ze-Nian Li and Mark S. Drew 건국대학교 인터넷미디어공학부 임 창 훈.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Color & Color Management. Overview I. Color Perception Definition & characteristics of color II. Color Representation RGB, CMYK, XYZ, Lab III. Color Management.
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.
Page 18/30/2015 CSE 40373/60373: Multimedia Systems 4.2 Color Models in Images  Colors models and spaces used for stored, displayed, and printed images.
CGMB 324: Multimedia System design
Computer Graphics I, Fall 2008 Image Formation.
Chapter 6: Color Image Processing Digital Image Processing.
Multimedia Basics (2) Hongli luo Fall 2010 CEIT, IPFW.
Chapter 3: Colorimetry How to measure or specify color? Color dictionary?
Chapter 4 Color in Image and Video Li & Drew1. Fundamentals of Multimedia, Chapter Color Science Light and Spectra Light is an electromagnetic wave.
Chapter 4 Color in Image and Video
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Color. There are established models of color, each discipline uses it own method for describing and discussing color intelligently.
Color in image and video Mr.Nael Aburas. outline  Color Science  Color Models in Images  Color Models in Video.
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.
Fundamentals of Multimedia Chapter 4 : Color in Image and Video 2 nd Edition 2014 Ze-Nian Li Mark S. Drew Jiangchuan Liu 1.
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
Chapter 4 Color in Image and Video Li & Drew1. Fundamentals of Multimedia, Chapter Color Science Light and Spectra Light is an electromagnetic wave.
CS 376 Introduction to Computer Graphics 01 / 24 / 2007 Instructor: Michael Eckmann.
Graphics Lecture 4: Slide 1 Interactive Computer Graphics Lecture 4: Colour.
Mixing the broad distributions of green and red yields yellow. Although the resulting spectral distribution is very different from spectral yellow. If.
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.
Chapter 4 Color in Image and Video 4.1 Color Science 4.2 Color Models in Images 4.3 Color Models in Video Iran University of Science and Technology, E-Learing.
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.
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
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:
Fundamentals of Multimedia, 2 nd ed. Chapter 4 1 Li, Drew, & Liu Chapter 4 Color in Image and Video 4.1 Color Science 4.2 Color Models in Images 4.3 Color.
1 Chapter 4 Color in Image and Video 4.1 Color Science 4.2 Color Models in Images 4.3 Color Models in Video 4.4 Further Exploration.
Multimedia systems Lecture 5: Color in Image and Video.
Color Models Light property Color models.
School of Electronics & Information Engineering
Display Issues Ed Angel
Color Image Processing
Color Image Processing
Color Image Processing
COLOR space Mohiuddin Ahmad.
Color 2017, Fall.
Color Image Processing
Color 2015, Fall.
Introduction to Computer Graphics with WebGL
Color Representation Although we can differentiate a hundred different grey-levels, we can easily differentiate thousands of colors.
Color Image Processing
Slides taken from Scott Schaefer
Color Image Processing
Color Model By : Mustafa Salam.
Presentation transcript:

Color Color is a psychophysical concept depending both upon the spectral distribution of the radiant energy of the illumination source and the visual sensations perceived by the viewer Color perception depends mainly upon the physics of light and the physiology of the visual system, which results in the following psychological color sensations:  hue: the color sensation associated with different parts of the spectrum such as red, yellow, or blue  saturation: the color sensation corresponding to the degree of hue in a color  brightness is the primary visual sensation

Color Science Light is an electromagnetic wave. Its color is characterized by the wavelength content of the light.  Laser light consists of a single wavelength: e.g., a ruby laser produces a bright, scarlet-red beam.  Most light sources produce contributions over many wavelengths.  However, humans cannot detect all light, just contributions that fall in the “visible wavelengths”.  Short wavelengths produce a blue sensation, long wavelengths produce a red one. Visible light is an electromagnetic wave in the range 400 nm to 700 nm (where nm stands for nanometer, 10 9 meters).

Color Science Fig. 4.2 shows the relative power in each wavelength interval for typical outdoor light on a sunny day. This type of curve is called a Spectral Power Distribution (SPD) or a spectrum.

Human Vision The eye works like a camera, with the lens focusing an image onto the retina (upside-down and left-right reversed).  The retina consists of an array of rods and three kinds of cones.  The rods come into play when light levels are low and produce an image in shades of gray  For higher light levels, the cones each produce a signal. Because of their differing pigments, the three kinds of cones are most sensitive to red (R), green (G), and blue (B) light.

Human Vision The eye is most sensitive to light in the middle of the visible spectrum.  The sensitivity of our receptors is also a function of wavelength

Human Vision These spectral sensitivity functions can be represented by a vector function Since an SPD is a sum of single frequency lights, we can add up the cone responses for all wavelengths, waited by the sensitivity functions at those wavelengths leading to three integrals

Image Formation Surfaces reflect different amounts of light at different wavelengths, and dark surfaces reflect less energy than light surfaces. Fig. 4.4 shows the surface spectral reflectance from (1) orange sneakers and (2) faded bluejeans. The reflectance function is denoted S( ).

Image Formation

So image formation involves an illuminant with SPD E( ) reflects off a surface with spectral reflectance function S( ) and is filtered by the eyes’ cone functions q( ) as shown in figure 4.5 The function C( ) is called the color signal and is formed by the product of the illuminant and the reflectance

Image Formation

The resulting equations, taking into account reflectance are as follows

Camera Systems Camera systems are made in a similar fashion; studio- quality camera has three signals produced at each pixel location (corresponding to a retinal position). Analog signals are converted to digital, truncated to integers,and stored. If the precision used is 8-bit, then the maximum value for any of R; G;B is 255, and the minimum is 0. However, the light entering the eye of the computer user is that which is emitted by the screen|the screen is essentially a self-luminous source. Therefore we need to know the light E( ) entering the eye.

Gamma Correction The light emitted is in fact roughly proportional to the voltage raised to a power; this power is called gamma, with symbol . (a) Thus, if the file value in the red channel is R, the screen emits light proportional to R , with SPD equal to that of the red phosphor paint on the screen that is the target of the red channel electron gun. The value of gamma is around 2.2. (b) It is customary to append a prime to signals that are gamma-corrected by raising to the power (1/  ) before transmission. Thus we arrive at linear signals:

Gamma Correction Fig. 4.6(a) shows light output with no gamma- correction applied. We see that darker values are displayed too dark. This is also shown in Fig. 4.7(a), which displays a linear ramp from left to right. Fig. 4.6(b) shows the effect of pre-correcting signals by applying the power law R 1/  ; it is customary to normalize voltage to the range [0,1].

Gamma Correction

The combined effect is shown in Fig. 4.7(b). Here, a ramp is shown in 16 steps from gray-level 0 to gray-level 255.

Color Systems Combinations of three primary colors can match any unknown color for observers with normal color vision Often, we choose red, green, and blue as the three primary colors, and we can then represent some color C by a mixture of red, green, and blue: C = r C R + g C G + b C B RGB is the color model (a conceptual system for specifying colors numerically) used in computer monitors This model is additive

Color-Matching Functions The amounts of R, G, B to match any color have been found by experiment as shown below

Color-Matching Functions Since the red function has a negative lobe, three fake primary colors were devised that lead to primaries with only positive values The three functions are called x( ), y( ) and z( ). The middle function y matches the luminous efficiency curve V( )

Color-Matching Functions

For a general SPD E( ), the essential “colorimetric” information required to characterize a color is the set of tristimulus values X, Y, Z defined in analogy to (Eq. 4.2) as (Y == luminance):

Color-Matching Functions The CIE devised a 2D diagram representing the 3D (X,Y,Z) values as shown below

White Spectra The CIE defines several “white” spectra: illuminant A, illuminant C, and standard daylights D65 and D100. (Fig. 4.12)

CIE Diagram Chromaticities on the spectrum locus (the “horseshoe” in Fig. 4.11) represent “pure” colors. These are the most “saturated”. Colors close to the white point are more unsaturated. The chromaticity diagram: for a mixture of two lights, the resulting chromaticity lies on the straight line joining the chromaticities of the two lights. The “dominant wavelength” is the position on the spectrum locus intersected by a line joining the white point to the given color, and extended through it.

Color Monitor Specifications Color monitors are specified in part by the white point chromaticity that is desired if the RGB electron guns are all activated at their highest value (1.0, if we normalize to [0,1]). We want the monitor to display a speci ed white when when R’=G’=B’=1. There are several monitor specifcations in current use (Table 4.1).

Color Monitor Specifications

Out of Gamut Colors We can use the monitor specifications to convert a CIE (x,y,z) triple into RGB values for the monitor

Out of Gamut Colors What do we do if any of the RGB numbers is negative? - that color, visible to humans, is out- of-gamut for our display. One method: simply use the closest in-gamut color available, as in Fig Another approach: select the closest complementary color.

Out of Gamut Colors

RGB Color Model for CRT Displays 1. We expect to be able to use 8 bits per color channel for color that is accurate enough. 2. However, in fact we have to use about 12 bits per channel to avoid an aliasing effect in dark image areas - contour bands that result from gamma correction. 3. For images produced from computer graphics, we store integers proportional to intensity in the frame buffer. So should have a gamma correction LUT between the frame buffer and the CRT. 4. If gamma correction is applied to floats before quantizing to integers, before storage in the frame buffer, then in fact we can use only 8 bits per channel and still avoid contouring artifacts.

Color Systems CMYK is the color model used by printing presses  This model is subtractive Light is absorbed, or subtracted by cyan, magenta, and yellow ink In process-color printing, layers of translucent inks are used, each subtracting certain colors of light  Colors that are not absorbed pass through to the paper below which reflects all color  For example, magenta ink looks magenta because it allows magenta light to pass through but absorbs all other colors

Color Systems

Device Independent Color Systems It is very difficult to accurately specify color since the perceived characteristics cannot be measured directly Print shops use swatch books (e.g. Letraset’s Pantone Matching System) of named, numbered colors to accurately specify colors Differences in press settings, and ink and paper brands may result in different colors being printed For this reason, there is a rising interest in device- independent color systems

Device Independent Color Systems L*a*b color model is an international standard for color measurement It is designed to be device independent, creating consistent colors regardless of the device used to create or output the image  L is the luminance or lightness component  a is the is the green to red component  b is the blue to yellow component

L*a*b Color System

Color Gamuts

Color Models in Video Video Color Transforms (a) Largely derive from older analog methods of coding color for TV. Luminance is separated from color information. (b) For example, a matrix transform method similar to Eq. (4.9) called YIQ is used to transmit TV signals in North America and Japan. (c) This coding also makes its way into VHS video tape coding in these countries since video tape technologies also use YIQ. (d) In Europe, video tape uses the PAL or SECAM codings, which are based on TV that uses a matrix transform called YUV. (e) Finally, digital video mostly uses a matrix transform called YCbCr that is closely related to YUV

YUV Color Model YUV color model has one luminance channel (Y) and two chrominance (color) channels - U and V The chrominance channels actually represent the difference between colors and a reference white (luminance) Luminance represents the grayscale (black and white) information For B/W television, the U and V can be ignored

YIQ Color Model The YIQ color model is used in NTSC TV The Y is the same as in YUV I and Q are phase shifted from U and V to allow for more efficient transmission Note that the chrominance information is less perceptually important than the luminance, and hence less bandwidth is used for it

YCbCr Color Model Finally, the YCbCr color model is used in the Rec. 601 digital video standard. Cb and Cr are the chrominance components