Light, Color, Perception, and Color Space Theory

Similar documents
Outline. Quantizing Intensities. Achromatic Light. Optical Illusion. Quantizing Intensities. CS 430/585 Computer Graphics I

Overview. Raster Graphics and Color. Overview. Display Hardware. Liquid Crystal Display (LCD) Cathode Ray Tube (CRT)

CBIR: Colour Representation. COMPSCI.708.S1.C A/P Georgy Gimel farb

1. Three-Color Light. Introduction to Three-Color Light. Chapter 1. Adding Color Pigments. Difference Between Pigments and Light. Adding Color Light

CS 325 Computer Graphics

Computer Vision. Color image processing. 25 August 2014

Digital Image Basics. Introduction. Pixels and Bitmaps. Written by Jonathan Sachs Copyright Digital Light & Color

1. Introduction to image processing

Colour spaces - perceptual, historical and applicational background

Color Management Terms

THE NATURE OF LIGHT AND COLOR

Light Waves and Matter

Name Class Date. spectrum. White is not a color, but is a combination of all colors. Black is not a color; it is the absence of all light.

At the core of this relationship there are the three primary pigment colours RED, YELLOW and BLUE, which cannot be mixed from other colour elements.

Chapter 7 ADDITIVE COLOR MIXING

Important Notes Color

CULTURAL HISTORY Primary Colors - Part 1 of 2 by Neal McLain

VISUAL ARTS VOCABULARY

Color and Light. DELTA SCIENCE READER Overview Before Reading Guide the Reading After Reading

Digital Color Workflows and the HP DreamColor LP2480zx Professional LCD Display

BASIC CONCEPTS OF HAIR PHYSIOLOGY AND COSMETIC HAIR DYES

Waves Sound and Light

DESIGN ELEMENTS OF DESIGN

Color Theory for Floral Design

Color. & the CIELAB. System

Chemistry 111 Lab: Intro to Spectrophotometry Page E-1

A Guide to Understanding Color Communication

The Information Processing model

Filters for Black & White Photography

Perception of Light and Color

UNDERSTANDING DIFFERENT COLOUR SCHEMES MONOCHROMATIC COLOUR

Simplify your palette

Design Elements & Principles

THE BASICS OF COLOUR THEORY

COLOR THEORY WORKSHEET

MAKING SENSE OF ENERGY Electromagnetic Waves

Science In Action 8 Unit C - Light and Optical Systems. 1.1 The Challenge of light

Imaging Systems Laboratory II. Laboratory 4: Basic Lens Design in OSLO April 2 & 4, 2002

Improved predictive modeling of white LEDs with accurate luminescence simulation and practical inputs

STAAR Science Tutorial 30 TEK 8.8C: Electromagnetic Waves

EXPERIMENT 11 UV/VIS Spectroscopy and Spectrophotometry: Spectrophotometric Analysis of Potassium Permanganate Solutions.

ColourSpace Conversions

Conceptual Physics Review (Chapters 25, 26, 27 & 28) Chapter 25 Describe the period of a pendulum. Describe the characteristics and properties of

ELEMENTS OF ART & PRINCIPLES OF DESIGN

A comparison between a CRT and a LCD monitors colors rendering

Calibration Best Practices

Choosing Colors for Data Visualization Maureen Stone January 17, 2006

A simpler version of this lesson is covered in the basic version of these teacher notes.

Color quality guide. Quality menu. Color quality guide. Page 1 of 6

Lecture 17: Color. 1 History of Color. Matthew Schwartz

Expert Color Choices for Presenting Data

Hello and Welcome to this presentation on LED Basics. In this presentation we will look at a few topics in semiconductor lighting such as light

Color Part I. (The two items we can determine: a. How bright is the light is. b. What color the light is.)

Upon completion of this lab, the student will be able to:

The Physiology of the Senses Lecture 1 - The Eye

Color Balancing Techniques

GIS Tutorial 1. Lecture 2 Map design

Experiment #5: Qualitative Absorption Spectroscopy

AP Physics B Ch. 23 and Ch. 24 Geometric Optics and Wave Nature of Light

EUSIPCO

Physical Science Study Guide Unit 7 Wave properties and behaviors, electromagnetic spectrum, Doppler Effect

Frequently Asked Questions about Color

RGB coordinates of the Macbeth ColorChecker

ICC Recommendations for Color Measurement

Using the Spectrophotometer

Spectrophotometry and the Beer-Lambert Law: An Important Analytical Technique in Chemistry

Scanners and How to Use Them

Preview of Period 3: Electromagnetic Waves Radiant Energy II

Learning about light and optics in on-line general education classes using at-home experimentation.

