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.

Slides:



Advertisements
Similar presentations
Computer Science 101 RGB Color System. Simplified Introduction to Color Vision Go to How We See: The First Steps of Human Vision or Color Vision for more.
Advertisements

Color & Light, Digitalization, Storage. Vision Rods work at low light levels and do not see color –That is, their response depends only on how many photons,
Image Processing IB Paper 8 – Part A Ognjen Arandjelović Ognjen Arandjelović
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.
School of Computing Science Simon Fraser University
Video enhances, dramatizes, and gives impact to your multimedia application. Your audience will better understand the message of your application.
CS 4731: Computer Graphics Lecture 24: Color Science
SWE 423: Multimedia Systems Chapter 4: Graphics and Images (2)
Color: Readings: Ch 6: color spaces color histograms color segmentation.
What is color for?.
Perception and Measurement of Light, Color, and Appearance.
Lecture 02 Colour Models in Images and Video. Light and Spectra Light is an electromagnetic wave. Its colour is characterized by the wavelength content.
Digital Audio, Image and Video Hao Jiang Computer Science Department Sept. 6, 2007.
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 건국대학교 인터넷미디어공학부 임 창 훈.
Basic Color Theory Susan Farnand
CSc 461/561 CSc 461/561 Multimedia Systems Part A: 2. Image.
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.
Color Models AM Radio FM Radio + TV Microwave Infrared Ultraviolet Visible.
Digital Media Dr. Jim Rowan ITEC 2110 Color. COLOR Is a mess It’s a subjective sensation PRODUCED in the brain Color differs for light and paint/ink Printing.
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.
Human Visual System 4c8 Handout 2. Image and Video Compression We have already seen the need for compression We can use what we have learned in information.
Colour Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman
2001 by Jim X. Chen: 1 The purpose of a color model is to allow convenient specification of colors within some color gamut.
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
Any questions about the current assignment? (I’ll do my best to help!)
Chapter 6: Color Image Processing Digital Image Processing.
Lab #5-6 Follow-Up: More Python; Images Images ● A signal (e.g. sound, temperature infrared sensor reading) is a single (one- dimensional) quantity that.
Multimedia Basics (2) Hongli luo Fall 2010 CEIT, IPFW.
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.
CS 445 / 645: Introductory Computer Graphics Color.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Video 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.
Chapter 1. Introduction. Goals of Image Processing “One picture is worth more than a thousand words” 1.Improvement of pictorial information for human.
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:
Color Color Color Tsung-Yi Wu.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Introduction to Computer Graphics
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Data Representation. What is data? Data is information that has been translated into a form that is more convenient to process As information take different.
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
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.
Multimedia systems Lecture 5: Color in Image and Video.
Color Models Light property Color models.
Color Image Processing
Color Image Processing
COLOR space Mohiuddin Ahmad.
Color Image Processing
Perception and Measurement of Light, Color, and Appearance
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.
Color Models l Ultraviolet Infrared 10 Microwave 10
Presentation transcript:

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 of radiation of various wavelengths.  Light can be described by a spectral power distribution (SPD). wavelength BGR power

3 Spectrum

4 SPD Taken from Adobe

5 What is color?  Human retina has 3 types of color photoreceptor cone cells rod cells (only effective at extremely low light levels, or night-vision).  When light falls on the retina, the 3 types of cone cells respond (at different levels) to create the sensation of color.  CIE (Commission Internationale de L’Eclairage) specifies how an SPD can be transformed into tri- stimulus values (XYZ) that specify a color.

6 Sensitivity

7 For your interest  Mantis shrimps have 16 photoreceptors, about 4 of them are in the ultraviolet region  While human beings can distinguish some 10,000 colors, mantis shrimps can distinguish 110,000 colors.

8 What is color?  Given 3 primary lights: red, green, and blue, most colors can be described by a triplet RGB. Each value is (linearly) proportional to the physical power (radiance) of a component light.  We call these linear RGB values. R=0.81 G=0.52 B=0.56 R=0.36 G=0.69 B=0.74 R=0.0 G=0.0 B=0.69 R=0.0 G=0.0 B=0.91 R=0.91 G=0.91 B=0.91 R=0.69 G=0.69 B=0.69

9 Gamma  A color CRT has 3 types of phosphors that emit different- colored (RGB) light.  Intensity measures the power of a radiating light source.  A typical CRT has a non-linear transfer function. That is, the amount of power (intensity) emitted is approximately proportional to the applied voltage (scaled to the range [0,1]) raised to a constant power, commonly called gamma, . Intensity  Voltage   Typical CRTs have gamma values close to 2.5.

10 Gamma gamma = 1 gamma > 1 gamma < 1 voltage intensity 0 1 1

11 Gamma gamma = 1 gamma > 1 voltage intensity

12 Gamma gamma = 1 gamma > 1 voltage intensity

13 Gamma correction  A camera records the intensity (i.e., radiance) of an object. If the recorded values are translated into a voltage signal, and applied directly to a CRT, the reproduced image will have a distorted intensity.  A typical camera, therefore, applies a gamma correction transfer function. That is, it applies a 1/gamma power function to the recorded RGB values: R’ = R 1/gamma (likewise for G and B) Note: the RGB values used in the formula are all normalized to the [0,1] range.

14 Gamma correction

Gamma (example) original as displayed on a CRT without gamma correction

16 Gamma correction  The gamma corrected values R’G’B’ are distinguished from the original RGB values by the prime notation. They are called non-linear (or gamma corrected) RGB.  When we are processing digital images, the pixel values we are dealing with are usually the non- linear (R’G’B’) values.

