CS635 Spring Department of Computer Science Purdue University

Similar documents
The Display pipeline. The fast forward version. The Display Pipeline The order may vary somewhat. The Graphics Pipeline. To draw images.

The Elements of Colour

Reading. 2. Color. Emission spectra. The radiant energy spectrum. Watt, Chapter 15.

Fall 2015 Dr. Michael J. Reale

Introduction to color science

Lecture 12 Color model and color image processing

Visible Color. 700 (red) 580 (yellow) 520 (green)

Physical Color. Color Theory - Center for Graphics and Geometric Computing, Technion 2

Lecture 11. Color. UW CSE vision faculty

Image Formation. Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico

Digital Image Processing COSC 6380/4393. Lecture 19 Mar 26 th, 2019 Pranav Mantini

Image Formation. Camera trial #1. Pinhole camera. What is an Image? Light and the EM spectrum The H.V.S. and Color Perception

Computer Graphics. Bing-Yu Chen National Taiwan University The University of Tokyo

Game Programming. Bing-Yu Chen National Taiwan University

Introduction to Computer Graphics with WebGL

Color and Shading. Color. Shapiro and Stockman, Chapter 6. Color and Machine Vision. Color and Perception

Lecture 1 Image Formation.

Illumination and Shading

CSE 167: Introduction to Computer Graphics Lecture #6: Colors. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2013

Chapter 4 Color in Image and Video

Image Processing. Color

CSE 167: Lecture #7: Color and Shading. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

CSE 167: Lecture #6: Color. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2012

Spectral Color and Radiometry

(0, 1, 1) (0, 1, 1) (0, 1, 0) What is light? What is color? Terminology

Digital Image Processing. Introduction

Light Transport Baoquan Chen 2017

CSE 167: Lecture #6: Color. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

Color to Binary Vision. The assignment Irfanview: A good utility Two parts: More challenging (Extra Credit) Lighting.

Digital Image Processing

Chapter 5 Extraction of color and texture Comunicação Visual Interactiva. image labeled by cluster index

CS452/552; EE465/505. Color Display Issues

Color. Phillip Otto Runge ( )

Color Vision. Spectral Distributions Various Light Sources

Lecture #2: Color and Linear Algebra pt.1

Sources, Surfaces, Eyes

Colour Reading: Chapter 6. Black body radiators

3D graphics, raster and colors CS312 Fall 2010

Reading. 4. Color. Outline. The radiant energy spectrum. Suggested: w Watt (2 nd ed.), Chapter 14. Further reading:

Lighting. Camera s sensor. Lambertian Surface BRDF

this is processed giving us: perceived color that we actually experience and base judgments upon.

Color Space Transformations

Announcements. Lighting. Camera s sensor. HW1 has been posted See links on web page for readings on color. Intro Computer Vision.

ECE-161C Color. Nuno Vasconcelos ECE Department, UCSD (with thanks to David Forsyth)

Color. making some recognition problems easy. is 400nm (blue) to 700 nm (red) more; ex. X-rays, infrared, radio waves. n Used heavily in human vision

Color Appearance in Image Displays. O Canada!