Green = 0,255,0 (Target Color for E.L. Gray Construction) CIELAB RGB Simulation Result for E.L. Gray Match (43,215,35) Equal Luminance Gray for Green

After a wave passes through a medium, how does the position of that medium compare to its original position?

Composite Video Separation Techniques

How many PIXELS do you need? by ron gibbs

Name Date Class ELECTRONS IN ATOMS. Standard Curriculum Core content Extension topics

Automatic and Objective Measurement of Residual Stress and Cord in Glass

Today: Chapter 27 (Color) (Maybe begin Review if time)

Infrared Spectroscopy: Theory

Three Key Paper Properties

Study Guide for Exam on Light

13 PRINTING MAPS. Legend (continued) Bengt Rystedt, Sweden

Fiber Optics: Fiber Basics

Review Vocabulary spectrum: a range of values or properties

Processing the Image or Can you Believe what you see? Light and Color for Nonscientists PHYS 1230

A Guide to. Understanding Graphic Arts Densitometry

GRID AND PRISM SPECTROMETERS

Colour Measurement and Print Quality Assessment in a Colour Managed Printing Workflow

Introduction to Light, Color, and Shadows

The Eye of the Beholder Designing for Colour-Blind Users

WAVES AND ELECTROMAGNETIC RADIATION

The role of working spaces in Adobe applications

Escaping RGBland: Selecting Colors for Statistical Graphics

How Landsat Images are Made

Conquering Color. Dina Wakley

Energy. Mechanical Energy

CALIBRATION AND OPERATION OF PANASONIC PLASMA MONITORS JULY 2009

This document describes how video signals are created and the conversion between different standards. Four different video signals are discussed:

INTRODUCTION IMAGE PROCESSING >INTRODUCTION & HUMAN VISION UTRECHT UNIVERSITY RONALD POPPE

Transcription:

Light, Color, Perception, and Color Space Theory Professor Brian A. Barsky barsky@cs.berkeley.edu Computer Science Division Department of Electrical Engineering and Computer Sciences University of California, Berkeley

Why Color? Realism (world is in color) Aesthetics (looks better) 1

Light Frequency Part of the spectrum of electromagnetic radiation that can affect the human sense of sight AM Radio FM Radio and TV Microwaves Infrared Visible Ultraviolet X-rays 2 4 6 8 10 12 14 16 10 10 10 10 10 10 10 10 18 20 10 10 increasing frequency 2

Light Wavelength Visible part (for humans) is from 400 nm (violet) to700 nm (red) increasing wavelength Each frequency value within the visible band corresponds to a distinct color 3

Light Parameters of light: wavelength, λ frequency, f Speed of light denoted by c Speed of light = wavelength frequency; c = λf Speed (in a vacuum) is approximately 3 10 8 m/sec Speed is less in media Index of refraction of a material is the ratio of the speed of light in a vacuum to that in this material 4

Color Color is the perceived property by which we distinguish different lights Different wavelengths of light yield different sensations of color But different spectral distributions may produce the same color Metamers Perceptual factors Discussions of color perception usually involves three quantities: Hue colors (e.g., red, green, purple, yellow) Saturation vivid pure colors versus pastel colors (e.g., red is highly saturated, pink is relatively unsaturated) Lightness or Brightness is the perceived intensity. Lightness is used for reflecting objects whereas brightness is used for light-emitting objects (light bulb, sun, CRT). 5

Spectral Energy Distribution The amount of energy present at each wavelength is represented by a spectral energy distribution, I(λ). Energy density, I( λ ) 400 violet Wavelength, nm 700 red Many different spectral energy distributions produce the same color (called metamers). Energy density, I( λ ) Energy density, I( λ ) 400 700 Wavelength, nm Energy distribution of a white light source 400 700 Wavelength, nm Energy distribution of a light source with a dominant wavelength near red 6

Color in Graphics System 7

Human Visual System 8

Retina Contains the light receptors Rods Cones 9

Rods Scoptic vision Response is function of wavelength Maximum response at 507 nm (cyan-green) Mechanism is chemical reaction which has to occur in the dark Thus sensitive under lowillumination, but inactive under high illumination Cannot distinguish color since only one kind of rod 10

Cones Photopic vision Response is function of wavelength Maximum response at 555 nm (yellow-green) Insensitive to lowillumination Three types of cones, having a maximum response at red, green, and blue But there is considerable overlap among the response curves blue sensitivity is less red, green, and blue cones are more aptly called high, medium, and low wavelength cones, respectively 11

Cone Response Curves 12

Opponent Processing Scheme Three signals Luminance: only the black and white information also called the achromatic signal Red/Green opponent signal (R G) Yellow/Blue opponent signal ((R+G) B) 13

