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

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

University of British Columbia CPSC 414 Computer Graphics

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

COLOR and the human response to light

COLOR. and the human response to light

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

Colors in Images & Video

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

Color Science. CS 4620 Lecture 15

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

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

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

Computer Graphics Si Lu Fall /27/2016

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

What is Color. Color is a fundamental attribute of human visual perception.

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

Color Image Processing. Gonzales & Woods: Chapter 6

12/02/2017. From light to colour spaces. Electromagnetic spectrum. Colour. Correlated colour temperature. Black body radiation.

LECTURE 07 COLORS IN IMAGES & VIDEO

Visual Imaging and the Electronic Age Color Science

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

The Principles of Chromatics

Interactive Computer Graphics

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

Bettina Selig. Centre for Image Analysis. Swedish University of Agricultural Sciences Uppsala University

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

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

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

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

PERCEIVING COLOR. Functions of Color Vision

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

Multimedia Systems Color Space Mahdi Amiri March 2012 Sharif University of Technology

CMPSCI 670: Computer Vision! Color. University of Massachusetts, Amherst September 15, 2014 Instructor: Subhransu Maji

Lecture Color Image Processing. by Shahid Farid

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

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

Digital Image Processing

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

Mahdi Amiri. March Sharif University of Technology

Introduction to Computer Vision CSE 152 Lecture 18

Figure 1: Energy Distributions for light

Lecture: Color. Juan Carlos Niebles and Ranjay Krishna Stanford AI Lab. Lecture 1 - Stanford University

Color images C1 C2 C3

Color vision and representation

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

IFT3355: Infographie Couleur. Victor Ostromoukhov, Pierre Poulin Dép. I.R.O. Université de Montréal

Light and Colour. Light as part of the EM spectrum. Light as part of the EM spectrum

Color. Maneesh Agrawala Jessica Hullman. CS : Visualization Fall Assignment 3: Visualization Software

Introduction to Color Science (Cont)

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

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

Lecture 8. Color Image Processing

Multimedia Systems and Technologies

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

Wireless Communication

skip chap. 8 for now Chap. 9 Color (continued) Lecture 19 Tuesday, October 26

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

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

CS 565 Computer Vision. Nazar Khan PUCIT Lecture 4: Colour

Color. Bilkent University. CS554 Computer Vision Pinar Duygulu

Color Image Processing

EECS490: Digital Image Processing. Lecture #12

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

Additive. Subtractive

Color Perception. Color, What is It Good For? G Perception October 5, 2009 Maloney. perceptual organization. perceptual organization

Color Image Processing

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

Color Computer Vision Spring 2018, Lecture 15

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

Color , , Computational Photography Fall 2018, Lecture 7

19. Vision and color

Digital Image Processing Color Models &Processing

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

Color , , Computational Photography Fall 2017, Lecture 11

Chapter 3 Part 2 Color image processing

Vision and color. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell

Capturing Light in man and machine

Imaging Process (review)

Color. Computer Graphics CMU /15-662

The human visual system

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

Color Image Processing. Jen-Chang Liu, Spring 2006

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

Images. CS 4620 Lecture Kavita Bala w/ prior instructor Steve Marschner. Cornell CS4620 Fall 2015 Lecture 38

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

Digital Image Processing. Lecture # 8 Color Processing

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

Reading instructions: Chapter 6

Announcements. The appearance of colors

Contrast, Luminance and Colour

Prof. Feng Liu. Winter /09/2017

Capturing Light in man and machine

OPTO 5320 VISION SCIENCE I

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

Color and Color Models

Spectral colors. What is colour? 11/23/17. Colour Vision 1 - receptoral. Colour Vision I: The receptoral basis of colour vision

Color image processing

IMAGE PROCESSING >COLOR SPACES UTRECHT UNIVERSITY RONALD POPPE

Radiometric and Photometric Measurements with TAOS PhotoSensors

Introduction to Color

Transcription:

University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2013 Tamara Munzner Vision/Color Reading for Color RB Chap Color FCG Sections 3.2-3.3 FCG Chap 20 Color FCG Chap 21.2.2 Visual Perception (Color) http://www.ugrad.cs.ubc.ca/~cs314/vjan2013 2 RGB Color triple (r, g, b) represents colors with amount of red, green, and blue hardware-centric used by OpenGL Vision/Color 3 4

