What is Color? Color is a human perception (a percept). Color is not a physical property... But, it is related the the light spectrum of a stimulus.

Similar documents
To discuss. Color Science Color Models in image. Computer Graphics 2

Color & Graphics. Color & Vision. The complete display system is: We'll talk about: Model Frame Buffer Screen Eye Brain

Comparing Sound and Light. Light and Color. More complicated light. Seeing colors. Rods and cones

Lecture 8. Color Image Processing

COLOR. and the human response to light

Colorimetry and Color Modeling

Color Image Processing. Gonzales & Woods: Chapter 6

CS6640 Computational Photography. 6. Color science for digital photography Steve Marschner

Color vision and representation

Lecture Color Image Processing. by Shahid Farid

Achim J. Lilienthal Mobile Robotics and Olfaction Lab, AASS, Örebro University

12 Color Models and Color Applications. Chapter 12. Color Models and Color Applications. Department of Computer Science and Engineering 12-1

Color Science. CS 4620 Lecture 15

Image and video processing (EBU723U) Colour Images. Dr. Yi-Zhe Song

the eye Light is electromagnetic radiation. The different wavelengths of the (to humans) visible part of the spectra make up the colors.

Raster Graphics. Overview קורס גרפיקה ממוחשבת 2008 סמסטר ב' What is an image? What is an image? Image Acquisition. Image display 5/19/2008.

קורס גרפיקה ממוחשבת 2008 סמסטר ב' Raster Graphics 1 חלק מהשקפים מעובדים משקפים של פרדו דוראנד, טומס פנקהאוסר ודניאל כהן-אור

COLOR. Elements of color. Visible spectrum. The Fovea. Lecture 3 October 30, Ingela Nyström 1. There are three types of cones, S, M and L

Colors in Images & Video

PERCEIVING COLOR. Functions of Color Vision

Color and Color Model. Chap. 12 Intro. to Computer Graphics, Spring 2009, Y. G. Shin

Understand brightness, intensity, eye characteristics, and gamma correction, halftone technology, Understand general usage of color

Light. intensity wavelength. Light is electromagnetic waves Laser is light that contains only a narrow spectrum of frequencies

Color and Perception. CS535 Fall Daniel G. Aliaga Department of Computer Science Purdue University

Figure 1: Energy Distributions for light

Color Science. What light is. Measuring light. CS 4620 Lecture 15. Salient property is the spectral power distribution (SPD)

Visual Imaging and the Electronic Age Color Science

LECTURE 07 COLORS IN IMAGES & VIDEO

Color Theory: Defining Brown

Color and color constancy

Introduction to Color Science (Cont)

Colors in images. Color spaces, perception, mixing, printing, manipulating...

University of British Columbia CPSC 414 Computer Graphics

Color Computer Vision Spring 2018, Lecture 15

Digital Image Processing Color Models &Processing

COLOR and the human response to light

Basics of Colors in Graphics Denbigh Starkey

Interactive Computer Graphics

For a long time I limited myself to one color as a form of discipline. Pablo Picasso. Color Image Processing

Digital Image Processing COSC 6380/4393. Lecture 20 Oct 25 th, 2018 Pranav Mantini

Multimedia Systems and Technologies

Colour. Cunliffe & Elliott, Chapter 8 Chapman & Chapman, Digital Multimedia, Chapter 5. Autumn 2016 University of Stirling

COLOR. Elements of color. Visible spectrum. The Human Visual System. The Fovea. There are three types of cones, S, M and L. r( λ)

Color and color constancy