Color Specification Tristimulus theory Physiological evidence Experimentally, can match any color stimulus with appropriate amounts of three primary monochromatic colors Color is a three-dimensional space Many different coordinate systems 14

Alternative Color Spaces CIE XYZ RGB CMY YIQ HSV HSL Ostwald Munsell 15

CIE XYZ System Commission Internationale de l Eclairage Established the coordinate system in 1931 Chromaticity diagram is two dimensional where R+G+B= 1 Color gamuts easily represented using Chromaticity diagram 16

Color-Matching Functions Colors can be specified by weighted sums of red, green, andblue C = rr + gg + bb where r, g, b are the amounts of R, G, B colors, respectively An experiment was carried out to find the color-matching functions for RGB primaries; they are obtained by averaging the judgements of a large number of observers 17

Color-Matching Functions These curves yield the amounts of R, G, B light needed to match any visible color Thenegativevalueforthered primary in the vicinity of 500 nm means we cannot match the sample color by adding primaries However, the sample color can be matched if we add the red primary to the color being matched 18

CIE XYZ System Every color can be made with positive combinations of primaries called X, Y, Z The X, Y, Z primaries are non-realizable The color-matching functions x(λ), ȳ(λ), z(λ) for CIE s XYZ primaries (transformed from RGB color-matching functions): By design, the ȳ curve is just the luminous efficiency curve of our eyes 19

The CIE Color-Matching Functions Given a color C with a spectral energy distribution I(λ), find the amounts of X, Y, Z primaries to match it: X = k Y = k Z = k I(λ) x(λ) dλ I(λ) ȳ(λ) dλ I(λ) z(λ) dλ where k = 680 lumens/watt for CRT C = XX + Y Y + ZZ 20

CIE XYZ Color Space The XYZ space of visible colors is cone shaped This is a 3D space, so it is hard to visualize. Hence, we normalize it by cutting with the plane X + Y + Z =1 x = y = z = X X + Y + Z Y X + Y + Z Z X + Y + Z As x + y + z =1, we only need to keep (x, y). We can nowrepresent all the colors on a 2D diagram 21

Visualizations of the CIE Color Space Several views of the X + Y + Z =1plane of CIE space: Left: the plane embedded in CIE space Top right: a viewperpendicular to the plane Bottom right: the projection onto the (X, Y ) plane, which is the chromaticity diagram 22

The CIE Chromaticity Diagram The CIE chromaticity diagram is the projection of the X + Y + Z =1 plane onto the (X, Y ) plane (x, y) are known as the chromaticity values (or chromaticity coordinates) White is roughly in the center Pure (saturated) colors are along the curved boundary (spectral colors) As we move towards the white point, the colors become less saturated Examples: red =(0.735, 0.265), green =(0.274, 0.717), blue =(0.167, 0.009) 23

The CIE Chromaticity Diagram We can predict the effect of additively combining various colors Any color in the triangle IJK can be created by some mixture of colors I,J,K Because the CIE chromaticity diagram is rounded like a shark fin, no matter which 3 visible colors we choose as primaries, we cannot span the entire fin 24

The CIE Chromaticity Diagram Complementary Colors Colors that can be mixed to produce white light (e.g red and cyan) If ac 1 +(1 a)c 2 = white, then C 1 and C 2 are complementary colors Lieonoppositesidesofwhite Example: colors D and E are complementary colors 25

The CIE Chromaticity Diagram Nonspectral Colors LiealongthestraightlineonthelowerpartoftheCIEdiagram Examples: reds, magentas, purples, F and G 26

The CIE Chromaticity Diagram Dominant Wavelength and Excitation Purity Dominant wavelengths go around the top of the fin The dominant wavelength of color A is at B The dominant wavelength of color F is the complement of the dominant wavelength of color A; deleting some light at frequency B from a flat spectral distribution will result in color F The ratio AC BC The ratio FC GC is the excitation purity of A is the excitation purity of F 27

RGB System R, G, B on orthogonal axes R, G, B each normalized to 0 to 1 (orthonormal) Gamut of all representable color inside the unit cube Corresponds to CRT color monitor technology Need to specify the coordinates of the primaries in the CIE XYZ system NTSC defined the CIE chromaticity values of the standard phosphors 28

Gamuts A display device has a range of reproducible colors that depends on the spectra reproduced by the phosphors/pigments/etc... This range or reproducible colors is called the gamut of the device 29

