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

Similar documents
19. Vision and color

Reading. Lenses, cont d. Lenses. Vision and color. d d f. Good resources: Glassner, Principles of Digital Image Synthesis, pp

Vision and Color. Reading. Optics, cont d. Lenses. d d f. Brian Curless CSE 557 Autumn Good resources:

Vision and Color. Brian Curless CSE 557 Autumn 2015

Vision and Color. Reading. Optics, cont d. Lenses. d d f. Brian Curless CSEP 557 Fall Good resources:

Vision and Color. Brian Curless CSEP 557 Fall 2016

Vision and Color. Reading. The lensmaker s formula. Lenses. Brian Curless CSEP 557 Autumn Good resources:

Reading. 1. Visual perception. Outline. Forming an image. Optional: Glassner, Principles of Digital Image Synthesis, sections

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

Further reading. 1. Visual perception. Restricting the light. Forming an image. Angel, section 1.4

Visual Perception. Readings and References. Forming an image. Pinhole camera. Readings. Other References. CSE 457, Autumn 2004 Computer Graphics

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

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

Color Science. CS 4620 Lecture 15

Capturing Light in man and machine

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

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

Capturing Light in man and machine

Computer Graphics Si Lu Fall /27/2016

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

Digital Image Processing

Frequencies and Color

Color. Phillip Otto Runge ( )

Capturing Light in man and machine

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

Digital Image Processing

Capturing Light in man and machine

Color Image Processing. Gonzales & Woods: Chapter 6

Visual Imaging and the Electronic Age Color Science

Color vision and representation

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

Color. April 16 th, Yong Jae Lee UC Davis

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

Introduction to Color Science (Cont)

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

Slide 1. Slide 2. Slide 3. Light and Colour. Sir Isaac Newton The Founder of Colour Science

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

Vision. The eye. Image formation. Eye defects & corrective lenses. Visual acuity. Colour vision. Lecture 3.5

Color April 16 th, 2015

The Special Senses: Vision

Lecture 2 Digital Image Fundamentals. Lin ZHANG, PhD School of Software Engineering Tongji University Fall 2016

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

COLOR and the human response to light

COLOR. and the human response to light

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

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

The Human Visual System. Lecture 1. The Human Visual System. The Human Eye. The Human Retina. cones. rods. horizontal. bipolar. amacrine.

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

Oversubscription. Sorry, not fixed yet. We ll let you know as soon as we can.

Capturing Light in man and machine

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

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

Waitlist. We ll let you know as soon as we can. Biggest issue is TAs

III: Vision. Objectives:

10/8/ dpt. n 21 = n n' r D = The electromagnetic spectrum. A few words about light. BÓDIS Emőke 02 October Optical Imaging in the Eye

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

Early Visual Processing: Receptive Fields & Retinal Processing (Chapter 2, part 2)

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

Lecture 8. Human Information Processing (1) CENG 412-Human Factors in Engineering May

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

Color. Bilkent University. CS554 Computer Vision Pinar Duygulu

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

Vision. PSYCHOLOGY (8th Edition, in Modules) David Myers. Module 13. Vision. Vision

The Principles of Chromatics

Multimedia Systems and Technologies

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

Visibility, Performance and Perception. Cooper Lighting

LIGHT AND LIGHTING FUNDAMENTALS. Prepared by Engr. John Paul Timola

Science 8 Unit 2 Pack:

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

PERCEIVING COLOR. Functions of Color Vision

Why is blue tinted backlight better?

Visual System I Eye and Retina

Color. Computer Graphics CMU /15-662

DIGITAL IMAGE PROCESSING LECTURE # 4 DIGITAL IMAGE FUNDAMENTALS-I

11/23/11. A few words about light nm The electromagnetic spectrum. BÓDIS Emőke 22 November Schematic structure of the eye

Color Cameras: Three kinds of pixels

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 Christian Miller CS Fall 2011

Prof. Feng Liu. Winter /09/2017

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

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

Colors in Images & Video

Chapter 2: The Beginnings of Perception

Retina. Convergence. Early visual processing: retina & LGN. Visual Photoreptors: rods and cones. Visual Photoreptors: rods and cones.

Optics Review (Chapters 11, 12, 13)