Alpha Additive vs. Subtractive Colors fourth component for transparency (r,g,b,α) fraction we can see through c = αc f + (1-α)c b more on compositing later additive: light monitors, LCDs RGB model subtractive: pigment printers CMY model dyes absorb light & C # $! $ M! $ % Y!" = & 1# & R# $! ' $! $ 1! $ G! $ % 1! " $ % B! " 5 additive subtractive 6 Component Color component-wise multiplication of colors (a0,a1,a2) * (b0,b1,b2) = (a0*b0, a1*b1, a2*b2) elements of color: Basics Of Color why does this work? must dive into light, human vision, color spaces 7 8

Basics of Color physics illumination electromagnetic spectra reflection material properties surface geometry and microgeometry polished versus matte versus brushed perception physiology and neurophysiology perceptual psychology Light Sources common light sources differ in kind of spectrum they emit: continuous spectrum energy is emitted at all wavelengths blackbody radiation tungsten light bulbs certain fluorescent lights sunlight electrical arcs line spectrum energy is emitted at certain discrete frequencies 9 10 Blackbody Radiation Electromagnetic Spectrum black body dark material, so that reflection can be neglected spectrum of emitted light changes with temperature this is the origin of the term color temperature e.g. when setting a white point for your monitor cold: mostly infrared hot: reddish very hot: bluish demo: http://www.mhhe.com/physsci/astronomy/applets/blackbody/frame.html 11 12

Electromagnetic Spectrum White Light sun or light bulbs emit all frequencies within visible range to produce what we perceive as "white light" 13 14 Sunlight Spectrum spectral distribution: power vs. wavelength Continuous Spectrum sunlight various daylight lamps 15 16

Line Spectrum White Light and Color ionized gases lasers some fluorescent lamps when white light is incident upon an object, some frequencies are reflected and some are absorbed by the object combination of frequencies present in the reflected light that determines what we perceive as the color of the object 17 18 Hue hue (or simply, "color") is dominant wavelength/ frequency Saturation or Purity of Light how washed out or how pure the color of the light appears contribution of dominant light vs. other frequencies producing white light saturation: how far is color from grey pink is less saturated than red sky blue is less saturated than royal blue integration of energy for all visible wavelengths is proportional to intensity of color 19 20

Intensity vs. Brightness Perceptual vs. Colorimetric Terms intensity : physical term measured radiant energy emitted per unit of time, per unit solid angle, and per unit projected area of the source (related to the luminance of the source) lightness/brightness: perceived intensity of light nonlinear Perceptual Hue Saturation Lightness reflecting objects Brightness light sources Colorimetric Dominant wavelength Excitation purity Luminance Luminance 21 22 the retina rods b/w, edges cones 3 types color sensors uneven distribution dense fovea Physiology of Vision Physiology of Vision Center of retina is densely packed region called the fovea. Cones much denser here than the periphery 23 24

Foveal Vision hold out your thumb at arm s length X Y H C G W D K N S P A O B R Q T E F J M L V U 25 Tristimulus Theory of Color Vision Although light sources can have extremely complex spectra, it was empirically determined that colors could be described by only 3 primaries Colors that look the same but have different spectra are called metamers 26 Trichromacy three types of cones L or R, most sensitive to red light (610 nm) M or G, most sensitive to green light (560 nm) S or B, most sensitive to blue light (430 nm) Metamers a given perceptual sensation of color derives from the stimulus of all three cone types color blindness results from missing cone type(s) 27 identical perceptions of color can thus be caused by very different spectra demo http://www.cs.brown.edu/exploratories/freesoftware/catalogs/color_theory.html 28

Color Spaces Negative Lobes three types of cones suggests color is a 3D quantity. how to define 3D color space? idea: perceptually based measurement shine given wavelength (λ) on a screen user must control three pure lights producing three other wavelengths used R=700nm, G=546nm, and B=436nm adjust intensity of RGB until colors are identical this works because of metamers! sometimes need to point red light to shine on target in order to match colors equivalent mathematically to "removing red" but physically impossible to remove red from CRT phosphors can t generate all other wavelenths with any set of three positive monochromatic lights! solution: convert to new synthetic coordinate system to make the job easy experiments performed in 1930s 29 30 CIE Color Space Measured vs. CIE Color Spaces CIE defined 3 imaginary lights X, Y, Z any wavelength λ can be matched perceptually by positive combinations Note that: X ~ R Y ~ G Z ~ B 31 measured basis monochromatic lights physical observations negative lobes transformed basis imaginary lights all positive, unit area Y is luminance, no hue X,Z no luminance 32