Image Analysis and Formation (Formation et Analyse d'images)

2003 Steve Marschner 7 Light detection discrete approx. Cone Responses S,M,L cones have broadband spectral sensitivity This sum is very clearly a dot

Opponent Color Spaces

Why does a visual system need color? Color. Why does a visual system need color? (an incomplete list ) Lecture outline. Reading: Optional reading:

Color. Reading: Optional reading: Chapter 6, Forsyth & Ponce. Chapter 4 of Wandell, Foundations of Vision, Sinauer, 1995 has a good treatment of this.

Lecture 1. Computer Graphics and Systems. Tuesday, January 15, 13

Computer Graphics. Bing-Yu Chen National Taiwan University

Lecture 16 Color. October 20, 2016

INTRODUCTION. Slides modified from Angel book 6e

Viewing/Projection VI, Vision/Color. Week 5, Wed Feb 2

Mech 296: Vision for Robotic Applications

CS770/870 Spring 2017 Color and Shading

CIE L*a*b* color model

Color Image Processing

ELEC Dr Reji Mathew Electrical Engineering UNSW

CHAPTER 3 COLOR MEASUREMENT USING CHROMATICITY DIAGRAM - SOFTWARE

Announcements. Camera Calibration. Thin Lens: Image of Point. Limits for pinhole cameras. f O Z

Illumination and Reflectance

CS681 Computational Colorimetry

Color, Edge and Texture

Extensions of One-Dimensional Gray-level Nonlinear Image Processing Filters to Three-Dimensional Color Space

Distributed Algorithms. Image and Video Processing

When this experiment is performed, subjects find that they can always. test field. adjustable field

Lecture 2 5 Aug 2004

One image is worth 1,000 words

Colour computer vision: fundamentals, applications and challenges. Dr. Ignacio Molina-Conde Depto. Tecnología Electrónica Univ.

Computer Graphics MTAT Raimond Tunnel

CS6670: Computer Vision

Light. Computer Vision. James Hays

Multimedia Technology CHAPTER 4. Video and Animation

Kishor M. Bhurchandi, Dept. of Electronics Engineering, Priyadarshini College of Engineering & Architecture, Nagpur.

CS 556: Computer Vision. Lecture 18

Main topics in the Chapter 2. Chapter 2. Digital Image Representation. Bitmaps digitization. Three Types of Digital Image Creation CS 3570

Image Analysis. 1. A First Look at Image Classification

Color and Blending. Prerequisites. None; this chapter discusses color issues from first principles. Introduction

Lecture #13. Point (pixel) transformations. Neighborhood processing. Color segmentation

Multimedia Databases. 2. Summary. 2 Color-based Retrieval. 2.1 Multimedia Data Retrieval. 2.1 Multimedia Data Retrieval 4/14/2016.

VISUAL SIMULATING DICHROMATIC VISION IN CIE SPACE

Computer Graphics Lecture 2

CS4670: Computer Vision

Color. Today s Class. Reading for This Week. Reading for This Week. Mid- Term PresentaCons. Today s Class 2/29/12

Midterm Exam CS 184: Foundations of Computer Graphics page 1 of 11

Visualisatie BMT. Rendering. Arjan Kok

Computer Vision Course Lecture 02. Image Formation Light and Color. Ceyhun Burak Akgül, PhD cba-research.com. Spring 2015 Last updated 04/03/2015

Approaches to Visual Mappings

ITP 140 Mobile App Technologies. Colors

CS5670: Computer Vision

Cvision 3 Color and Noise

Lenses: Focus and Defocus

Light. Properties of light. What is light? Today What is light? How do we measure it? How does light propagate? How does light interact with matter?

Midterm Exam! CS 184: Foundations of Computer Graphics! page 1 of 14!

1. Final Projects 2. Radiometry 3. Color. Outline

Color. Computational Photography MIT Feb. 14, 2006 Bill Freeman and Fredo Durand

Physics-based Methods in Vision

Transcription:

Color and Perception CS635 Spring 2010 Daniel G Aliaga Daniel G. Aliaga Department of Computer Science Purdue University

Elements of Color Perception 2

Elements of Color Physics: Illumination Electromagnetic spectra; approx. 350 720 nm Rfl Reflection Material properties (i.e., reflectance, transparency) Surface geometry and micro geometry (i.e., polished versus matte versus brushed) Perception Physiology and neurophysiology Perceptual psychology 3

Physiology of the Eye The eye: The retina 100 M Rods B&W 5 M Cones Color 4

Physiology of the Retina The center of the retina is a densely packed region called thefovea. Cones much denser here than the periphery 5

Types of Cones 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) Color blindness results from missing cone type(s) 6

Color Normal Blindness Protan (L-cone) red insensitivity Deutan (M-cone) green insensitivity Tritan (S-cone) B=G and Y=violet

Opponent Color Theory Humans encode colors by differences E.g R G, and B Y Differences

Perception: Metamers A given perceptual sensation of color derives from the stimulus of all three cone types Identical perceptions of color can thus be caused by very different spectra 9

Perception: Other Gotchas Color perception is also difficult because: It varies from person to person (thus need standard observers ) It is affected by adaptation It is affected by surrounding color There is Mach banding 10

