Color Physics –Light is E-M radiation of different frequencies. –Superposition principle Perception –3 cones -> 3D color space. (Metamers). –Convex subset.

Slides:



Advertisements
Similar presentations
13- 1 Chapter 13: Color Processing 。 Color: An important descriptor of the world 。 The world is itself colorless 。 Color is caused by the vision system.
Advertisements

CS 445 / 645 Introduction to Computer Graphics Lecture 13 Color Color.
Introduction to Computer Graphics ColorColor. Specifying Color Color perception usually involves three quantities: Hue: Distinguishes between colors like.
2002 by Jim X. Chen: 1 Understand brightness, intensity, eye characteristics, and gamma correction, halftone technology,
Achromatic and Colored Light CS 288 9/17/1998 Vic.
Fundamentals of Digital Imaging
The eyes have three different kinds of color receptors; One kind is most sensitive to short wavelengths, one to middle wavelengths, and one to long wavelengths.
School of Computing Science Simon Fraser University
CS 4731: Computer Graphics Lecture 24: Color Science
Colour Theory and Application B.Sc. (Hons) Multimedia ComputingMedia Technologies.
Multi-media Graphics JOUR 205 Color Models & Color Space 5 ways of specifying colors.
Color Mixing There are two ways to control how much red, green, and blue light reaches the eye: “Additive Mixing” Starting with black, the right amount.
© 2002 by Yu Hen Hu 1 ECE533 Digital Image Processing Color Imaging.
What is color for?.
Display Issues Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
CSc 461/561 CSc 461/561 Multimedia Systems Part A: 2. Image.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Why Care About Color? Accurate color reproduction is commercially valuable - e.g. Kodak yellow, painting a house Color reproduction problems increased.
Color Models AM Radio FM Radio + TV Microwave Infrared Ultraviolet Visible.
Raster Graphics and Color
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.
Colour Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 6 This presentation © 2004, MacAvon Media Productions Colour.
Guilford County SciVis V104.02
CS 376 Introduction to Computer Graphics 01 / 26 / 2007 Instructor: Michael Eckmann.
2001 by Jim X. Chen: 1 The purpose of a color model is to allow convenient specification of colors within some color gamut.
Digital Images The digital representation of visual information.
Any questions about the current assignment? (I’ll do my best to help!)
Color Management. How does the color work?  Spectrum Spectrum is a contiguous band of wavelengths, which is emitted, reflected or transmitted by different.
COLLEGE OF ENGINEERING UNIVERSITY OF PORTO COMPUTER GRAPHICS AND INTERFACES / GRAPHICS SYSTEMS JGB / AAS Light and Color Graphics Systems / Computer.
CS 445 / 645: Introductory Computer Graphics Color.
Colours and Computer Jimmy Lam The Hong Kong Polytechnic University.
Color. There are established models of color, each discipline uses it own method for describing and discussing color intelligently.
Color John C. Hart CS 418 Intro to Computer Graphics.
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.
Week 6 Colour. 2 Overview By the end of this lecture you will be familiar with: –Human visual system –Foundations of light and colour –HSV and user-oriented.
CS 445 / 645 Introduction to Computer Graphics Lecture 13 Color Color.
Color Theory ‣ What is color? ‣ How do we perceive it? ‣ How do we describe and match colors? ‣ Color spaces.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
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.
CSC361/ Digital Media Burg/Wong
Graphics Lecture 4: Slide 1 Interactive Computer Graphics Lecture 4: Colour.
A color model is a specification of a 3D color co-ordinate system and a visible subset in the co-ordinate System within all colors in a particular color.
Three-Receptor Model Designing a system that can individually display thousands of colors is very difficult Instead, colors can be reproduced by mixing.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Introduction to Computer Graphics
Color Principles for Computer Graphics Donald House 9/17/09 Artist’s slides by Lynette House.
Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.
Greg Humphreys CS445: Intro Graphics University of Virginia, Fall 2003 Raster Graphics and Color Greg Humphreys University of Virginia CS 445, Fall 2003.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
CS-321 Dr. Mark L. Hornick 1 Color Perception. CS-321 Dr. Mark L. Hornick 2 Color Perception.
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.
Computer Graphics: Achromatic and Coloured Light.
1 of 32 Computer Graphics Color. 2 of 32 Basics Of Color elements of color:
COMPUTER GRAPHICS CS 482 – FALL 2016 CHAPTER 28 COLOR COLOR PERCEPTION CHROMATICITY COLOR MODELS COLOR INTERPOLATION.
Color Models Light property Color models.
Half Toning Dithering RGB CMYK Models
Color Image Processing
Color Image Processing
(c) University of Wisconsin, CS559 Spring 2002
COLOR space Mohiuddin Ahmad.
Color Image Processing
Colour Theory Fundamentals
COMS 161 Introduction to Computing
Color Image Processing
Slides taken from Scott Schaefer
Color Model By : Mustafa Salam.
Color Models l Ultraviolet Infrared 10 Microwave 10
Color Theory What is color? How do we perceive it?
Presentation transcript:

Color Physics –Light is E-M radiation of different frequencies. –Superposition principle Perception –3 cones -> 3D color space. (Metamers). –Convex subset of 3D linear space. –Color matching: can’t represent w/ 3 primaries. Color Spaces –CIE – a standard –RGB – a bit more intuitive, Monitors, OpenGL –CMYK – subtractive, what we learn in art class. –HSV – More intuitive More Perception –Perceptual distance –Context Refs: H&B Chapter 12; “The Foundations of Color Measurement and Color Perception”, by Brian Wandell: ftp://white.stanford.edu/users/brian/ise/sid-colornotes.pdf