CIE and Chromaticity Diagram X, Y, Z form 3D shape project X, Y, Z on X+Y+Z=1 plane for 2D color space chromaticity diagram separate color from brightness x = X / (X+Y+Z) y = Y / (X+Y+Z) CIE Horseshoe Diagram Facts all visible colors lie inside the horseshoe result from color matching experiments spectral (monochromatic) colors lie around the border straight line between blue and red contains purple tones colors combine linearly (i.e. along lines), since the xy-plane is a plane from a linear space 33 34 CIE Horseshoe Diagram Facts can choose a point C for a white point corresponds to an illuminant usually on curve swept out by black body radiation spectra for different temperatures Blackbody Curve illumination: candle 2000K A: Light bulb 3000K sunset/ sunrise 3200K D: daylight 6500K overcast day 7000K lightning >20,000K 35 36

CIE Horseshoe Diagram Facts can choose a point C for a white point corresponds to an illuminant usually on curve swept out by black body radiation spectra for different temperatures two colors are complementary relative to C when are located on opposite sides of line segment through C so C is an affine combination of the two colors find dominant wavelength of a color: extend line from C through color to edge of diagram some colors (i.e. purples) do not have a dominant wavelength, but their complementary color does Color Interpolation, Dominant & Opponent Wavelength Complementary wavelength 37 38 Device Color Gamuts Display Gamuts gamut is polygon, device primaries at corners defines reproducible color range X, Y, and Z are hypothetical light sources, no device can produce entire gamut 39 From A Field Guide to Digital Color, A.K. Peters, 2003 40

Projector Gamuts Gamut Mapping how to handle colors outside gamut? one way: construct ray to white point, find closest displayable point within gamut From A Field Guide to Digital Color, A.K. Peters, 2003 41 42 RGB Color Space (Color Cube) define colors with (r, g, b) amounts of red, green, and blue used by OpenGL hardware-centric RGB color cube sits within CIE color space subset of perceivable colors scale, rotate, shear cube HSV Color Space more intuitive color space for people H = Hue dominant wavelength, color S = Saturation how far from grey/white V = Value how far from black/white also: brightness B, intensity I, lightness L Hue Saturation Value 43 44

HSI/HSV and RGB HSV/HSI conversion from RGB not expressible in matrix H=hue same in both V=value is max, I=intensity is average H = cos HSI: HSV: ' 1 & $ $ $ % 1 2 ( R ' G) [( R ' G) + ( R ' B) ] S =1" min(r,g,b) I S =1" min(r,g,b) V 2 + ( R ' B)( G ' B) #!!! " if (B > G), H = 360 " H R + G + B I = 3 V = max(r,g,b) 45 YIQ Color Space color model used for color TV Q Y is luminance (same as CIE) I & Q are color (not same I as HSI!) using Y backwards compatible for B/W TVs conversion from RGB is linear expressible with matrix multiply & Y # & 0.30 $! = $ $ I! $ 0.60 $ % Q! " $ % 0.21 0.59 ' 0.28 ' 0.52 0.11 #& R# ' 0.32! $!! $ G! 0.31!" $ % B! " green is much lighter than red, and red lighter than blue I 46 Luminance vs. Intensity luminance Y of YIQ 0.299R + 0.587G + 0.114B captures important factor intensity/brightness I/V/B of HSI/HSV/HSB 0.333R + 0.333G + 0.333B not perceptually based Opponent Color definition achromatic axis R-G and Y-B axis separate lightness from chroma channels first level encoding linear combination of LMS before optic nerve basis for perception color blind = color deficient degraded/no acuity on one axis 8%-10% men are red/green deficient www.csse.uwa.edu.au/~robyn/visioncourse/colour/lecture/node5.html 47 48

vischeck.com simulates color vision deficiencies Color/Lightness Constancy color perception depends on surrounding colors in close proximity simultaneous contrast effect Normal vision Deuteranope Protanope Tritanope illumination under which the scene is viewed 49 50 Color/Lightness Constancy Color/Lightness Constancy Image courtesy of John McCann 51 Image courtesy of John McCann 52

Color Constancy automatic white balance from change in illumination vast amount of processing behind the scenes! colorimetry vs. perception red blue orange purple green Stroop Effect 53 54 Stroop Effect blue green purple red orange interplay between cognition and perception 55