Summary of Human Color Perception Subjectively, the human eye seems to perceive color by three conceptual dimensions: hue, brightness, and saturation. This suggests a 3D color space. Hardware reproduction of color cannot match human perception perfectly. 11

Color Spaces Three types of cones suggests color is a 3D quantity. How to define 3D color space? Idea: shine given wavelength (λ) on a screen, and mix three other wavelengths (R,G,B) on same screen. Have user adjust intensity it of RGB until colors are identical: How closely does this correspond to a color CRT? Problem: sometimes need to subtract R to match λ 12

CIE Color Space The CIE (Commission Internationale d Eclairage) came up with three hypothetical lights X, Y, and Z with these spectra: Approximately: X ~ R Y ~ G Z ~ B Idea: any wavelength λ can be matched perceptually p by positive combinations of X,Y,Z,, 13

1931 CIE Color Space 14

1931 CIE Color Space 15

CIE Color Space The gamut of all colors perceivable is thus a three dimensional shape in X,Y,Z: XYZ: For simplicity, we often project to the 2D plane X+Y+Z=1, e.g.: X = X / (X+Y+Z) Y = Y / (X+Y+Z) Z = 1 - X - Y 16

Device Color Gamuts X, Y, and Z are hypothetical light sources; no real device can produce the entire gamut of perceivable color Example: CRT monitor 17

Device Color Gamuts The RGB color cube sits within CIE color space something like: 18

Device Color Gamuts We can use the CIE chromaticity diagram to compare the gamuts of various devices: Note, for example, that a color printer cannot reproduce all shades available on a color monitor 19

Converting Within Color Space Simple matrix operation: R' G' B' = X Y Z R R R X Y Z G G G X Y Z B B B R G B The transformation C 2 = M 1 2 M 1 C 1 yields RGB on monitor 2 that t is equivalent tto a given RGB on monitor 1 Analogous to change of coordinate system. 20

RGB Color Space

RGB Color Space Convenient colors (screen phosphors) Decent coverage of the human color Customarily quantized din the range 0 255 Full color = 3 bytes/pixel Not a particularly good basis for human interaction Non intuitive Non orthogonal orthogonal (perceptually)

RGB Color Space The RBG colors can be arranged in a cube, in a space with the dimensions R, G, and B. The colors at the vertices of the RGB cube are then: Color R G B black 0 0 0 white 255 255 255 red 255 0 0 green 0 255 0 blue 0 0 255 cyan 0 255 255 magenta 255 0 255 yellow 255 255 0 23

RGB Cube Properties The main diagonal from black to white contains the gray scale. If a specific color is given as (R,G,B) and k is a number smaller than 1, then (kr, kg, kb) has approximately the same hue and is dimmer. So, we can model color intensity by (kr, kg, kb), k < 1 Note that the brightness of (R,G,B), is not exceeded 24

HSV/HSL Color Space

HSV/HSL Color Space Intensity/Value total amount of energy Saturation degree to which color is one wavelength Hue dominant wavelength

HSV Max = max(r, G, B) Min = min(r, G, B) S = (max min)/max If R==Max h = (G B)/(max min) If G==Max h = 2+(B R)/(max min) ) If B==Max h = 4 + (R G)/(max min) If h<0 H = h/6 + 1 If h>0 H = h/6

HSV User Interaction

HSL if G>B, if G<B if G=B

YIQ Color Space YIQ is the color model used for color TV in the US Y is luminance; I & Q are color Note: Y is the same as CIE s Y Result: backwards compatibility with B/W TV! 30

Converting Between Color Spaces Converting between color models can also be expressed as such a matrix transform, e.g.: Y 0.30 0.59 0.11 R I = 0.60 0.28 0.32 G Q 0.21 0.52 0. 31 B 31

Gamma Correction We generally assume color brightness is linear But most display devices are inherently nonlinear brightness(voltage) 2 brightness(voltage/2): Common solution: gamma correction I = V s Post transformation on RGB values to map them to linear range on display device: V c = V s Can have separate γ for R, G, B γ is usually in range 1.8 to 2.2 γ 1 γ 32

Gamma Correction Camera Overall (gamma encoding) Display (gamma expansion) 33

Gamma Correction Camera Overall (gamma encoding) Display (gamma expansion) 34