Lecture 02 Colour Models in Images and Video. Light and Spectra Light is an electromagnetic wave. Its colour is characterized by the wavelength content.

Slides:



Advertisements
Similar presentations
Introduction to Computer Graphics ColorColor. Specifying Color Color perception usually involves three quantities: Hue: Distinguishes between colors like.
Advertisements

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.
The eyes have three different kinds of color receptors; One kind is most sensitive to short wavelengths, one to middle wavelengths, and one to long wavelengths.
School of Computing Science Simon Fraser University
SWE 423: Multimedia Systems Chapter 4: Graphics and Images (2)
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 건국대학교 인터넷미디어공학부 임 창 훈.
CSc 461/561 CSc 461/561 Multimedia Systems Part A: 2. Image.
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.
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.
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
How do we perceive colour? How do colours add?. What is colour? Light comes in many “colours”. Light is an electromagnetic wave. Each “colour” is created.
CGMB 324: Multimedia System design
Multimedia Basics (2) Hongli luo Fall 2010 CEIT, IPFW.
Color Management. How does the color work?  Spectrum Spectrum is a contiguous band of wavelengths, which is emitted, reflected or transmitted by different.
Color Color is a psychophysical concept depending both upon the spectral distribution of the radiant energy of the illumination source and the visual sensations.
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
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.
Fundamentals of Multimedia Chapter 4 : Color in Image and Video 2 nd Edition 2014 Ze-Nian Li Mark S. Drew Jiangchuan Liu 1.
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
Chapter 4 Color in Image and Video Li & Drew1. Fundamentals of Multimedia, Chapter Color Science Light and Spectra Light is an electromagnetic wave.
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.
COLOR.
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.
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.
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.
Lesson 2. Review - Energy in a Wave A wave is a disturbance that transfers energy from one point to another without transferring matter. In a water wave,
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
David Luebke2/23/2016 CS 551 / 645: Introductory Computer Graphics Color Continued Clipping in 3D.
ECE 638: Principles of Digital Color Imaging Systems Lecture 12: Characterization of Illuminants and Nonlinear Response of Human Visual System.
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:
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.
Digital Image Processing Lecture 12: Color Image Processing Naveed Ejaz.
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
Color Image Processing
Color Image Processing
Color Image Processing
COLOR space Mohiuddin Ahmad.
Colour theory.
Chapter 6: Color Image Processing
Color Image Processing
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
Presentation transcript:

Lecture 02 Colour Models in Images and Video

Light and Spectra Light is an electromagnetic wave. Its colour 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 wavelength (where nm stands for nanometres, meters).

Spectral Power Distribution (SPD) SPD for for typical outdoor light. The symbol for wavelength is λ. This curve is called E(λ).

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 a image in shades of grey (”all cats are grey at night!”). 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. It seems likely that the brain makes use of differences R-G, G-B, and B-R, as well as combining all of R, G, and B into a high-light-level achromatic channel.

Spectral Sensitivity of the Eye R,G, and B cones, and Luminous Efficiency curve V(λ). These spectral sensitivity functions are usually denoted by letters other than ”R, G, B”; here let’s use a vector function q(λ), with components q(λ) = (q R (λ), q G (λ), q B (λ)) T

Spectral Sensitivity of the Eye 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 λ. The Blue receptor sensitivity is not shown to scale because it is much smaller than the curves for Red or Green – Blue is a late addition, in evolution. Statistically, Blue is the favourite colour of humans, regardless of nationality.

The response in each colour channel for daylight The response in each colour channel in the eye is proportional to the number of neurons firing. A laser light at wavelength would result in a certain number of neurons firing. An SPD is a combination of single-frequency lights (like ”lasers”), so we add up the cone responses for all wavelengths, weighted by the eye’s relative response at that wavelength. We can succinctly write down this idea in the form of an integral: R = ∫ E(λ)q R (λ)dλ G = ∫ E(λ)q G (λ)dλ B = ∫ E(λ)q B (λ)dλ

Luminous Efficiency curve The rod sensitivity curve looks like the luminous-efficiency function V(λ) but is shifted to the red end of the spectrum. The achromatic channel produced by the cones is approximately proportional to 2R+G+B/20.

The Image Formation Model

Surface reflectance Surfaces reflect different amounts of light at different wavelengths, and dark surfaces reflect less energy than light surfaces. The reflectance function is denoted S(λ). Image formation is thus: Light from the illuminant with SPD E(λ) impinges on a surface, with surface spectral reflectance function S(λ), is reflected, and then is filtered by the eye’s cone functions q(λ). The function C(λ) is called the colour signal and consists of the product of E(λ), the illuminant, times S(λ), the reflectance: C(λ) = E(λ)S(λ)

