©College of Computer and Information Science, Northeastern UniversityMay 27, 20161 CS 4300 Computer Graphics Prof. Harriet Fell Fall 2012 Lecture 4 – September.

Slides:



Advertisements
Similar presentations
©College of Computer and Information Science, Northeastern UniversityApril 22, CS U540 Computer Graphics Prof. Harriet Fell Spring 2009 Lecture 4.
Advertisements

Color Image Processing
Achromatic and Colored Light CS 288 9/17/1998 Vic.
Light Light is fundamental for color vision Unless there is a source of light, there is nothing to see! What do we see? We do not see objects, but the.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Color Week 5, Fri Feb.
School of Computing Science Simon Fraser University
CS 4731: Computer Graphics Lecture 24: Color Science
Color.
What is color for?.
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Color 2 Week 10, Fri 7 Nov 2003.
Display Issues Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
CSC 461: Lecture 2 1 CSC461 Lecture 2: Image Formation Objectives Fundamental imaging notions Fundamental imaging notions Physical basis for image formation.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
CS559-Computer Graphics Copyright Stephen Chenney Color Recap The physical description of color is as a spectrum: the intensity of light at each wavelength.
Colour in Computer Graphics Mel Slater. Outline: This time Introduction Spectral distributions Simple Model for the Visual System Simple Model for an.
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.
Understanding Colour Colour Models Dr Jimmy Lam Tutorial from Adobe Photoshop CS.
CS 376 Introduction to Computer Graphics 01 / 26 / 2007 Instructor: Michael Eckmann.
Image Processing Lecture 2 - Gaurav Gupta - Shobhit Niranjan.
Any questions about the current assignment? (I’ll do my best to help!)
Adobe Photoshop CS Design Professional COLORS ADJUSTING.
© 2011 Delmar, Cengage Learning Chapter 11 Adjusting Colors.
Chapter 11 Adjusting Colors. Chapter Lessons Correct and adjust color Enhance colors by altering saturation Modify color channels using levels Create.
Color Theory What is color? How do we describe and match colors? Color spaces.
I-1 Steps of Image Generation –Create a model of the objects –Create a model for the illumination of the objects –Create an image (render) the result I.
Graphics Graphics Korea University cgvr.korea.ac.kr Raster 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.
Color 2011, Fall. Colorimetry : Definition (1/2) Colorimetry  Light is perceived in the visible band from 380 to 780 nm  distribution of wavelengths.
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.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
Digital Image Processing Part 1 Introduction. The eye.
COLORCOLOR Angel 1.4 and 2.4 J. Lindblad
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.
CS5600 Computer Graphics by Rich Riesenfeld Spring 2006 Lecture Set 11.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Introduction to Computer Graphics
EEL Introduction to Computer Graphics PPT12: Color models Yamini Bura – U
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.
CS-321 Dr. Mark L. Hornick 1 Color Perception. CS-321 Dr. Mark L. Hornick 2 Color Perception.
David Luebke 1 2/5/2016 Color CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
Color and Color for the Web First, discuss idea of color (some overlap with lecture on HVS) First, discuss idea of color (some overlap with lecture on.
Image credit: Wikipedia (Fovea) Human Eye Some interesting facts – Rod cells: requires only low light b/w vision blur, all over retina EXCEPT fovea – Cone.
09/10/02(c) University of Wisconsin, CS559 Fall 2002 Last Time Digital Images –Spatial and Color resolution Color –The physics of color.
1 Computational Vision CSCI 363, Fall 2012 Lecture 32 Biological Heading, Color.
Computer Graphics: Achromatic and Coloured Light.
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
Display Issues Ed Angel
Design Concepts: Module A: The Science of Color
Color Image Processing
Color Image Processing
Human Eye Some interesting facts Useful fact Rod cells: Cone cells:
Color Image Processing
Introduction to Computer Graphics with WebGL
Computer Vision Lecture 4: Color
Human Eye Some interesting facts Useful fact Rod cells: Cone cells:
Color Image Processing
Slides taken from Scott Schaefer
Prof. Harriet Fell Spring 2007 Lecture 19 – February 22, 2007
Prof. Harriet Fell Spring 2007 Lecture 19 – February 22, 2007
Prof. Harriet Fell Spring 2007 Lecture 4 - January 17, 2007
Color Image Processing
Color Model By : Mustafa Salam.
Color Theory What is color? How do we perceive it?
Color! Main Goals: Understand this thing: “Chromaticity diagram”
Prof. Harriet Fell Spring 2007 Lecture 4 - January 17, 2007
Presentation transcript:

©College of Computer and Information Science, Northeastern UniversityMay 27, CS 4300 Computer Graphics Prof. Harriet Fell Fall 2012 Lecture 4 – September 12, 2012

©College of Computer and Information Science, Northeastern University What is color? from physics, we know that the wavelength of a photon (typically measured in nanometers, or billionths of a meter) determines its apparent color we cannot see all wavelengths, but only the visible spectrum from around 380 to 750 nm May 27, 20162

©College of Computer and Information Science, Northeastern University Where are the other colors? but where are the following colors: “brown”, “pink”, “white”, …? clearly, the color spectrum does not actually contain all colors; some colors are non-spectral generally, a large number of photons with different wavelengths are simultaneously impinging on any given location of your retina May 27, 20163

4 Marty Vona’s sketch the actual incident light is not of a single wavelength, but can be described by a spectral histogram the histogram represents the relative quantity of photons of each wavelength

©College of Computer and Information Science, Northeastern University Human Perception of Color the human eye cannot determine the exact histogram in fact just representing a complete spectral histogram exactly would require an infinite amount of space because it’s a continuous quantity the biological solution is another form of sampling three types of cone cells respond (with the equivalent of a single number each) to the degree to which the actual incident histogram is similar to response histograms with peaks near red, green, and blue May 27, 20165

so the original continous histogram impinging on one location of your retina is reduced to three measurements (actually, there is a fourth rod cell type, which is mainly active in low light conditions) color blindness is typically caused by anomalies in the types of cone cells other animals also have different cone cells May 27, 20166

because we have converted a continuous object into a set of discrete samples, we have to consider aliasing –different incident histograms, called metamers, may be mapped to the same set of cone cell responses –how many distinct colors can be seen? –one way to think about it is to know that each cone cell type can distinguish between about 100 intensity levels of the associated response curve, and then to take a constructive approach –there are ~1M ways to combine cone cell responses, so an average human can distinguish roughly that many colors the biology of human cone cells is the not only the reason we often use RGB to represent color; in fact, it defines color. Color is not an intrinsic property of light, but rather a result of the interaction between human cone cells and histograms of incident light. May 27, 20167

8

9

10

May 27,

©College of Computer and Information Science, Northeastern UniversityMay 27, From the Hubble Hubble Site Link

©College of Computer and Information Science, Northeastern UniversityMay 27, Color

©College of Computer and Information Science, Northeastern UniversityMay 27, Red, Green, and Blue Light

©College of Computer and Information Science, Northeastern UniversityMay 27, Adding R, G, and B Values

©College of Computer and Information Science, Northeastern UniversityMay 27, RGB Color Cube (1, 1, 1) (1, 1, 0) (0, 0, 1) (0, 1, 1) (0, 1, 0) (1, 0, 1) (1, 0, 0)

©College of Computer and Information Science, Northeastern UniversityMay 27, RGB Color Cube The Dark Side (0, 0, 0) (1, 1, 0) (0, 0, 1) (1, 0, 1) (1, 0, 0) (0, 1, 1) (0, 1, 0)

©College of Computer and Information Science, Northeastern UniversityMay 27, Doug JacobsonDoug Jacobson's RGB Hex Triplet Color Chart

©College of Computer and Information Science, Northeastern UniversityMay 27, Making Colors Darker (1, 0, 0) (0, 1, 0) (0, 0, 1) (0, 1, 1) (1, 0, 1) (1, 1, 0) (0, 0, 0) (.5, 0, 0) (0, 0,.5) (0,.5,.5) (.5, 0,.5) (.5,.5, 0) (0,.5, 0)

©College of Computer and Information Science, Northeastern UniversityMay 27, Getting Darker, Left to Right for (int b = 255; b >= 0; b--){ c = new Color(b, 0, 0); g.setPaint(c); g.fillRect(800+3*(255-b), 50, 3, 150); c = new Color(0, b, 0); g.setPaint(c); g.fillRect(800+3*(255-b), 200, 3, 150); c = new Color(0, 0, b); g.setPaint(c); g.fillRect(800+3*(255-b), 350, 3, 150); c = new Color(0, b, b); g.setPaint(c); g.fillRect(800+3*(255-b), 500, 3, 150); c = new Color(b, 0, b); g.setPaint(c); g.fillRect(800+3*(255-b), 650, 3, 150); c = new Color(b, b, 0); g.setPaint(c); g.fillRect(800+3*(255-b), 800, 3, 150); }

©College of Computer and Information Science, Northeastern UniversityMay 27, Making Pale Colors (1, 0, 0) (0, 1, 0) (0, 0, 1) (0, 1, 1) (1, 0, 1) (1, 1, 0) (1, 1, 1) (1,.5,.5) (.5,.5, 1) (.5, 1, 1) (1,.5, 1) (1, 1,.5) (.5, 1,.5)

©College of Computer and Information Science, Northeastern UniversityMay 27, Getting Paler, Left to Right for (int w = 0; w < 256; w++){ c = new Color(255, w, w); g.setPaint(c); g.fillRect(3*w, 50, 3, 150); c = new Color(w, 255, w); g.setPaint(c); g.fillRect(3*w, 200, 3, 150); c = new Color(w, w, 255); g.setPaint(c); g.fillRect(3*w, 350, 3, 150); c = new Color(w, 255, 255); g.setPaint(c); g.fillRect(3*w, 500, 3, 150); c = new Color(255,w, 255); g.setPaint(c); g.fillRect(3*w, 650, 3, 150); c = new Color(255, 255, w); g.setPaint(c); g.fillRect(3*w, 800, 3, 150); }

©College of Computer and Information Science, Northeastern University Additive and Subtractive Color Space sometimes RGB are considered “additive” colors because they form a basis for the color space relative to black CMY can similarly be considered “subtractive” colors because, effectively o cyan+red = white o magenta+green = white o yellow+blue = white May 27,

©College of Computer and Information Science, Northeastern University Display vs. Print additive colors typically used when light is generated by an output device (e.g. CRT, LCD) subtractive colors typically used when printing on white paper sometimes RGB and CMY are considered distinct color spaces May 27,

©College of Computer and Information Science, Northeastern University HSV Color Space hue: the basic color, or chromaticity saturation : how “deep” the color is (vs “pastel”) value: the brightness of the color May 27,

May 27,

©College of Computer and Information Science, Northeastern University RGB to HSV HSV is again a 3 dimensional space, but it is typically considered to use cylindrical coordinates –this is mainly a construction to decompose the three dimensional color space in a way that is more useful to human designers –also often useful in machine vision algorithms, which simulate our theories of (aspects of) human vision –can visualize HSV space as a “morph” of RGB space “stretch” the white and black vertices up and down “line up” the remaining six vertices along a common horizontal plane for HSV, put the white vertex back onto plane –(a variation, HSL, keeps white and black symmetrically above and below ) May 27,

May 27,

May 27,

May 27,

May 27,

©College of Computer and Information Science, Northeastern University Try the color picker May 27,

©College of Computer and Information Science, Northeastern UniversityMay 27, Gamma Correction Generally, the displayed intensity is not linear in the input (0 ≤ a ≤ 1). dispIntensity = (maxIntensity) a γ To find γ –Find a that gives you.5 intensity –Solve.5 = a γ –γ = ln(.5) ln( a)

©College of Computer and Information Science, Northeastern UniversityMay 27, Gamma Correction Gamma half black half red (127, 0, 0)