CMY System A subtractive system, used in most printing devices Consider media where color is achieved by reflectance or transmittance Ink absorbs some color, what we see is that which is reflected (not absorbed) Final color results from removal of light from the source used for illumination More convenient to use system where colors are obtained by subtraction Subtractive primaries: cyan = white red magenta = white green yellow = white blue 30

CMY System Mixing two pigments subtracts their opposites from white Although in theory black is the sum of the three primaries, in practice a black pigment is added to form the four color printing process 31

YIQ System Used in the US for color television broadcasting NTSC standard It is a recoding of RGB with some tricks for broadcasting efficiency and compatibility with black-and-white Y is the Y of the CIE XYZ system Y is the luminance I is Caucasian flesh tones axis (orange cyan) Qisgreen purple Relation between YIQ and RGB depends on particular RGB phosphors 32

HSV System RGB, CMY, YIQ are tailored for particular devices (CRT s, printers, video), but users find these systems difficult to work with HSV is more intuitive to users Hue: what distinguishes red quality from blue quality Saturation: vividness or proportion of pure color mixed with white Value: related to intensity Normally represented as a cone or hexcone Hue is the angle around the circle or the regular hexagon; 0 H 360 Saturation is the distance from the center; 0 S 1 Value is the position along the axis of the cone or hexcone; 0 V 1 33

HSV System Value is not perceptually-based, so colors of the same value may have slightly different brightnesses Main axis is grey scale 34

HSV System Hexcone can be formed by standing the RGB cube on its main diagonal with the black vertex at the bottom and the white vertex at the top, and then flattening it until the top half is reduced to a plane No linear transformation between RGB and HSV Arbitrary transformation exists 35

HLS System Recall that the HSV system flattened the bright half of the RGB cube HLS is symmetric with respect to black and white Represented as a double cone or double hexcone Double hexcone can be formed by standing the RGB cube on its main diagonal and imagining that the remaining six vertices (representing R, Y, G, C, B, M) are somehowmade coplanar. No linear transformation between RGB and HLS Arbitrary transformation exists 36

HLS System 37

Ostwald System Color samples gathered in book Color solid Geared toward the mixing of a discrete number of pure color pigments, the pure hues, with black and white paint 38

Munsell System Based on psychological perception of hue,chroma,and value Comprises actual color samples in a book Each page of the book contains a constant hue plane Within this plane, the samples are arranged in rows and columns Samples in the same roware perceived to have same lightness Samples in the same column are perceived to have the chroma 39

Conversion Between Systems XYZ, RGB, CMY, and YIQ are linearly related HLS and HSV are not linearly related to each other or to the other standard systems 40

RGB to YIQ & YIQ to RGB RGB to YIQ conversion: Y I Q = 0.299 0.587 0.114 0.596 0.275 0.321 0.212 0.523 0.311 mr mg mb YIQ to RGB conversion: mr mg = mb 1 0.956 0.621 1 0.272 0.647 1 1.105 1.702 Y I Q where mr, mg, and mb are based on the NTSC RGB monitor phosphors note that these specify different primaries from those defined by CIE, which are R=700 nm, G=546.1 nm, B=435.8 nm using the CIE primaries, Y is expressed as follows: Y =.17R +.81G +.01B 41

XYZ to RGB Using RGB (with CIE Standard D65 Illuminants white point) To transform from XYZ to RGB, the matrix transform used is: R G B = 3.240479 1.537150 0.498535 0.969256 1.875992 0.041556 0.055648 0.204043 1.057311 X Y Z This matrix has negative coefficients. Some XYZ color may be transformed to RGB values that are negative or greater than one. This means that not all visible colors can be produced using the RGB system. 42

RGB to XYZ To transform from RGB to XYZ, the matrix transform used is: X Y Z = 0.412453 0.357580 0.180423 0.212671 0.715160 0.072169 0.019334 0.119193 0.950227 R G B 43

Interpolation in Color Space Mixing two colors according to two weights arises in shading algorithms, color filtering, and color mixing in paint systems Linear interpolation between two colors can give different results in different color spaces Result is the same in the linearly related spaces 44

Perceptual Distances When we perceive the distance between two colors to be the same as that between another pair of colors, the corresponding distances in the color space may differ. Would like a more perceptually homogeneous system The L*u*v* system is an approximate solution 45

Perceptual Distances perceptual distances in CIE XYZ space perceptual distances in CIE LUV space 46

How Many Colors? jnd: just noticeable difference 8 bits per primary 256 values per primary 2 24 colors 16 million colors But the values should be distributed logarithmically, so that the ratio between adjacent values is constant If linear scales are used, then more bits per primary are needed 10 bits per primary 1024 values per primary 2 30 colors 1 billion colors Note that a 1000 by 1000 image cannot showmore than 1 million colors 47