The Image Formation R = ∫ E(λ)S(λ)q R (λ)dλ G = ∫ E(λ)S(λ)q G (λ)dλ B = ∫ E(λ)S(λ)q B (λ)dλ

Camera Systems and Monitors Camera systems are made in a similar fashion; a 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 RGB numbers in an image file are converted back to analog and drive the electron guns in the cathode ray tube (CRT). The light emitted is in fact roughly proportional to the voltage raised to a power; this power is called gamma, with symbol γ. 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. 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: R ⇒ R’ = R 1/ γ ⇒ (R’) γ = R

Colour-Matching Functions Many colour applications involve specifying and re-creating a particular desired colour. Many colour applications involve specifying and re-creating a particular desired colour. A technique evolved in psychology for matching a combination of basic R, G, and B lights to a given shade. A technique evolved in psychology for matching a combination of basic R, G, and B lights to a given shade. A particular set of three basic lights was available, called the set of colour primaries. A particular set of three basic lights was available, called the set of colour primaries. To match a given shade, a set of observers was asked to separately adjust the brightness of the three primaries using a set of controls, until the resulting spot of light most closely matched the desired colour. To match a given shade, a set of observers was asked to separately adjust the brightness of the three primaries using a set of controls, until the resulting spot of light most closely matched the desired colour.

Colourrimeter

CIE RGB colour-matching functions The colour primaries can be used to match monochromatic (single wavelength) light. Doing this for the range of visible wavelengths leads to CIE (Commission Internationale de L’Eclairage) colour-matching functions. The colour primaries can be used to match monochromatic (single wavelength) light. Doing this for the range of visible wavelengths leads to CIE (Commission Internationale de L’Eclairage) colour-matching functions.

CIE RGB colour-matching functions The negative parts in the CIE RGB colour matching functions indicates that some colours cannot be reproduced by a linear combination of the primaries. The negative parts in the CIE RGB colour matching functions indicates that some colours cannot be reproduced by a linear combination of the primaries. For such colours one or more of the primaries has to be shifted to the other side thus resulting in negative colours! For such colours one or more of the primaries has to be shifted to the other side thus resulting in negative colours!

CIE XYZ colour-matching functions A set of fictitious primaries was devised that led to colour-matching functions with only positive values. A set of fictitious primaries was devised that led to colour-matching functions with only positive values. These result from a linear (3x3 matrix) transform from CIE RGB colour-matching functions. These result from a linear (3x3 matrix) transform from CIE RGB colour-matching functions.

CIE XYZ colour-matching functions Note that ӯ(λ) is exactly equal to the luminous-efficiency curve we have seen before.

CIE XYZ values for light with SPD E(λ)

RGB based Colour Models These are device dependent colour models unlike CIEXYZ which is a device independent colour model. variants: ICC RGB: defined by International colour Consortium. Complex and has extra unnecessary overhead information to be used in formats for certain applications such as internet. sRGB: Simpler standard for internet applications. Other device based RGB colour models exist. Gamma correction may be handled differently among different RGB colour models. They are additive colour models. i.e. ”white” is the addition of Red, Green, and Blue while ”black” means there is no light.

Subtractive Colour: CMY Colour Model So far, we have effectively been dealing only with additive colour. Namely, when two light beams impinge on a target, their colours add; when two phosphors on a CRT screen are turned on, their colours add. But for ink deposited on paper, the opposite situation holds: e.g. To form black we need to add some kind ink primaries. These ink primaries have absorption (subtraction) properties. Instead of red, green, and blue primaries, we need primaries that amount to -red, -green, and -blue. i.e., we need to subtract R, or G, or B. These subtractive colour primaries are Cyan (C), Magenta (M) and Yellow (Y) inks.

Transformation from RGB to CMY

Under-colour Removal: CMYK System For Sharper and cheaper printer colours: calculate that part of the CMY mix that would be black, remove it from the colour proportions, and add it back as real black.

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

YUV Colour Model Let gamma-corrected non-linear R, G, and B are represented by R’, G’, and B’ respectively. There are termed non-linear since colours cannot be formed by a linear combination of R’, G’, and B’ unlike R, G, and B. It codes a luminance signal (sometimes called luma) equal to Y’ (gamma-corrected). This luma is very much the brightness of the signal. Apart from brightness, we need colourfulness scale: To this end we have chrominance which refers to the difference between a colour and a reference white at the same luminance. U, and V code this information: U = B’ − Y’ V = R’ − Y’ For a grey-image (black-white), the chrominance values U, V are zero and hence Colour TV can be displayed on black- white television by just using Y’.