17 Gamma correction camera RGB gamma correction computer R’G’B’ CRT R’G’B’ RGB eye xx 1/  (x 1/  ) 

18 Lightness  Human vision system has a non-linear perceptual response to intensity e.g., a source having a luminance (power) of 18% of another source appears about half as bright.  The perceptual response to intensity is called lightness.  The transfer function of human perceptual response to intensity resembles (very roughly) a 0.4 power curve, i.e., Lightness  Intensity 0.4

19 Lightness computer CRT R’G’B’ RGB y yy (y  ) 0.4 lightness intensitypixel value

20 Lightness  0.4 * 2.5 = 1.0. Hence, amazingly, the human transfer function is roughly the inverse of that of a CRT.  Recall that the nonlinear R’G’B’ values are (usually) used in a computer as pixel values.  The nonlinear values are used to drive a CRT’s voltage for controlling the brightness of phosphors.  The intensity emitted by a CRT is a 2.5 power curve.  The human vision system has a transfer function of a 0.4 power curve.  Hence, the nonlinear R’G’B’ values are approximately proportional to lightness (a perceptual value).

22 Luminance efficiency  If one looks at 3 light sources: red, green, and blue, each at the same power, then the green source appears the brightest, followed by the red source and then by the blue source.  Human vision system is more sensitive to luminance than to color. A video system usually encodes RGB as 1 luminance component Y’ (or luma) and 2 chrominance components (or chroma).  The chrominance components are usually given lower bandwidth (or data capacity) than the luminance component.

23 Spectral sensitivity Taken from Adobe

24 Cone cell distribution

25 Color differences  Luma (Y’) can be computed as a weighted sum of non-linear R’G’B’ components: ITU-R Recommendation BT. 601, formerly known as CCIR 601 Y’ = 0.299R’ G’ B’  Color differences refer to color components where (informally) “brightness” is “removed”.  The standard is to subtract luma from non-linear blue and from non-linear red: B’-Y’ and R’-Y’ (these are called chroma).

27 Scaling chroma  Various scaling factors are applied to the chroma values (B’-Y’, R’-Y’) for different applications: Y’P B P R – for component analog video Y’UV – for composite analog video (PAL) Y’IQ – ditto (NTSC) Y’C B C R – for digital images and video

28 Chromatic sub-sampling  The C B, C R chroma components are usually sub-sampled to reduce the data requirement in digital images and video. 4:2:2 sub-sample chroma horizontally by a factor of 2 (Rec. 601). a row of pixels take these chroma values

36 Perceptual uniformity  Human vision responds to about a hundred-to-one contrast ratio. That is, if the difference in intensity of two light sources is less than 1%, our eyes won’t detect the difference. I I+  I decreasing  I Can you see the circle?

37 Contrast ratio  Contrast ratio refers to the ratio of intensity between the brightest spot and that of the darkest spot of a particular display device and environment. Example: 30:1 (TV, home with mild lighting)

38 Why 8 bits per sample  Let L be the intensity level of the darkest spot. With a contrast ratio of 20, the brightest spot has an intensity of 20L.  We need: 1 code to represent dark (i.e., L) 1 code to represent 1.01 dark (i.e., 1.01L) 1 code to represent (1.01) 2 L … 1 code to represent 20L Hence, we need about 300 codes (or quantization levels) 8 bits are used because they can be conveniently packed into a byte.

39 Why 8 bits per sample intensity L 1.01L Intensities within this region are indistinguishable from L Intensities within this region are indistinguishable from 1.01L (1.01) 2 L (1.01) 3 L 30L

40 Perceptual uniformity  If we use an 8-bit linear coding system to represent luminance (i.e., intensity), we may not be making good use of the 256 codes Y … codes

41 Perceptual uniformity  If we use an 8-bit linear coding system to represent luminance (i.e., intensity), we may not be making good use of the 256 codes Y ? ?

42 Contouring  Luminance codes above 100 suffer no artifacts due to visibility of the jumps between codes. Some codes are not useful.  Also, successive codes that are near black has poor luminance resolution. This leads to contouring.

43 Contouring A B Intensity A B Intensity B A

44 Contouring 8 bits 256 gray levels 5 bits 32 gray levels

45 Perceptual uniformity  If we code the non-linear gamma corrected value (i.e., luma) instead, contouring is ameliorated Y Y’

46 Gamma Correction  Gamma correction thus helps: to compensate the non-linearity of a typical CRT; to allow a more perceptually uniform coding.

47 True color  A true color system (or a 24-bit system) represents a pixel by its RGB (or R’G’B’) values with 8 bits for each component.  A 24-bit system allows us to describe 2 24 = 16,777,216 different colors. In many cases, such a high color resolution is not needed.  Example: How many different colors can you see in a 640  480 image? your window desktop?

48 Pseudocolor/indexed color/ colormapped system  To save storage space, we can analyze an image to find out all the distinct colors that are present in the image.  Let n be the number of distinct colors found (usually n << 16.7M). We assign a code to each distinct color.  We keep a Color Lookup Table (CLUT, or colormap, or palette) that translates a code to its corresponding RGB values.  Each color is thus represented by  log 2 n  bits.

49 CLUT  Using the CLUT approach, We waste space for storing the CLUT. We save space by using fewer bits for each pixel. Usually the latter factor outweighs the first.

50 CLUT 248 distinct colors 640 x 238 How much storage space is needed for a true color system? For a CLUT system?

51