Colour. Why/How do we perceive colours? Electromagnetic Spectrum (1: visible is very small part 2: not all colours are present in the rainbow!

Colour. Electromagnetic Spectrum (1: visible is very small part 2: not all colours are present in the rainbow!) Colour Lecture!

USE OF COLOR IN REMOTE SENSING

Image Processing for Mechatronics Engineering For senior undergraduate students Academic Year 2017/2018, Winter Semester

Reading for Color. Vision/Color. RGB Color. Vision/Color. University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2013.

Reading. Foley, Computer graphics, Chapter 13. Optional. Color. Brian Wandell. Foundations of Vision. Sinauer Associates, Sunderland, MA 1995.

excite the cones in the same way.

Test 1: Example #2. Paul Avery PHY 3400 Feb. 15, Note: * indicates the correct answer.

CIE tri-stimulus experiment. Color Value Functions. CIE 1931 Standard. Color. Diagram. Color light intensity for visual color match

University of British Columbia CPSC 314 Computer Graphics Jan-Apr Tamara Munzner. Color.

Color images C1 C2 C3

EECS490: Digital Image Processing. Lecture #12

Color + Quality. 1. Description of Color

Colorimetry vs. Densitometry in the Selection of Ink-jet Colorants

Fig Color spectrum seen by passing white light through a prism.

Color. Homework 1 is out. Overview of today. color. Why is color useful 2/11/2008. Due on Mon 25 th Feb. Also start looking at ideas for projects

Color. Fredo Durand Many slides by Victor Ostromoukhov. Color Vision 1

Chapter 2 Fundamentals of Digital Imaging

6 Color Image Processing

Unit 8: Color Image Processing

Color and Color Models

Color. Chapter 6. (colour) Digital Multimedia, 2nd edition

Werner Purgathofer

Wireless Communication

Gamut Mapping and Digital Color Management

Chapter 3 Part 2 Color image processing

Introduction to computer vision. Image Color Conversion. CIE Chromaticity Diagram and Color Gamut. Color Models

Thursday, May 19, 16. Color Theory

Color Reproduction. Chapter 6

Introduction. The Spectral Basis for Color

Color Image Processing. Jen-Chang Liu, Spring 2006

Today. Color. Color and light. Color and light. Electromagnetic spectrum 2/7/2011. CS376 Lecture 6: Color 1. What is color?

Visual Perception. Overview. The Eye. Information Processing by Human Observer

MULTIMEDIA SYSTEMS

CS 428: Fall Introduction to. Image formation Color and perception. Andrew Nealen, Rutgers, /8/2010 1

Announcements. Electromagnetic Spectrum. The appearance of colors. Homework 4 is due Tue, Dec 6, 11:59 PM Reading:

Announcements. Color. Last time. Today: Color. Color and light. Review questions

Introduction to Computer Vision CSE 152 Lecture 18

Computer Graphics Si Lu Fall /27/2016

Colour spaces. Project for the Digital signal processing course

Chapter 9: Color. What is Color? Wavelength is a property of an electromagnetic wave in the frequency range we call light

Myth #1. Blue, cyan, green, yellow, red, and magenta are seen in the rainbow.

Colour (1) Graphics 2

Color Cameras: Three kinds of pixels

Digital Image Processing

Color. Used heavily in human vision. Color is a pixel property, making some recognition problems easy

Color Management For A Sign Maker. An introduction to a very deep subject.

Continued. Introduction to Computer Vision CSE 252a Lecture 11

Color. Some slides are adopted from William T. Freeman

What is Color? Chapter 9: Color. Color Mixtures. Color Mixtures 10/29/2012. What is color? Color vocabulary

Color image processing

Hello, welcome to the video lecture series on Digital image processing. (Refer Slide Time: 00:30)

Color Image Processing EEE 6209 Digital Image Processing. Outline

Color Image Processing

Digital Image Processing

Images and Colour COSC342. Lecture 2 2 March 2015

Transcription:

C. A. Bouman: Digital Image Processing - January 8, 218 1 What is Color? Color is a human perception (a percept). Color is not a physical property... But, it is related the the light spectrum of a stimulus.

C. A. Bouman: Digital Image Processing - January 8, 218 2 Can We Measure the Percept of Color? Semantic names - red, green, blue, orange, yellow, etc. These color semantics are largely culturally invariant, but not precisely. Currently, there is no accurate model for predicting perceived color from the light spectrum of a stimulus. Currently, noone has an accurate model for predicting the percept of color.

C. A. Bouman: Digital Image Processing - January 8, 218 3 Can We Tell if Two Colors are the Same? Two colors are the same if they match at all spectral wavelengths. However, we will see that two colors are also the same if they match on a 3 dimensional subspace. The values on this three dimensional subspace are called tristimulus values. Two colors that match are called metamers.

C. A. Bouman: Digital Image Processing - January 8, 218 4 Experimental set up: Matching a Color Patch Form a reference color patch with a known spectral distribution. Reference Color I(λ) Form a second adjustable color patch by adding light with three different spectral distributions. Red I r (λ) = R Green I g (λ) = G Blue I b (λ) = B Control the amplitude of each component with three individual positive constants r +, g +, and b +. The total spectral content of the adjustable patch is then r + I r (λ)+g + I g (λ)+b + I b (λ). Choose(r +,g +,b + ) to match the two color patches.

C. A. Bouman: Digital Image Processing - January 8, 218 5 Simple Color Matching with Primaries r + R G B x g + x b + x Reference color Adjustable color patch Choose(r +,g +,b + ) to match the two color patches. The values of(r,g,b) must be positive! Definitions: R, G, and B are known as color primaries. r +, g +, and b + are known as tristimulus values. Problem: Some colors can not be matched, because they are too saturated. These colors result in values ofr +,g +, orb + which are. How can we generate negative values forr +,g +, orb +?

C. A. Bouman: Digital Image Processing - January 8, 218 6 Improved Color Matching with Primaries r - R G B x g - x b - x r + R G B x g + x b + x Reference color Adjusted reference color Adjustable color patch Add color primaries to reference color! This is equivalent to subtracting them from adjustable patch. Equivalent tristimulus values are: r = r + r g = g + g b = b + b In this case, r, g, and b can be both positive and negative. All colors may be matched.

C. A. Bouman: Digital Image Processing - January 8, 218 7 Grassman s Law Grassman s law: Color perception is a 3 dimensional linear space. Superposition: Let I 1 (λ) have tristimulus values (r 1,g 1,b 1 ), and let I 2 (λ) have tristimulus values (r 2,g 2,b 2 ). Then I 3 (λ) = I 1 (λ)+i 2 (λ) has tristimulus values of (r 3,g 3,b 3 ) = (r 1,g 1,b 1 )+(r 2,g 2,b 2 ) This implies that tristimulus values can be computed with a linear functional of the form r = g = b = r (λ)i(λ)dλ g (λ)i(λ)dλ b (λ)i(λ)dλ for some functionsr (λ), g (λ), and b (λ). Definition: r (λ), g (λ), and b (λ) are known as color matching functions.

C. A. Bouman: Digital Image Processing - January 8, 218 8 Measuring Color Matching Functions A pure color at wavelengthλ is known as a line spectrum. It has spectral distribution I(λ) = δ(λ λ ). Pure colors can be generated using a laser or a very narrow band spectral filter. When the reference color is such a pure color, then the tristimulus values are given by r = g = b = r (λ)δ(λ λ )dλ = r (λ ) g (λ)δ(λ λ )dλ = g (λ ) b (λ)δ(λ λ )dλ = b (λ ) Method for Measuring Color Matching Functions: Color match to a reference color generated by a pure spectral source at wavelength λ. Record the tristimulus values of r (λ ), g (λ ), and b (λ ) that you obtain. Repeat for all values of λ.

C. A. Bouman: Digital Image Processing - January 8, 218 9 CIE Standard RGB Color Matching Functions An organization call Commission Internationale de l Eclairage (CIE) defined all practical standards for color measurements (colorimetery). CIE 1931 Standard 2 o Observer: Uses color patches that subtended 2 o of visual angle. R,G,B color primaries are defined by pure line spectra (delta functions in wavelength) at 7nm, 546.1nm, and 435.8nm. Reference color is a spectral line at wavelength λ. CIE 19651 o Observer: A slightly different standard based on a 1 o reference color patch and a different measurement technique.

C. A. Bouman: Digital Image Processing - January 8, 218 1 RGB Color Matching Functions for CIE Standard 2 o Observer R = 7nm r - x G B = 546.1nm = 435.8nm g - x b - x R = 7nm r + x g + G = 546.1nm x B = 435.8nm b + x Tunable spectral line source at wavelength Adjusted reference color Adjustable color patch The color matching functions are then given by r (λ) = r + r g (λ) = g + g b (λ) = b + b whereλis the wavelength of the reference line spectrum.

C. A. Bouman: Digital Image Processing - January 8, 218 11 RGB Color Matching Functions for CIE Standard 2 o Observer Plotting the values ofr (λ),g (λ), andb (λ) results in the following..2 CIE RGB color matching functions r color matching function g color matching function b color matching function.15.1.5.5 4 45 5 55 6 65 7 Wavelenght(nanometers) Notice that the functions take on negative values.

C. A. Bouman: Digital Image Processing - January 8, 218 12 Review of Colorimetry Concepts 1. R,G,B are color primaries used to generate colors. 2. (r,g,b) are tristimulus values used as weightings for the primaries. Color = rr+gg+bb r = [R,G,B] g b 3. (r (λ),g (λ),b (λ)) are the color matching functions used to compute the tristimulus values. r = g = b = r (λ)i(λ)dλ g (λ)i(λ)dλ b (λ)i(λ)dλ How are the color matching functions scaled?

C. A. Bouman: Digital Image Processing - January 8, 218 13 Scaling of Color Matching Functions Color matching functions are scaled to have unit area r (λ)dλ = 1 g (λ)dλ = 1 b (λ)dλ = 1 Color white Has approximately equal energy at all wavelengths I(λ) = 1 White (r,g,b) = (1,1,1) Known as equal energy (EE) white We will talk about this more later

C. A. Bouman: Digital Image Processing - January 8, 218 14 Problems with CIE RGB Some colors generate negative values of(r,g,b). This results from the fact that the color matching functions r (λ), g (λ), b (λ) can be negative. The color primaries corresponding to CIE RGB are very difficult to reproduce. (pure spectral lines) Partial solution: Define new color matching functionsx (λ), y (λ), z (λ) such that: Each function is positive Each function is a linear combination of r (λ), g (λ), and b (λ).

C. A. Bouman: Digital Image Processing - January 8, 218 15 CIE XYZ Definition CIE XYZ in terms of CIE RGB so that x (λ) r (λ) y (λ) = M g (λ) z (λ) b (λ) where M =.49.31.2.177.813.1..1.99 This transformation is chosen so that x (λ) y (λ) z (λ)

C. A. Bouman: Digital Image Processing - January 8, 218 16 CIE XYZ Color Matching functions.18.16 XYZ color matching functions x color matching function y color matching function z color matching function.14.12.1.8.6.4.2 4 45 5 55 6 65 7 Wavelenght(nanometers)

C. A. Bouman: Digital Image Processing - January 8, 218 17 XYZ Tristimulus Values The XYZ tristimulus values may be calculated as: X x (λ) Y = y (λ) I(λ)dλ Z z (λ) = = M M = M r g b r (λ) g (λ) b (λ) r (λ) g (λ) b (λ) I(λ)dλ I(λ)dλ

C. A. Bouman: Digital Image Processing - January 8, 218 18 XYZ/RGB Color Transformations So we have that XYZ can be computed from RGB as: X r Y = M g Z b Alternatively, RGB can be computed from XYZ as: r X g = M 1 Y b Z Comments: Always use upper case letters for XYZ! Y value represents luminance component of image X is related to red. Z is related to blue.

C. A. Bouman: Digital Image Processing - January 8, 218 19 XYZ Color Primaries The XYZ color primaries are computed as X Color = [X,Y,Z] Y Z r = [R,G,B] g b X = [R,G,B]M 1 Y Z So, theoretically [X,Y,Z] = [R,G,B]M 1 where M 1 = 2.3644.8958.4686.5148 1.4252.896.52.144 1.92

C. A. Bouman: Digital Image Processing - January 8, 218 2 Problem with XYZ Primaries 2.3644.8958.4686 [X,Y,Z] = [R,G,B].5148 1.4252.896.52.144 1.92 Negative values in matrix imply that spectral distribution of XYZ primaries will be negative. The XYZ primaries can not be realized from physical combinations of CIE RGB. Fact: XYZ primaries are imaginary!

C. A. Bouman: Digital Image Processing - January 8, 218 21 Alternative Choices for R,G,B Primaries Select your favoriter, G, and B color primaries. These need not be CIER,G,B, but they should look like red, green, and blue. For set of primaries R,G,B, there must be a matrix transformation M such that R X G = M Y B Z R G B = X r Y r Z r X g Y g Z g X b Y b Z b We will discuss alternative choices forr,g,b later The selection of R,G,B can impact: The cost of rendering device/system X Y Z The color gamut of the device/system System interoperability

C. A. Bouman: Digital Image Processing - January 8, 218 22 Red, Green, Blue (R,G,B) Color Vectors G B K R We can specify colors by a combination of Color = rr+gg+bb r = [R,G,B] g b R,G,B color primaries are basis vectors (r,g,b) tristimulus values specify 3-D coordinates Each color can be specified by its(r,g,b) coordinates Red = R (r,g,b) = (1,,) Green = G (r,g,b) = (,1,) Blue = B (r,g,b) = (,,1)

C. A. Bouman: Digital Image Processing - January 8, 218 23 Cyan, Magenta, Yellow (C,M,Y) Color Vectors C G Y B M K R Color = [R,G,B] r g b Cyan, Magenta, and Yellow can each be specified by their (r, g, b) coordinates Cyan = G+B (r,g,b) = (,1,1) Magenta = R+B (r,g,b) = (1,,1) Yellow = R+G (r,g,b) = (1,1,)

C. A. Bouman: Digital Image Processing - January 8, 218 24 Full Color Cube C W G Y B M K R White = [R,G,B] 1 1 1 White = W (r,g,b) = (1,1,1) Black = K (r,g,b) = (,,) Red = R (r,g,b) = (1,,) Green = G (r,g,b) = (,1,) Blue = B (r,g,b) = (,,1) Cyan = C (r,g,b) = (,1,1) Magenta = M (r,g,b) = (1,,1) Yellow = Y (r,g,b) = (1,1,)

C. A. Bouman: Digital Image Processing - January 8, 218 25 where Subtractive Color Coordinates [R,G,B] r g b = W+[R,G,B] = W+[R,G,B] = W [R,G,B] = W [R,G,B] c m y = r g b r g b W [R,G,B] 1 r 1 g 1 b c m y 1 r 1 g 1 b 1 1 1

C. A. Bouman: Digital Image Processing - January 8, 218 26 C, M, Y Color Coordinates C W G Y B M K Color = W [R,G,B] R c m y This is called a subtractive color system because(c,m,y) coordinates subtract color from white Subtractive color is important in: Printing Paints and dyes Films and transparencies

C. A. Bouman: Digital Image Processing - January 8, 218 27 Light Reflection from Lambert Surface I(λ) R(λ) = 1 I(λ) θ 11111111111111111111 11111111111111111111 Paper Modeled by Lambert Surface 11111111111111111111 White Lambert Surface Reflected luminance is independent of: Viewing angle (θ) Wavelength (λ)

C. A. Bouman: Digital Image Processing - January 8, 218 28 Effect of Ink on Reflected Light I(λ) R(λ) Magenta Ink Dot Cyan Ink Dot 11111111111111111111 11111111111111111111 Paper Modeled by Lambert Surface 11111111111111111111 Reflected light is given by R(λ) = R C (λ)r M (λ)i(λ) Reflected light is from by product of functions Inks interact nonlinearly (multiplication versus addition) What color is formed by magenta and cyan ink?

C. A. Bouman: Digital Image Processing - January 8, 218 29 Simplified Spectral Reflectance of Ink 1 R C (λ) 4 nm 7 nm Wavelengthλ 1 R M (λ) 4 nm 7 nm Wavelengthλ 1 R C (λ) R M (λ) 4 nm 7 nm Wavelengthλ Reflected light appears blue Both green and red components have been removed Each ink subtracts colors from the illuminant