Chapter 2: Digital Image Fundamentals. Digital image processing is based on. Mathematical and probabilistic models Human intuition and analysis

Physical Science Physics

Vision Science I Exam 1 23 September ) The plot to the right shows the spectrum of a light source. Which of the following sources is this

The human visual system

CS 1699: Intro to Computer Vision. Color. Prof. Adriana Kovashka University of Pittsburgh September 22, 2015

Radiometric and Photometric Measurements with TAOS PhotoSensors

Visual Perception of Images

Figure 1: Energy Distributions for light

SCIENCE 8 WORKBOOK Chapter 6 Human Vision Ms. Jamieson 2018 This workbook belongs to:

This question addresses OPTICAL factors in image formation, not issues involving retinal or other brain structures.

LECTURE 07 COLORS IN IMAGES & VIDEO

Spatial Vision: Primary Visual Cortex (Chapter 3, part 1)

Getting light to imager. Capturing Images. Depth and Distance. Ideal Imaging. CS559 Lecture 2 Lights, Cameras, Eyes

Digital Image Processing

Transcription:

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

Reading Glassner, Principles of Digital Image Synthesis, pp. 5-32. Watt, Chapter 15. Brian Wandell. Foundations of Vision. Sinauer Associates, Sunderland, MA, pp. 45-50 and 69-97, 1995. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 2

Optics The human eye employs a lens to focus light. To quantify lens properties, we ll need some terms from optics (the study of sight and the behavior of light): Focal point - the point where parallel rays converge when passing through a lens. Focal length - the distance from the lens to the focal point. Diopter - the reciprocal of the focal length, measured in meters. Example: A lens with a power of 10D has a focal length of 0.1m. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 3

Optics, cont d By tracing rays through a lens, we can generally tell where an object point will be focused to an image point: This construction leads to the Gaussian lens formula: 1 1 1 + = d d f o i Q: Given these three parameters, how does the human eye keep the world in focus? University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 4

Structure of the eye Physiology of the human eye (Glassner, 1.1) The most important structural elements of the eye are: Cornea - a clear coating over the front of the eye: Protects eye against physical damage. Provides initial focusing (40D). Iris - Colored annulus with radial muscles. Pupil - The hole whose size is controlled by the iris. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 5

Structure of the eye, cont. Physiology of the human eye (Glassner, 1.1) Crystalline lens - controls the focal distance: Power ranges from 10 to 30D in a child. Power and range reduces with age. Ciliary body - The muscles that compress the sides of the lens, controlling its power. Q: As an object moves closer, do the ciliary muscles contract or relax to keep the object in focus? University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 6

Retina Density of photoreceptors on the retina (Glassner, 1.4) Retina - a layer of photosensitive cells covering 200 on the back of the eye. Cones - responsible for color perception. Rods - Limited to intensity (but 10x more sensitive). Fovea - Small region (1 or 2 ) at the center of the visual axis containing the highest density of cones (and no rods). University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 7

The human retina Photomicrographs at incresasing distances from the fovea. The large cells are cones; the small ones are rods. (Glassner, 1.5 and Wandell, 3.4). Photomicrographs at increasing distances from the fovea. The large cells are cones; the small ones are rods. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 8

The human retina, cont d Photomicrograph of a cross-section of the retina near the fovea (Wandell, 5.1). Light gathering by rods and cones (Wandell, 3.2) University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 9

Neuronal connections Even though the retina is very densely covered with photoreceptors, we have much more acuity in the fovea than in the periphery. In the periphery, the outputs of the photoreceptors are averaged together before being sent to the brain, decreasing the spatial resolution. As many as 1000 rods may converge to a single neuron. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 10

Demonstrations of visual acuity With one eye shut, at the right distance, all of these letters should appear equally legible (Glassner, 1.7). Blind spot demonstration (Glassner, 1.8) University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 11

Mach bands Mach bands were first dicussed by Ernst Mach, an Austrian physicist. Appear when there are rapid variations in intensity, especially at C 0 intensity discontinuities: And at C 1 intensity discontinuities: University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 12

Mach bands, cont. Possible cause: lateral inhibition of nearby cells. Lateral inhibition effect (Glassner, 1.25) Q: What image processing filter does this remind you of? University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 13

