CS 4300 Computer Graphics. Prof. Harriet Fell Fall 2012 Lecture 4 September 12, 2012

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

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

Figure 1: Energy Distributions for light

Color Science. CS 4620 Lecture 15

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

Hello, welcome to the video lecture series on Digital image processing. (Refer Slide Time: 00:30)

Colors in Images & Video

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

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

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

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

Mahdi Amiri. March Sharif University of Technology

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

University of British Columbia CPSC 414 Computer Graphics

Color Image Processing

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

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

Introduction to Multimedia Computing

Additive Color Synthesis

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

Digital Image Processing. Lecture # 8 Color Processing

Color Image Processing. Gonzales & Woods: Chapter 6

Introduction. The Spectral Basis for Color

Introduction & Colour

LECTURE 07 COLORS IN IMAGES & VIDEO

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

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

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

Wireless Communication

Capturing Light in man and machine

COLOR and the human response to light

The human visual system

Interactive Computer Graphics

Frequencies and Color

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

COLOR. and the human response to light

Visual Imaging and the Electronic Age Color Science

Color Image Processing

Visual Perception. human perception display devices. CS Visual Perception

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

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

excite the cones in the same way.

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

Capturing Light in man and machine

Unit 8: Color Image Processing

Introduction to computer vision. Image Color Conversion. CIE Chromaticity Diagram and Color Gamut. Color Models

Digital Image Processing

Prof. Feng Liu. Winter /09/2017

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

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

Color Perception. This lecture is (mostly) thanks to Penny Rheingans at the University of Maryland, Baltimore County

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

The Science Seeing of process Digital Media. The Science of Digital Media Introduction

Visual Perception. Jeff Avery

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

Our Color Vision is Limited

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

Color, Vision, & Perception. Outline

Colors in images. Color spaces, perception, mixing, printing, manipulating...

Capturing Light in man and machine

Capturing Light in man and machine

Images and Colour COSC342. Lecture 2 2 March 2015

Colour (1) Graphics 2

Cvision 2. António J. R. Neves João Paulo Silva Cunha. Bernardo Cunha. IEETA / Universidade de Aveiro

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

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

Christoph Wagner Colour Theory

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

Geography 360 Principles of Cartography. April 24, 2006

Capturing Light in man and machine. Some figures from Steve Seitz, Steve Palmer, Paul Debevec, and Gonzalez et al.

Computer Graphics Si Lu Fall /27/2016

Chapter 3 Part 2 Color image processing

Chapter 2 Fundamentals of Digital Imaging

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

Colors in Scientific Visualization. Mike Bailey Oregon State University

05 Color. Multimedia Systems. Color and Science

Color Theory: Defining Brown

LECTURE III: COLOR IN IMAGE & VIDEO DR. OUIEM BCHIR

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

Adapted from the Slides by Dr. Mike Bailey at Oregon State University

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

Lecture 3: Grey and Color Image Processing

USE OF COLOR IN REMOTE SENSING

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

Color and Images. Computer Science and Engineering College of Engineering The Ohio State University. Lecture 16

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

Computer Graphics. Rendering. Rendering 3D. Images & Color. Scena 3D rendering image. Human Visual System: the retina. Human Visual System

Color and perception Christian Miller CS Fall 2011

CS 428: Fall Introduction to. Image formation Color and perception. Andrew Nealen, Rutgers, /8/2010 1

CS 544 Human Abilities

Colors in Visualization. By Mike Bailey Oregon State University

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

INSTITUTIONEN FÖR SYSTEMTEKNIK LULEÅ TEKNISKA UNIVERSITET

EECS490: Digital Image Processing. Lecture #12

Color , , Computational Photography Fall 2018, Lecture 7

Color vision and representation

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

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

Computers and Imaging

Color , , Computational Photography Fall 2017, Lecture 11

Transcription:

CS 4300 Computer Graphics Prof. Harriet Fell Fall 2012 Lecture 4 September 12, 2012 1

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 2

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 3

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 September 11, 2012 4

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 5

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 September 11, 2012 6

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. September 11, 2012 7

September 11, 2012 8

September 11, 2012 9

September 11, 2012 10

September 11, 2012 11

From the Hubble Hubble Site Link 12

Color www.thestagecrew.com 13

Red, Green, and Blue Light 14

Adding R, G, and B Values http://en.wikipedia.org/wiki/rgb 15

RGB Color Cube (0, 0, 1) (1, 0, 1) (0, 1, 1) (1, 1, 1) (1, 0, 0) (0, 1, 0) (1, 1, 0) 16

RGB Color Cube The Dark Side (0, 0, 1) (0, 1, 1) (1, 0, 1) (0, 0, 0) (0, 1, 0) (1, 0, 0) (1, 1, 0) 17

Doug Jacobson's RGB Hex Triplet Color Chart 18

Making Colors Darker (1, 0, 0) (.5, 0, 0) (0, 0, 0) (0, 1, 0) (0,.5, 0) (0, 0, 0) (0, 0, 1) (0, 0,.5) (0, 0, 0) (0, 1, 1) (0,.5,.5) (0, 0, 0) (1, 0, 1) (.5, 0,.5) (0, 0, 0) (1, 1, 0) (.5,.5, 0) (0, 0, 0) 19

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); } 20

Making Pale Colors (1, 0, 0) (1,.5,.5) (1, 1, 1) (0, 1, 0) (.5, 1,.5) (1, 1, 1) (0, 0, 1) (.5,.5, 1) (1, 1, 1) (0, 1, 1) (.5, 1, 1) (1, 1, 1) (1, 0, 1) (1,.5, 1) (1, 1, 1) (1, 1, 0) (1, 1,.5) (1, 1, 1) 21

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); } 22

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 23

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 24

HSV Color Space hue: the basic color, or chromaticity saturation: how deep the color is (vs pastel ) value: the brightness of the color 25

September 11, 2012 26

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 ) 27

September 11, 2012 28

September 11, 2012 29

September 11, 2012 30

September 11, 2012 31

Try the color picker 32