(Wandell) Newton’s drawing:

(Varshney) (Image Removed)

Color is a function (Angelopoulou)

Superposition Light is linear. Light from source A + light from source B = Light from sources A & B. –Any color is a combination of pure colors. Doubling intensity of source doubles amount of light reaching us.

Announcements Practice midterm available.

Human Color Perception Cones allow color perception. 3 types of cones sensitive to different frequencies Perceptual color depends on how these are stimulated. (Image Removed)

Metamers (Wandell)

Perceptual color space 3D Convex subspace –Cones don’t have negative response So why are there so many color spaces, instead of just one? –There isn’t a unique color for each cone. –“Green” light also excites “red” cones. –So to produce some greenish lights we need negative red light.

Color Matching (Wandell)

Some colors can’t be matched But we can match that color + a primary color, using the other two primaries. Adding red to our color is like matching it with negative red. All colors can be matched like this –Shows perceptually color is 3D –But we can’t have negative light in a display. –Display space is convex too, but can’t match perceptual convex space.

(Wandell)

CIE Model CIE: International Commission on Illumination (1931) Describes any visible color with only positive primaries Primaries are called: X, Y, Z Color is described by chrominance x, y, and luminance Y “Apart from the very approximate relationship between Y and brightness, there is almost nothing intuitive about the XYZ color-matching functions. While they have served us quite well as a technical standard, they have served us quite poorly in explaining the discipline to new students and colleagues or as an intuition about color appearance.” - Wandell

(Image Removed)

Additive Color Model RGB Mix Red, Green, Blue primaries to get colors Cartesian Coordinate System with origin as black. Used in display devices: CRTs, LCDs. (Image Removed)

Subtractive Color Model CMYK Start with white and subtract different subtractive primaries –Cyan ink: Absorbs red –Magenta ink: Absorbs green –Yellow ink: Absorbs blue Used in color printing C+M+Y = Black, but added fourth black ink for good black color and also to preserve CMY ink for black text

Color Specification Hue: Distinguishes among colors –red, yellow, blue Saturation: Color Purity (difference from white) –blue and sky blue Lightness: Perceived intensity of reflected light –blue and darker shades of blue Brightness: Perceived intensity of self-luminous objects Artists: –Tint: Add white (decrease saturation) –Shade: Add black (decrease lightness)

Perceptual Color Model HSV R = 0 o, G = 120 o, B = 240 o Complementary colors are 180 o apart S = 0: Gray levels V S H Red YellowGreen Cyan Blue Magenta White Black

Logarithmic Perception Constant ratios of intensities are perceived as being equally different Example: intensities of 0.01 and 0.02 will be perceived to be have the same difference between them as intensities of.5 and 1.0 Other examples of logarithmic perception: –Decibel scale: sound –Richter scale: earthquakes

(Wandell)

Logarithmic Display Uniformly partitioning the displayable intensity range into equidistant arithmetic intervals is wasteful Each intensity should differ from the previous by a constant ratio. I 0 = minimum non-zero displayable intensity I n = maximum displayable intensity = 1.0 I 1 = r I 0, I 2 = r I 1 = r 2 I 0, I 3 = r I 2 = r 2 I 1 = r 3 I 0 I n = r n I 0  r = (1/ I 0 ) 1/n

(Wandell)

Gamma Correction I = KV  I = intensity, V = voltage K and  are CRT dependent Given an intensity I, find j as: j = round (log r (I/I 0 )) Given j, find I j = r j I 0 and then find the voltage V j for a given pixel as: V j = round (I j /K) 1/ 

Halftoning Halftoning: Smaller black disks for brighter and larger disks for darker areas Eyes do the intensity averaging Allows more displayable intensity levels at a cost of lower spatial resolution

Halftoning (Image Removed)

Spatial versus Intensity Resolution Halftone Approximation: Dither –n  n pixels encode n intensity levels The distribution of intensities is randomized: dither noise, to avoid repeating visual artifacts

Intensity depends on context (Adelson)

But context is a subtle thing. (Knill and Kersten)

Context can also create transparency (Adelson)

Opacity and Blending Alpha channel to allow different levels of opacity amongst objects:  = 1  Perfectly opaque  = 0  Perfectly transparent 0  Different levels of translucency Blending is mixing colors of two sets of pixels: source and destination –source and destination each have relative weights or blending factors to control the operation

Blending in OpenGL glEnable (GL_BLEND) glBlendFunc (source_factor, destination_factor) –GL_ONE, GL_ZERO, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA Eg: glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) Demo

Depth Cueing and Fog Depth Cueing: Draw objects farther from the viewer darker Fog: Draw objects farther from the viewer whiter Let the color to be added with depth be C f, the color of the pixel be C s and the factor for blending be f, then: C s = f C s + (1 - f) C f Depth cueing: f varies linearly with depth, eg: f = z Fog: f varies exponentially with depth, eg: f = e -0.5z 2 glEnable (GL_FOG); glFogf (GL_FOG_MODE, GL_EXP); glFogf (GL_FOG_DENSITY, 0.5); glFogfv (GL_FOG_COLOR, fcolor); // Glfloat fcolor[4] = {…};

Illumination Attenuation (Image Removed)