Higher Level Reasoning Many perceptual phenomena occur at a higher level in the brain Checker Shadow Effect (Edward Adelson, 1995) University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 14

Higher Level Reasoning Many perceptual phenomena occur at a higher level in the brain Checker Shadow Effect (Edward Adelson, 1995) University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 15

The radiant energy spectrum We can think of light as waves, instead of rays. Wave theory allows a nice arrangement of electromagnetic radiation (EMR) according to wavelength: University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 16

Emission spectra A light source can be characterized by an emission spectrum: Emission spectra for daylight and a tungsten lightbulb (Wandell, 4.4) The spectrum describes the energy at each wavelength. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 17

What is color? The eyes and brain turn an incoming emission spectrum into a discrete set of values. The signal sent to our brain is somehow interpreted as color. Color science asks some basic questions: When are two colors alike? How many pigments or primaries does it take to match another color? One more question: why should we care? University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 18

Photopigments Photopigments are the chemicals in the rods and cones that react to light. Can respond to a single photon! Rods contain rhodopsin, which has peak sensitivity at about 500nm. p (!) Rod sensitivity (Wandell,4.6) Rods are active under low light levels, i.e., they are responsible for scotopic vision. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 19

Univariance Principle of univariance: For any single photoreceptor, no information is transmitted describing the wavelength of the photon. Measuring photoreceptor photocurrent (Wandell, 4.15) Photocurrents measured for two light stimuli: 550nm (solid) and 659 nm (gray). The brightnesses of the stimuli are different, but the shape of the response is the same. (Wandell 4.17) University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 20

The color matching experiment We can construct an experiment to see how to match a given test light using a set of lights called primaries with power control knobs. The color matching experiment (Wandell, 4.10) The primary spectra are a(λ), b(λ), c(λ), The power knob settings are A, B, C, University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 21

Rods and color matching A rod responds to a spectrum through its spectral sensitivity function, p(λ). The response to a test light, t(λ), is simply: Pt = " t(!) p(!) d! How many primaries are needed to match the test light? What does this tell us about rod color discrimination? University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 22

Cone photopigments Cones come in three varieties: L, M, and S. l(λ) m(λ) s(λ) Cone photopigment absorption (Glassner, 1.1) Cones are active under high light levels, i.e., they are responsible for photopic vision. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 23

Cones and color matching Color is perceived through the responses of the cones to light. The response of each cone can be written simply as: Lt = " t(!) l(!) d! Mt = " t(!) m(!) d! St = " t(!) s(!) d! These are the only three numbers used to determine color. Any pair of stimuli that result in the same three numbers will be indistinguishable. How many primaries do you think we ll need to match t? University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 24

Color matching Let s assume that we need 3 primaries to perform the color matching experiment. Consider three primaries, a(λ), b (λ), c (λ), with three emissive power knobs, A, B, C. The three knobs create spectra of the form: e(!) = Aa(!) + Bb(!) + Cc(!) What is the response of the l-cone? abc How about the m- and s-cones? " (!) (!) "[ Aa(!)! Bb(!) Cc(!)] l(!) d! " " " " " " L = e l d = + + = Aa(!) l(!) d! + Bb(!) l(!) d! + Cc(!) l(!) d! = A a(!) l(!) d! + B b(!) l(!) d! + C c(!) l(!) d! = AL + BL + CL a b c University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 25

Color matching, cont d We end up with similar relations for all the cones: L = AL + BL + CL abc abc abc a M = AM + BM + CM a a S = AS + BS + CS We can re-write this as a matrix and equate to the test:! Labc "! La Lb Lc "! A"! Lt " # $ = # $ # $ = # $ # M abc $ # M a M b M c $ # B $ # M t $ #% S $ & #% $ abc Sa Sb Sc & #% C$ & #% St $ & and then solve for the knob settings: b b b c c!1 " A# " La Lb Lc # " Lt # $ % = $ % $ % $ B % $ M a M b M c % $ M t % $ & C% ' $ & Sa S c % b S ' $ & St %' c In other words, we can choose the knob settings to cause the cones to react as we please! Well, one little gotcha we may need to set the knob values to be negative. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 26

Choosing Primaries The primaries could be three color (monochromatic) lasers. But, they can also be non-monochromatic, e.g., monitor phosphors: e(!) = Rr(!) + Gg(!) + Bb(!) Emission spectra for RGB monitor phosphors (Wandell B.3) University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 27

Color as linear projection We can think of spectral functions in sampled form as n-dimensional vectors, where n is the number of samples. " # " t(! o) # $ % $ (! + & ) % $ M $ t % o! % $ t(!)% = $ t(! + 2 &! ) % $ % o $ % $ M % $ M $ % ( % ) $ ( t(! ( 1)! )% o + n ' & ) In that case, computing the rod response is a projection from n dimensions to 1 dimension: " M # P [ (!) $ ] (!) % t = L p L $ t % $ & M %' Likewise, computing cone responses is a projection down to 3 dimensions: " Lt # " L l(!) L# " M # $ % $ (!) % $ (!) % $ M t % = $ L m L % $ t % $ & St %' $ & L s(!) L% ' $ & M %' University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 28

Emission Spectrum is not Color Clearly, information is lost in this projection step Different light sources can evoke exactly the same colors. Such lights are called metamers. A dim tungsten bulb and an RGB monitor set up to emit a metameric spectrum (Wandell 4.11) University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 29

Colored Surfaces So far, we ve discussed the colors of lights. How do surfaces acquire color? Subtractive colour mixing (Wasserman 2.2) A surface s reflectance, ρ(λ), is its tendency to reflect incoming light across the spectrum. Reflectance is combined subtractively with incoming light. Actually, the process is multiplicative: I(!) = "(!) t(!) University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 30

Subtractive Metamers Surfaces that are metamers under only some lighting conditions (Wasserman 3.9) Reflectance adds a whole new dimension of complexity to color perception. The solid curve appears green indoors and out. The dashed curve looks green outdoors, but brown under incandescent light. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 31

Illustration of Color Appearance Normalized How light and reflectance become cone responses (Wandell, 9.2) University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 32

Lighting design When deciding the kind of feel for an architectural space, the spectra of the light sources is critical. Lighting design centers have displays with similar scenes under various lighting conditions. For example: University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 33

What s wrong with RGB? RGB cannot represent some colors that we perceive! (using positive weights) In particular, pure hues other than R, G, or B cannot be represented. Reason: Adding two pure hues yields a de-saturated color (effectively has some white mixed in). Q: How can we fix this? A: Pick supersatured primaries. That s what CIE color space does. Note that the supersaturated primaries cannot be perceived! So we ve traded one problem for another University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 34

Perceivable portion of CIE space University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 35

The CIE XYZ System A standard created in 1931 by CIE, defined in terms of three color matching functions. The XYZ color matching functions (Wasserman 3.8) These functions are related to the cone responses roughly as: x(!) " k s(!) + k l(!) 1 2 y(!) " k m(!) 3 z (!) " k s(!) 4 University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 36

CIE Coordinates Given an emission spectrum, we can use the CIE matching functions to obtain the X, Y and Z coordinates. X = " x(!) t(!) d! Y = " y(!) t(!) d! Z = " z(!) t(!) d! Using the equations from the previous page, we can see that XYZ coordinates are closely related to LMS responses. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 37

The CIE Colour Blob Different views of the CIE color space (Foley II.1) University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 38

The CIE Chromaticity Diagram The CIE Chromaticity Diagram is a projection of the plane X+Y+Z=1. The chromaticity diagram (a kind of slice through CIE space, Wasserman 3.7) Dominant wavelengths or hues go around the perimeter of the chromaticity diagram. A color s dominant wavelength is where a line from white through that color intersects the perimeter. Some colors, called non-spectral color s, don t have a dominant wavelength. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 39

More About Chromaticity Excitation purity or saturation is measured in terms of a color s position on the line to its dominant wavelength. Complementary colors lie on opposite sides of white, and can be mixed to get white. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 40

Gamuts Not every output device can reproduce every color. A device s range of reproducible colors is called its gamut. Gamuts of a few common output devices in CIE space (Foley, II.2) University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 41

Next class: Modern graphics HW Topic: How do we make the Z buffer algorithm run really fast? Read: "The GeForce 6 Series GPU Architecture", Emmett Kilgariff and Randima Fernando, Chapter 30 in GPU Gems 2, edited by Matt Pharr, 2005. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell 42